1
0

fix bug in rocket's vector datapath related to wakeup

This commit is contained in:
Yunsup Lee 2012-02-23 10:14:14 -08:00
parent 7c929afe2b
commit e53792a1eb

View File

@ -100,9 +100,9 @@ class rocketDpathVec extends Component
val hwvl = Mux(io.ctrl.fn === VEC_CFG, hwvl_vcfg, reg_hwvl) val hwvl = Mux(io.ctrl.fn === VEC_CFG, hwvl_vcfg, reg_hwvl)
val appvl = Mux(io.wdata(11,0) < hwvl, io.wdata(11,0), hwvl).toUFix val appvl = Mux(io.wdata(11,0) < hwvl, io.wdata(11,0), hwvl).toUFix
when (io.valid && io.ctrl.wen && (io.ctrl.fn === VEC_CFG)) when (io.valid && io.ctrl.wen)
{ {
reg_hwvl := hwvl_vcfg when (io.ctrl.fn === VEC_CFG) { reg_hwvl := hwvl_vcfg }
reg_appvl0 := !(appvl.orR()) reg_appvl0 := !(appvl.orR())
} }