Periphery: make bus width and arithmetic atomics configurable (#337)
This commit is contained in:
committed by
Yunsup Lee
parent
47843d8ec1
commit
d175bb314d
@ -48,7 +48,7 @@ trait CoreplexLocalInterrupterModule extends Module with HasRegMap with MixCorep
|
||||
val timeWidth = 64
|
||||
val regWidth = 32
|
||||
// demand atomic accesses for RV64
|
||||
require(c.beatBytes == (p(rocket.XLen) min timeWidth)/8)
|
||||
require(c.beatBytes >= (p(rocket.XLen) min timeWidth)/8)
|
||||
|
||||
val time = Seq.fill(timeWidth/regWidth)(Reg(init=UInt(0, width = regWidth)))
|
||||
when (io.rtcTick) {
|
||||
|
Reference in New Issue
Block a user