Skip to content

Commit

Permalink
only one of hypervisor and rve can be selected (#2988)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phantom1003 authored May 14, 2022
1 parent d5d25f2 commit 1f05ea8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/scala/rocket/RocketCore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ class Rocket(tile: RocketTile)(implicit p: Parameters) extends CoreModule()(p)

require(decodeWidth == 1 /* TODO */ && retireWidth == decodeWidth)
require(!(coreParams.useRVE && coreParams.fpu.nonEmpty), "Can't select both RVE and floating-point")
require(!(coreParams.useRVE && coreParams.useHypervisor), "Can't select both RVE and Hypervisor")
val id_ctrl = Wire(new IntCtrlSigs()).decode(id_inst(0), decode_table)
val lgNXRegs = if (coreParams.useRVE) 4 else 5
val regAddrMask = (1 << lgNXRegs) - 1
Expand Down

0 comments on commit 1f05ea8

Please sign in to comment.