always语句描述jk触发器行为功能
1个回答
展开全部
LIBRARY IEEE;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY m_s_jkff IS
PORT (cp, j, k: IN std_logic; q, q_n: BUFFER std_logic);
END m_s_jkff;
ARCHITECTURE rtl OF m_s_jkff IS
SIGNAL q1, q1_n: std_logic;
BEGIN
q1 <= q1_n NAND ( NOT(cp AND j AND q_n));
q1_n <= q1 NAND ( NOT(cp AND k AND q));
q <= q_n NAND (NOT cp NAND q1);
q_n <= q NAND (NOT cp NAND q1_n);
END rtl;
USE IEEE.STD_LOGIC_1164.ALL;
ENTITY m_s_jkff IS
PORT (cp, j, k: IN std_logic; q, q_n: BUFFER std_logic);
END m_s_jkff;
ARCHITECTURE rtl OF m_s_jkff IS
SIGNAL q1, q1_n: std_logic;
BEGIN
q1 <= q1_n NAND ( NOT(cp AND j AND q_n));
q1_n <= q1 NAND ( NOT(cp AND k AND q));
q <= q_n NAND (NOT cp NAND q1);
q_n <= q NAND (NOT cp NAND q1_n);
END rtl;
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询