mirror of
https://github.com/antonblanchard/microwatt.git
synced 2026-04-14 07:29:47 +00:00
dcache: Simplify expression for read enable of cache RAM
The path from execute_to_loadstore.valid through to the read enable of the cache RAM has showed up as a critical path. In fact we can simplify this by always asserting read enable when not stalled. Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
@@ -1158,12 +1158,11 @@ begin
|
||||
-- If we're stalling then we need to keep reading the last
|
||||
-- row requested.
|
||||
if r0_stall = '0' then
|
||||
early_rd_valid <= '1';
|
||||
if m_in.valid = '1' then
|
||||
early_req_row <= get_row(m_in.addr);
|
||||
early_rd_valid <= '1';
|
||||
else
|
||||
early_req_row <= get_row(d_in.addr);
|
||||
early_rd_valid <= d_in.valid and d_in.load;
|
||||
end if;
|
||||
else
|
||||
early_req_row <= req_row;
|
||||
|
||||
Reference in New Issue
Block a user