Skip to content

Commit

Permalink
Update the IO rang to include all addresses outside of memory
Browse files Browse the repository at this point in the history
  • Loading branch information
bi262934 committed Jul 8, 2024
1 parent 538887e commit ec3bff0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/naxriscv/Gen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class NaxRiscv(val plugins : Seq[Plugin]) extends Component{
object Config{
def plugins(resetVector : BigInt = 0x80000000l,
withRdTime : Boolean = true,
ioRange : UInt => Bool = _(31 downto 28) === 0x1,
ioRange : UInt => Bool = !_(31),
fetchRange : UInt => Bool = _(31 downto 28) =/= 0x1,
aluCount : Int = 2,
decodeCount : Int = 2,
Expand Down Expand Up @@ -477,7 +477,7 @@ object Gen extends App{
lqSize = 16,
sqSize = 16,
// withCoherency = true,
ioRange = a => a(31 downto 28) === 0x1// || !a(12)//(a(5, 6 bits) ^ a(12, 6 bits)) === 51
ioRange = a => !a(31) //a(31 downto 28) === 0x1// || !a(12)//(a(5, 6 bits) ^ a(12, 6 bits)) === 51
)
l.foreach{
case p : EmbeddedJtagPlugin => p.debugCd.load(ClockDomain.current.copy(reset = Bool().setName("debug_reset")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ object TilelinkNaxRiscvFiber{
withRdTime = false,
aluCount = 2,
decodeCount = 2,
ioRange = a => a(31 downto 28) === 0x1,
ioRange = a => !a(31), //a(31 downto 28) === 0x1,
hartId = hartId,
asic = asic,
xlen = xlen
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/naxriscv/platform/asic/NaxAsicGen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object NaxAsicGen extends App{
mmuSets = 4,
regFileFakeRatio = regFileFakeRatio,
// withCoherency = true,
ioRange = a => a(31 downto 28) === 0x1// || !a(12)//(a(5, 6 bits) ^ a(12, 6 bits)) === 51
ioRange = a => !a(31) //a(31 downto 28) === 0x1// || !a(12)//(a(5, 6 bits) ^ a(12, 6 bits)) === 51
)

l.foreach{
Expand Down

0 comments on commit ec3bff0

Please sign in to comment.