欢迎来到天天文库
浏览记录
ID:34632728
大小:137.89 KB
页数:5页
时间:2019-03-08
《eda技术实用教程课后答案解答_unit5new》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、0110907班2009210221左学目录5.7_7人表决器.................................................................................................................................25.7_4位4输入最大值检测电路.....................................................................................................35.11序列发生器.....
2、.........................................................................................................................45.11序列发生器仿真波形图..........................................................................................................55.138位左移移位寄存器.....................................
3、...........................................................................55.138位左移移位寄存器仿真波形图............................................................................................65.7_7人表决器.libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entityvoteisport(seveninpu
4、t:instd_logic_vector(6downto0);pass_ornot:outstd_logic);endentityvote;architecturebhvofvoteisbeginprocess(seveninput)variableQ:std_logic_vector(6downto0);beginQ:="0000000";fornin0to6loopif(seveninput(n)='1')thenQ:=Q+1;endif;endloop;ifQ>4thenpass_ornot<='1';elsepass_ornot<='0';endif;endprocess
5、;endarchitecturebhv;0110907班2009210221左学5.7_4位4输入最大值检测电路.libraryieee;useieee.std_logic_1164.all;useieee.std_logic_unsigned.all;entitymaxof4isport(input1:instd_logic_vector(3downto0);input2:instd_logic_vector(3downto0);input3:instd_logic_vector(3downto0);input4:instd_logic_vector(3downto0);max
6、output:outstd_logic_vector(3downto0));endentitymaxof4;architecturebhvofmaxof4isbeginprocess(input1,input2,input3,input4)variabletemp1:std_logic_vector(3downto0);variabletemp2:std_logic_vector(3downto0);begintemp1:="0000";temp2:="0000";fornin3to0loopif(input1(n)>input2(n))thentemp1:=input1;exi
7、t;elsetemp1:=input1;exit;endif;endloop;fornin3to0loopif(input3(n)>input4(n))thentemp2:=input3;exit;elsetemp1:=input1;exit;endif;endloop;fornin3to0loopif(temp1(n)>temp2(n))thenmaxoutput<=temp1;exit;elsemaxoutput<=temp1;exit;endif;endloop;endpr
此文档下载收益归作者所有