From ce5a967ac2cdb7912c20941cc01b587a12a50016 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 30 May 2025 10:03:25 +1000 Subject: [PATCH] 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 --- soc.vhdl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/soc.vhdl b/soc.vhdl index 7ae2cf2..6652711 100644 --- a/soc.vhdl +++ b/soc.vhdl @@ -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