For now ... it reduces the routing pressure on the FPGA
This needs manual adjustment of the address decoder in soc.vhdl, at
least until I can figure out how to deal with std_match
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
# Conflicts:
# soc.vhdl
# Conflicts:
# soc.vhdl
SLAVE_NONE);
variable slave : slave_type;
begin
- -- Simple address decoder
+ -- Simple address decoder.
slave := SLAVE_NONE;
- if wb_master_out.adr(63 downto 24) = x"0000000000" then
+ if wb_master_out.adr(31 downto 24) = x"00" then
slave := SLAVE_MEMORY;
- elsif wb_master_out.adr(63 downto 24) = x"00000000c0" then
+ elsif wb_master_out.adr(31 downto 24) = x"c0" then
if wb_master_out.adr(23 downto 12) = x"002" then
slave := SLAVE_UART_0;
end if;
use ieee.std_logic_1164.all;
package wishbone_types is
- constant wishbone_addr_bits : integer := 64;
+ constant wishbone_addr_bits : integer := 32;
constant wishbone_data_bits : integer := 64;
constant wishbone_sel_bits : integer := wishbone_data_bits/8;