1
0

use Wire() correctly to assign a value

This commit is contained in:
Megan Wachs 2017-04-07 13:58:04 -07:00 committed by Andrew Waterman
parent 9ae4838708
commit 01372e1686

View File

@ -788,7 +788,7 @@ class TLDebugModuleInner(device: Device, getNComponents: () => Int)(implicit p:
"HartSel to HartId Mapping is illegal for this Debug Implementation, because HartID must be < 1024 for it to work."); "HartSel to HartId Mapping is illegal for this Debug Implementation, because HartID must be < 1024 for it to work.");
flags(cfg.hartSelToHartId(selectedHartReg)).go := goReg flags(cfg.hartSelToHartId(selectedHartReg)).go := goReg
for (component <- 0 until nComponents) { for (component <- 0 until nComponents) {
val componentSel = Wire(component.U) val componentSel = Wire(init = component.U)
flags(cfg.hartSelToHartId(componentSel)).resume := resumeReqRegs(component) flags(cfg.hartSelToHartId(componentSel)).resume := resumeReqRegs(component)
} }