jkff.vhd

来自「vhdl codes for combinational and sequent」· VHDL 代码 · 共 27 行

VHD
27
字号
library ieee;    use ieee.std_logic_1164.all;Entity JKFF is    port(        j,k:in std_logic;        clk,reset:in std_logic;        Q:out std_logic);    end JKFF;  Architecture bhv of JKFF is    signal t:std_logic;    begin        process(reset,clk)            begin            if reset='1' then                t<='0';                elsif clk='1' and clk'event then                  t<=(j and not(t)) or(not(k) and t);                end if;            end process;            Q<=t;        end bhv;                                                                        

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?