资源描述
1 实验1 .1组合逻辑要求: 1 )题目:用VHDL实现 2 )给出真傎表或表达式 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 CABAz . 2 1 .题目2 .给出真傎表或表达式,工作原理等 3 .给出VHDL程序4 .给出仿真波形的建立与仿真结果5 . 心得体会 library IEEE; z=(/ab) OR (ac) use IEEE.STD_LOGIC_1 1 6 4 .ALL; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity zhlj_s is port(a,b,c:in std_logic;z:out std_logic); END entity zhlj_s; architecture expression of zhlj_s is begin z=(not a and b)or(a and c); end architecture expression; 实验1 .2 一位全加器 2个输出:总和 S,进位输出Co 3个输入:A、B,进位输入Ci S=A B C Co=AB+ACi+BCi library IEEE; use IEEE.std_logic_1 1 6 4 .all; entity FullAdder is port(a,b,Cin :in std_logic;Sum,Cout:out std_logic); end entity FullAdder; architecture concurrent of FullAdder is begin Sum = a xor b xor Cin; Cout = (a and b)or(a and Cin)or(b and Cin); end architecture concurrent; 6 实验2 .1 解码器 1 )题目:用n到2 n解码器设计3到8解码器 2 )给出真傎表或表达式 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 7 8 实 验 3.1 奇 偶 校 验 器 1 )题目:8输入奇偶校验器 2 )给出真傎表或表达式 输入向量有偶数个“”,输出置 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 9Attributes 1 0 1 1 实验4 .1 交通信号灯 1 )题目:题目:交通信号有两个灯红灯与绿灯,通常主干路是绿灯(),而小马路则是红灯(notA=0)。如果发现车在小路上行驶(CAR=1 ),那么主干路的信号变为红灯(),而小马路则是绿灯(notA=)。当灯变化时,计时器开始工作(START_TIMER=1 )。一旦计时完成,就对“TIMED”信号置位(TIMED=1),它使灯变回默认状态。设计并实验“一进程”、“二进程”、“三进程”交通信号控制器的VHDL程序。(改进:加入主干路最短通车时间的保障。) 2 )给出真傎表或表达式 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 Simulation mode: Functional 1 2 asm1 a 1 3 实验5 .2 D锁存器 1 )题目:设计四锁存器 2 )给出真傎表或表达式 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 1 4 实验6 .1 JK触发器 1 )题目:设计JK触发器 2 )给出真傎表或表达式 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 1 5 1 6 实验7 .1 二进制计数器 1 )题目:设计8位二进制计数器 2 )给出VHDL程序 3 )给出仿真波形的建立与仿真结果 1 7 1 8 实验8 .2 顺序乘法器 1 )题目:设计8位Booth乘法器。 2 )真傎表或表达式 Qout = ain * bin; 3 )给出VHDL程序 4 )给出仿真波形的建立与仿真结果 1 9
展开阅读全文