



下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 新能源汽车与智能电网融合2025年技术创新与应用报告
- 新能源企业2025年国际化经营策略与国际化市场开拓报告
- 3.1人体的呼吸教学设计2023-2024学年人教版生物七年级下册
- 爱护公物我能行(说课稿)2025-2026学年初三下学期教育主题班会
- 2024-2025学年新教材高中生物 第4章 细胞的生命历程 素能提升课 与有丝分裂有关的图像分析与应用说课稿 浙科版必修第一册
- 实体眼镜店基础知识培训课件
- 2025年中国高纯度六氟化钨行业市场分析及投资价值评估前景预测报告
- 2025年中国杠杆盖罐行业市场分析及投资价值评估前景预测报告
- 2025年中国干水培营养素行业市场分析及投资价值评估前景预测报告
- 2025年有色金属行业资源循环利用产业链废弃物资源化利用技术报告
- 【初中语文】第1课《消息二则》课件++2025-2026学年统编版语文八年级上册
- 电力消防安全知识考试题库含答案2025
- 2025年国学与传统文化考试试题及答案
- 仪表参数调校规程
- 2025 精神障碍患者暴力行为干预资源利用护理课件
- 2024年10月自考00144企业管理概论真题及答案
- 子宫颈炎症护理课件
- 石油化工课件
- 非小细胞肺癌课件
- 6.1正视发展挑战 课件 2025-2026学年度道德与法治九年级上册 统编版
- 涉密人员岗前知识培训课件
评论
0/150
提交评论