📄 mbr_reg.vhd
字号:
library ieee;
use ieee.std_logic_1164.all;
entity MBR_Reg is
PORT(
ACC_IN, RAM_IN : in std_logic_vector(15 downto 0);
EN_ACC,READ_RAM,clk : in std_logic;
q : out std_logic_vector(15 downto 0)
--MBR70 : out std_logic_vector(7 downto 0);
--MBR158 : out std_logic_vector(7 downto 0)
);
end MBR_Reg ;
architecture a of MBR_Reg is
begin
process(clk)
begin
if(clk'event and clk = '1')then
if(READ_RAM='1')then
q<=RAM_IN;
-- MBR70<=RAM_IN(7 downto 0);
--MBR158<=RAM_IN(15 downto 8);
elsif(EN_ACC='1')then
q<=ACC_IN;
end if;
end if;
end process;
end a;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -