1
0

fix unmasked valid bug in ctrl_vec

This commit is contained in:
Yunsup Lee 2012-03-18 19:55:24 -07:00
parent 98e10ddc3c
commit 2a01f558ba

View File

@ -231,11 +231,11 @@ class rocketCtrlVec extends Component
val reg_hold = Reg(resetVal = Bool(false))
when (wb_vec_xcpthold) { reg_hold := Bool(true) }
when (valid_common && wb_vec_xcpthold) { reg_hold := Bool(true) }
when (io.eret) { reg_hold := Bool(false) }
io.iface.evac := wb_vec_xcptevac.toBool
io.iface.kill := wb_vec_xcptkill.toBool
io.iface.evac := valid_common && wb_vec_xcptevac.toBool
io.iface.kill := valid_common && wb_vec_xcptkill.toBool
io.iface.hold := reg_hold
io.stalld := reg_xcptwait