URL
https://opencores.org/ocsvn/plasma/plasma/trunk
[/] [plasma/] [trunk/] [vhdl/] [reg_bank.vhd] - Diff between revs 365 and 376
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 365 |
Rev 376 |
Line 252... |
Line 252... |
-- the read address signal can be sent from the mem_ctrl block.
|
-- the read address signal can be sent from the mem_ctrl block.
|
-- This solution also delays the how fast the registers are read so the
|
-- This solution also delays the how fast the registers are read so the
|
-- maximum clock speed is cut in half (12.5 MHz instead of 25 MHz).
|
-- maximum clock speed is cut in half (12.5 MHz instead of 25 MHz).
|
|
|
clk_delayed <= not clk; --Could be delayed by 1/4 clock cycle instead
|
clk_delayed <= not clk; --Could be delayed by 1/4 clock cycle instead
|
dpram_bypass: process(clk, addr_write, reg_dest_new)
|
dpram_bypass: process(clk, addr_write, reg_dest_new, write_enable)
|
begin
|
begin
|
if rising_edge(clk) and write_enable = '1' then
|
if rising_edge(clk) and write_enable = '1' then
|
addr_reg <= addr_write;
|
addr_reg <= addr_write;
|
data_reg <= reg_dest_new;
|
data_reg <= reg_dest_new;
|
end if;
|
end if;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.