projects
/
shakti-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151a7bb
)
use SDR0_0_Base define
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 2 Aug 2018 09:02:54 +0000
(10:02 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Thu, 2 Aug 2018 09:02:54 +0000
(10:02 +0100)
src/lib/MemoryMap.bsv
patch
|
blob
|
history
diff --git
a/src/lib/MemoryMap.bsv
b/src/lib/MemoryMap.bsv
index 1b1bfef5145c57cb1f3d73c29d616671db293fb2..4f811319fc10a82644bb1f097ffd2682da91bc12 100644
(file)
--- 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)