From: Tobias Platen Date: Sun, 3 Apr 2022 18:04:02 +0000 (+0200) Subject: ram addr calculation ram_addr X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56fb307eb50a8485dbde0f4cbc28af5e976994a9;p=microwatt.git ram addr calculation ram_addr --- diff --git a/wishbone_bram_wrapper.vhdl b/wishbone_bram_wrapper.vhdl index 9a0358b..fcf528b 100644 --- a/wishbone_bram_wrapper.vhdl +++ b/wishbone_bram_wrapper.vhdl @@ -76,7 +76,7 @@ begin bram_re <= ram_re; -- Wishbone interface - ram_addr <= wishbone_in.adr(ram_addr_bits - 1 downto 0); + ram_addr <= wishbone_in.adr(ram_addr_bits + 2 downto 3); ram_we <= wishbone_in.stb and wishbone_in.cyc and wishbone_in.we; ram_re <= wishbone_in.stb and wishbone_in.cyc and not wishbone_in.we; wishbone_out.stall <= '0';