URL
https://opencores.org/ocsvn/open8_urisc/open8_urisc/trunk
[/] [open8_urisc/] [trunk/] [VHDL/] [o8_rom_32k.vhd] - Diff between revs 174 and 191
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 174 |
Rev 191 |
Line 52... |
Line 52... |
constant User_Addr : std_logic_vector(15 downto 15) :=
|
constant User_Addr : std_logic_vector(15 downto 15) :=
|
Address(15 downto 15);
|
Address(15 downto 15);
|
alias Comp_Addr is Bus_Address(15 downto 15);
|
alias Comp_Addr is Bus_Address(15 downto 15);
|
alias ROM_Addr is Bus_Address(14 downto 0);
|
alias ROM_Addr is Bus_Address(14 downto 0);
|
|
|
signal Addr_Match : std_logic;
|
signal Addr_Match : std_logic := '0';
|
signal Rd_En : std_logic;
|
signal Rd_En : std_logic := '0';
|
signal Rd_Data_i : DATA_TYPE;
|
signal Rd_Data_i : DATA_TYPE := OPEN8_NULLBUS;
|
|
|
begin
|
begin
|
|
|
-- Note that this RAM should be created without an output FF (unregistered Q)
|
-- Note that this RAM should be created without an output FF (unregistered Q)
|
U_ROM_CORE : entity work.rom_32k_core
|
U_ROM_CORE : entity work.rom_32k_core
|
Line 72... |
Line 72... |
|
|
RAM_proc: process( Reset, Clock )
|
RAM_proc: process( Reset, Clock )
|
begin
|
begin
|
if( Reset = Reset_Level )then
|
if( Reset = Reset_Level )then
|
Rd_En <= '0';
|
Rd_En <= '0';
|
Rd_Data <= (others => '0');
|
Rd_Data <= OPEN8_NULLBUS;
|
elsif( rising_edge(Clock) )then
|
elsif( rising_edge(Clock) )then
|
Rd_En <= Addr_Match;
|
Rd_En <= Addr_Match;
|
Rd_Data <= (others => '0');
|
Rd_Data <= OPEN8_NULLBUS;
|
if( Rd_En = '1' )then
|
if( Rd_En = '1' )then
|
Rd_Data <= Rd_Data_i;
|
Rd_Data <= Rd_Data_i;
|
end if;
|
end if;
|
end if;
|
end if;
|
end process;
|
end process;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.