use SDR0_0_Base define
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Aug 2018 09:19:19 +0000 (10:19 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 2 Aug 2018 09:19:19 +0000 (10:19 +0100)
src/lib/MemoryMap.bsv

index a46ef3ac738448ea007a46be1503c916fb8d1364..f27a45deb1cd4c6c0b3e3f86688ff3fcf849a44c 100644 (file)
@@ -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)