急求vhdl程序啊
答案:1 悬赏:40 手机版
解决时间 2021-02-04 19:52
- 提问者网友:太高姿态
- 2021-02-03 19:22
急求vhdl程序啊
最佳答案
- 五星知识达人网友:青灯有味
- 2021-02-03 20:06
LIBRARY IEEE;
USE IEEE.std_logic_1164.ALL;
ENTITY d_q IS
PORT(clk,din:IN std_logic;
qout: OUT std_logic);
END;
ARCHITECTURE one OF d_q IS
SIGNAL q:std_logic_vector(2 DOWNTO 0);
BEGIN
PROCESS(clk)
BEGIN
IF rising_edge(clk) THEN
q(0) <= din;
q(1) <= q(0);
q(2) <= q(1);
END IF;
END PROCESS;
qout <= q(2) NAND (q(1) XOR q(0));
END;
USE IEEE.std_logic_1164.ALL;
ENTITY d_q IS
PORT(clk,din:IN std_logic;
qout: OUT std_logic);
END;
ARCHITECTURE one OF d_q IS
SIGNAL q:std_logic_vector(2 DOWNTO 0);
BEGIN
PROCESS(clk)
BEGIN
IF rising_edge(clk) THEN
q(0) <= din;
q(1) <= q(0);
q(2) <= q(1);
END IF;
END PROCESS;
qout <= q(2) NAND (q(1) XOR q(0));
END;
我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯