From: Luke Kenneth Casson Leighton Date: Thu, 2 Aug 2018 09:19:19 +0000 (+0100) Subject: use SDR0_0_Base define X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6cdd433029e61cd305eba83080bfae7da0b36e0a;p=shakti-core.git use SDR0_0_Base define --- diff --git a/src/lib/MemoryMap.bsv b/src/lib/MemoryMap.bsv index a46ef3a..f27a45d 100644 --- a/src/lib/MemoryMap.bsv +++ b/src/lib/MemoryMap.bsv @@ -60,16 +60,13 @@ endfunction function Bool is_IO_Addr(Bit#(`PADDR) addr); // TODO Shuold be PADDR if(addr>=`DebugBase && addr<=`DebugEnd) return (True); - else `ifdef SDR0_0_Base - if(addr>=`SDR0_0_Base && addr<=`SDR0_0_End) + else if(addr>=`SDR0_0_Base && addr<=`SDR0_0_End) `ifdef FlexBus - return (True); + return (True); `else return (False); `endif - `else - return (False); `endif `ifdef BOOTROM else if(addr>=`BootRomBase && addr<=`BootRomEnd)