Periphery: make bus width and arithmetic atomics configurable (#337)

This commit is contained in:
Wesley W. Terpstra authored and Yunsup Lee committed 2016-09-23 15:25:58 -07:00
1 parent 47843d8ec1
commit d175bb314d
4 files changed
+24 -10

No files matched your search

+1 -1
View File
@@ -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) {