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>
pull/445/head
Paul Mackerras 4 months ago
parent 8605dcb4f1
commit 04b0c901e0

@ -1158,12 +1158,11 @@ begin
-- If we're stalling then we need to keep reading the last -- If we're stalling then we need to keep reading the last
-- row requested. -- row requested.
if r0_stall = '0' then if r0_stall = '0' then
early_rd_valid <= '1';
if m_in.valid = '1' then if m_in.valid = '1' then
early_req_row <= get_row(m_in.addr); early_req_row <= get_row(m_in.addr);
early_rd_valid <= '1';
else else
early_req_row <= get_row(d_in.addr); early_req_row <= get_row(d_in.addr);
early_rd_valid <= d_in.valid and d_in.load;
end if; end if;
else else
early_req_row <= req_row; early_req_row <= req_row;

Loading…
Cancel
Save