dtom.vhd

来自「实现n路抢答功能」· VHDL 代码 · 共 27 行

VHD
27
字号
library ieee;
use ieee.std_logic_1164.all;
entity dtom is port(
                   din : in std_logic;
                   qb  :out std_logic;
                   clk2 : in std_logic);
end ;
architecture one of dtom is
  signal t1,t2: std_logic ;
   begin 
       process(clk2)
        begin
       if rising_edge(clk2) then
         t1<=din;
         t2<=t1;
        else 
         t2<=t2;
         t1<=t1;
         end if;
       end process;
         qb<=t1 or t2;
end;
       
      
       
       

⌨️ 快捷键说明

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