From e53792a1eb1984ec7a64baab2b2388bc5398c6dc Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Thu, 23 Feb 2012 10:14:14 -0800 Subject: [PATCH] fix bug in rocket's vector datapath related to wakeup --- rocket/src/main/scala/dpath_vec.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocket/src/main/scala/dpath_vec.scala b/rocket/src/main/scala/dpath_vec.scala index 0fe55fdf..7e778685 100644 --- a/rocket/src/main/scala/dpath_vec.scala +++ b/rocket/src/main/scala/dpath_vec.scala @@ -100,9 +100,9 @@ class rocketDpathVec extends Component 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 - 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()) }