URL
https://opencores.org/ocsvn/mod_sim_exp/mod_sim_exp/trunk
Subversion Repositories mod_sim_exp
Compare Revisions
- This comparison shows the changes necessary to convert path
/mod_sim_exp/trunk/rtl/vhdl
- from Rev 15 to Rev 14
- ↔ Reverse comparison
Rev 15 → Rev 14
/core/register_n.vhd
50,14 → 50,14
-- n-bit register with asynchronous reset and clock enable |
entity register_n is |
generic( |
width : integer := 4 |
n : integer := 4 |
); |
port( |
core_clk : in std_logic; -- clock input |
ce : in std_logic; -- clock enable (active high) |
reset : in std_logic; -- reset (active high) |
din : in std_logic_vector((width-1) downto 0); -- data in (width)-bit |
dout : out std_logic_vector((width-1) downto 0) -- data out (width)-bit |
din : in std_logic_vector((n-1) downto 0); -- data in (n-bit) |
dout : out std_logic_vector((n-1) downto 0) -- data out (n-bit) |
); |
end register_n; |
|
64,7 → 64,7
|
architecture Behavorial of register_n is |
begin |
-- process for (width)-bit register |
-- process for n-bit register |
reg_nb : process (reset, ce, core_clk, din) |
begin |
if reset='1' then -- asynchronous active high reset |
/core/first_stage.vhd
155,7 → 155,7
-- output registers |
RESULT_REG : register_n |
generic map( |
width => width |
n => width |
) |
port map( |
core_clk => core_clk, |
/core/standard_stage.vhd
143,7 → 143,7
-- output registers |
RESULT_REG : register_n |
generic map( |
width => width |
n => width |
) |
port map( |
core_clk => core_clk, |
/core/last_stage.vhd
136,7 → 136,7
-- output registers |
RESULT_REG : register_n |
generic map( |
width => (width+2) |
n => (width+2) |
) |
port map( |
core_clk => core_clk, |