下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验名称 移位寄存器设计一:实验目的二:实验所用仪表及主要器材三:实验原理简述(源程序、真值表、原理图)四:实验测量记录(数据、仿真波形图及分析、源程序分析、硬件测试实时分析)五:实验心得(实验中问题的解决方法等)一:实验目的(1)掌握移位寄存器电路设计的方法。(2)通过开发CPLD来实现时序逻辑电路的功能。二:实验所用仪表及主要器材 Max+plus2软件。三:实验原理简述(源程序、真值表、原理图)(1)环形计数器源程序:library IEEE;use IEEE.std_logic_1164.all;entity huanxing is port ( clk : in std_logic;
2、 load : in std_logic; d : in std_logic_vector(3 downto 0); q : out std_logic_vector(3 downto 0);end entity;architecture shft_reg_arch of huanxing issignal TEMP : std_logic_vector(3 downto 0);beginprocess(clk) begin if clk'event and clk='1' then if load = '1' then TEMP <= d; el
3、sif TEMP="1000" then TEMP<= TEMP(0) & TEMP(3 downto 1); elsif TEMP="0100" then TEMP<= TEMP(0) & TEMP(3 downto 1); elsif TEMP="0010" then TEMP<= TEMP(0) & TEMP(3 downto 1); elsif TEMP="0001" then TEMP<= TEMP(0) & TEMP(3 downto 1); el
4、se TEMP<="1000" end if; end if; end process; q <= TEMP;end architecture;(2)节日彩灯 源程序:library IEEE;use IEEE.std_logic_1164.all;entity caideng is port ( clk : in std_logic; shift : in std_logic; q : out std_logic_vector(3 downto 0);end entity;architecture shft_reg_arch of caideng issign
5、al temp : std_logic_vector(3 downto 0);begin q<=temp; process(clk) begin if (clk'event and clk='1') then if shift='1' then case temp is when "0000"=>temp<="1000" when "1000"=>temp<="1100" when "1100"=>temp<=&q
6、uot;1110" when "1110"=>temp<="1111" when "1111"=>temp<="0111" when "0111"=>temp<="0011" when "0011"=>temp<="0001" when "0001"=>temp<="0000" when others=>temp<=
7、"0000" end case; else case temp is when "0000"=>temp<="0001" when "0001"=>temp<="0011" when "0011"=>temp<="0111" when "0111"=>temp<="1111" when "1111"=>temp<="1110" when "1110"=>temp<="1100" when "1100"=>temp<="1000" when "1000"=>temp<="0000" when others=>temp<="0000" end case; end if; end if; end process ;end architecture;状态转换图:当shift=1时当shift=0时四:实验测量记录(数据、
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 用户体验优化路径-第11篇-洞察与解读
- 金属粉末精细控制-洞察与解读
- 牙周免疫调控机制-洞察与解读
- 2025-2026学年高一政治上学期第一次月考卷二(新高考)含答案解析
- 本科生毕业论文开题报告范文(共8)
- 浅析人力资源管理的未来发展
- 国企工作流程风险点及防控措施
- 浅谈QC成果的经济效益计算
- 公共管理学论文选题
- 医院全面薪酬管理体系
- 2025年胎儿发育异常应急处理流程
- 市政道路交通导改方案
- 2024青少年创意编程比赛复习题库
- 大学生玩网络游戏的情况及其影响调查报告
- 送手术患者流程
- 曹冠玉艺术歌曲的创作特征及演唱探析
- 《金属冶炼安全培训》课件
- 《言语语言障碍概论》课件
- 医院病人信息管理制度
- 残疾人航空运输培训
- DB22T 1718-2012 木材生产劳动定额
评论
0/150
提交评论