flag.vhdl.bak

来自「source and benchmark test for the regist」· BAK 代码 · 共 43 行

BAK
43
字号
library ieee;use ieee.std_logic_1164.all;entity status_reg is  port ( clk : in  std_logic;         ce  : in  std_logic;         rst : in  std_logic;         i : in  std_logic_vector(3 downto 0);         o : out std_logic_vector(3 downto 0) );end entity;architecture arch of status_reg is--architecture bhv of flag isbeginprocess variable Zin_reg, Nin_reg, Cin_reg, Vin_reg: std_logic;beginif clk = '1' and clk'event then      if rst ='1'then                  Zin_reg := 'Z';         Nin_reg := 'Z';         Cin_reg := 'Z';         Vin_reg := 'Z';               else  -- else de reset        if ce='1'then         Zin_reg := i(3);         Nin_reg := i(2);         Cin_reg := i(1);         Vin_reg := i(0);      end if;--end de enable    end if;--end de resetend if;--end de clk-- modification des signaux de sortieo(3) <= Zin_reg ;o(2) <= Nin_reg ;o(1) <= Cin_reg ;o(0) <= Vin_reg ;-- attente du prochain 関閚ement sur l?un des signaux d?entr閑wait on clk;end process;end architecture arch;

⌨️ 快捷键说明

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