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);
+ `endif
+ `else
+ return (False);
`endif
`ifdef BOOTROM
else if(addr>=`BootRomBase && addr<=`BootRomEnd)