Disabled external gits

This commit is contained in:
2022-04-07 18:43:21 +02:00
parent 182267a8cb
commit 88cb3426ad
1067 changed files with 102374 additions and 6 deletions

View File

@@ -0,0 +1,39 @@
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity register_file is
port(
clk : in std_logic;
aa : in std_logic_vector(4 downto 0);
ab : in std_logic_vector(4 downto 0);
aw : in std_logic_vector(4 downto 0);
wren : in std_logic;
wrdata : in std_logic_vector(31 downto 0);
a : out std_logic_vector(31 downto 0);
b : out std_logic_vector(31 downto 0)
);
end register_file;
architecture synth of register_file is
type reg_type is array(0 to 31) of std_logic_vector(31 downto 0);
signal reg : reg_type := (others => (others => '0'));
begin
a <= reg(to_integer(unsigned(aa)));
b <= reg(to_integer(unsigned(ab)));
write: process(clk) is
begin
if(rising_edge(clk)) then
if(wren = '1') then
reg(to_integer(unsigned(aw))) <= wrdata;
reg(0) <= (31 downto 0 => '0');
end if;
end if;
end process write;
end synth;