soc: Allow for up to 1GB of DRAM in address decoding

The Acorn-CLE-215 board has 1GB of DRAM.  Without this, the top 512MB
of DRAM is not accessible.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pull/445/head
Paul Mackerras 2 months ago
parent 4282d37741
commit ce5a967ac2

@ -431,6 +431,7 @@ begin
-- From CPU to BRAM, DRAM, IO, selected on top 3 bits and dram_at_0
-- 0000 - BRAM
-- 0001 - DRAM
-- 001x - DRAM
-- 01xx - DRAM
-- 10xx - BRAM
-- 11xx - IO
@ -449,6 +450,8 @@ begin
slave_top := SLAVE_TOP_BRAM;
elsif std_match(top_decode, "0001") then
slave_top := SLAVE_TOP_DRAM;
elsif std_match(top_decode, "001-") then
slave_top := SLAVE_TOP_DRAM;
elsif std_match(top_decode, "01--") then
slave_top := SLAVE_TOP_DRAM;
elsif std_match(top_decode, "10--") then

Loading…
Cancel
Save