Skip to content

Commit

Permalink
fixed broken conditional generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jjjt-hub committed Mar 22, 2024
1 parent 7b520aa commit 5148bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/vexriscv/plugin/CsrPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ class CsrPlugin(val config: CsrPluginConfig) extends Plugin[VexRiscv] with Excep
pipeline.update(MPP, UInt(2 bits))

if(withExternalMhartid) externalMhartId = in UInt(mhartidWidth bits)
if(pipeline.serviceExist(classOf[CounterService]) && utimeAccess != CsrAccess.NONE) utime = in UInt(64 bits) setName("utime")
if(!pipeline.serviceExist(classOf[CounterService]) && utimeAccess != CsrAccess.NONE) utime = in UInt(64 bits) setName("utime")

if(supervisorGen) {
decoderService.addDefault(RESCHEDULE_NEXT, False)
Expand Down

0 comments on commit 5148bba

Please sign in to comment.