ram: Ack stores early

Stores only need a single cycle, so we can ack them early if there
isn't an older ack already in the pipeline

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
pull/118/head
Benjamin Herrenschmidt 5 years ago
parent 8e0389b973
commit 336f0e0690

@ -67,8 +67,16 @@ begin
ack_buf <= '0'; ack_buf <= '0';
ack <= '0'; ack <= '0';
else else
ack <= wishbone_in.stb; -- On loads, we have a delay cycle due to BRAM bufferring
ack_buf <= ack; -- but not on stores. So try to send an early ack on a
-- store if we aren't behind an existing load ack.
--
if ram_we = '1' and ack = '0' then
ack_buf <= '1';
else
ack <= wishbone_in.stb;
ack_buf <= ack;
end if;
end if; end if;
end if; end if;
end process; end process;

Loading…
Cancel
Save