我是靠谱客的博主 迷你楼房,这篇文章主要介绍VHDL——JK触发器,现在分享给大家,希望可以做个参考。

1.管脚图

2.真值表

3.VHDL语言

library ieee;
use ieee.std_logic_1164.all;

entity jkff is
    port(j,k,clk : in std_logic;
	      q,nq : out std_logic);
end jkff;

architecture behave of jkff is
  signal q_s,nq_s : std_logic;
begin
  process(clk,j,k)
  begin
    if(clk'event and clk = '1') then
	   if(j = '0') and (k = '1') then
		  q_s <= '0';
		  nq_s <= '1';
		elsif(j = '1') and (k = '0') then
		  q_s <= '1';
		  nq_s <= '0';
		elsif(j = '1') and (k = '1') then
		  q_s <= not q_s;
		  nq_s <= not nq_s;
		end if;
	 end if;
	 q <= q_s;
	 nq <= nq_s;
  end process;
end behave;

最后

以上就是迷你楼房最近收集整理的关于VHDL——JK触发器的全部内容,更多相关VHDL——JK触发器内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(66)

评论列表共有 0 条评论

立即
投稿
返回
顶部