📄 dregister.vhd
字号:
library IEEE;use IEEE.std_logic_1164.all;entity DRegister is port( op: in std_logic; clk: in std_logic; din: in std_logic_vector(31 downto 0); dout: out std_logic_vector(31 downto 0) );end DRegister;architecture behav of DRegister issignal data: std_logic_vector(31 downto 0);beginreg: process(clk)begin if (clk'event and clk = '1') then if (op = '1') then data <= din; end if; dout <= data; end if;end process;end behav;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -