1
0

fix vxcptwait inst bug, it was incorrect when exception_valid was on before do_xcptwait

This commit is contained in:
Yunsup Lee 2012-03-15 02:09:31 -07:00
parent f972977da1
commit 72006160dc

View File

@ -223,8 +223,8 @@ class rocketCtrlVec extends Component
val reg_xcptwait = Reg(resetVal = Bool(false))
val do_xcptwait = valid_common && wb_vec_xcptwait && !io.replay
when (do_xcptwait) { reg_xcptwait := Bool(true) }
when (io.iface.exception_ack_valid) { reg_xcptwait := Bool(false) }
when (do_xcptwait) { reg_xcptwait := Bool(true) }
io.iface.exception := io.exception && io.sr_ev
io.iface.exception_ack_ready := reg_xcptwait