Skip to content

Commit

Permalink
fix connection in RocketTileInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
PorterLu committed Aug 9, 2024
1 parent 25572c3 commit 3f5cfc7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions rocketemu/src/TestBench.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class TestBench(generator: SerializableModuleGenerator[RocketTile, RocketTilePar
dut.io.mtip := 0.U
dut.io.meip := 0.U
dut.io.msip := 0.U
dut.io.seip.foreach(_ := 0.U)
dut.io.buserror := 0.U

// get resetVector from simulator
Expand Down
10 changes: 5 additions & 5 deletions rocketv/src/RocketTile.scala
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ class RocketTileInterface(parameter: RocketTileParameter) extends Bundle {
val mtip: Bool = Input(Bool())
val msip: Bool = Input(Bool())
val meip: Bool = Input(Bool())
val seip: Option[Bool] = Option.when(parameter.usingSupervisor)(Bool())
val lip: Vec[Bool] = Vec(parameter.nLocalInterrupts, Bool())
val nmi = Option.when(parameter.usingNMI)(Bool())
val nmiInterruptVector = Option.when(parameter.usingNMI)(UInt(parameter.resetVectorBits.W))
val nmiIxceptionVector = Option.when(parameter.usingNMI)(UInt(parameter.resetVectorBits.W))
val seip: Option[Bool] = Option.when(parameter.usingSupervisor)(Input(Bool()))
val lip: Vec[Bool] = Input(Vec(parameter.nLocalInterrupts, Bool()))
val nmi = Option.when(parameter.usingNMI)(Input(Bool()))
val nmiInterruptVector = Option.when(parameter.usingNMI)(Input(UInt(parameter.resetVectorBits.W)))
val nmiIxceptionVector = Option.when(parameter.usingNMI)(Input(UInt(parameter.resetVectorBits.W)))
// TODO: buserror should be handled by NMI
val buserror: Bool = Input(Bool())
val wfi: Bool = Output(Bool())
Expand Down

0 comments on commit 3f5cfc7

Please sign in to comment.