From 5cb1611877476efeaa0a31fbcdcde5ec4735103d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 2 Aug 2018 10:02:54 +0100 Subject: [PATCH] use SDR0_0_Base define --- src/lib/MemoryMap.bsv | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/lib/MemoryMap.bsv b/src/lib/MemoryMap.bsv index 1b1bfef..4f81131 100644 --- a/src/lib/MemoryMap.bsv +++ b/src/lib/MemoryMap.bsv @@ -60,11 +60,15 @@ endfunction function Bool is_IO_Addr(Bit#(`PADDR) addr); // TODO Shuold be PADDR if(addr>=`DebugBase && addr<=`DebugEnd) return (True); - else if(addr>=`SDRAMMemBase && addr<=`SDRAMMemEnd) - `ifdef FlexBus - return (True); - `else - return (False); + else + `ifdef SDR0_0_Base + if(addr>=`SDR0_0_Base && addr<=`SDR0_0_End) + `ifdef FlexBus + return (True); + `else + return (False); + `else + return (False); `endif `ifdef BOOTROM else if(addr>=`BootRomBase && addr<=`BootRomEnd) -- 2.30.2