ex_p4_16_neg_jkff.vhd
来自「This is the course for VHDL programming」· VHDL 代码 · 共 19 行
VHD
19 行
entity N_JKFF is port (J,K,CLK,RESET_BAR:in BIT;Q:out BIT);end N_JKFF ;architecture BEH of N_JKFF is signal INT_Q:BIT;-- INT_Q= intermediate Qbegin process(J,K,CLK,RESET_BAR,INT_Q) begin if RESET_BAR = '0' then INT_Q <='0'; elsif CLK'event and CLK='1'then if J='0' and K='1' then INT_Q<='0'; elsif J='1' and K='0' then INT_Q<='1'; elsif J='1' and K='1' then INT_Q<=not INT_Q; end if; end if; end process; Q<=INT_Q;end BEH;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?