试用JK触发器设计带有进位输出的十进制加计数器并检查能否自启动
答案:1 悬赏:30
解决时间 2021-01-06 17:00
- 提问者网友:蓝莓格格巫
- 2021-01-06 05:38
试用JK触发器设计带有进位输出的十进制加计数器并检查能否自启动
最佳答案
- 二级知识专家网友:轻熟杀无赦
- 2021-01-06 07:11
我写了一个,k是控制置数的,en是计数使能,clr是清零,下面附上了我的仿真波形图。libraryIEEE;useIEEE.std_logic_1164.all;useIEEE.std_logic_unsigned.all;useIEEE.std_logic_arith.all;entitycnt_16isport(clk:inSTD_LOGIC;qin:inSTD_LOGIC_VECTOR(15downto0);clr:instd_logic;k:instd_logic;en:inSTD_LOGIC;qout:outSTD_LOGIC_VECTOR(15downto0);q:outSTD_LOGIC);endcnt_16;architecturecnt_16_archofcnt_16issignalqqout:std_logic_vector(15downto0);signalqq:std_logic;beginprocess(k,qin,en,clk,clr)beginifk='1'thenqqout<=qin;elseifclk'eventandclk='1'thenifclr='1'thenqqout<="0000000000000000";elsifen='1'thenifqqout="1111111111111111"thenqq<='1';qqout<="0000000000000000";elseqqout<=qqout+'1';endif;endif;endif;endif;endprocess;suocun:process(qqout,qq)beginq<=qq;qout<=qqout;endprocesssuocun;endcnt_16_arch;追问2819103206我的qq,能给我个图自己设计过程么?
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯