Skip to content

Commit 105be59

Browse files
authored
Preprocess: skip vec_commit_data when single core (#722)
As vec_commit_data is only used in vec_load_check, which will only be called for multi-core. For less transmitted data, we skip vec_commit_data for single core, same as load event.
1 parent 4cc9d42 commit 105be59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/scala/Preprocess.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ object Preprocess {
8181
cd.index := c.index
8282
cd.valid := c.valid && (c.rfwen || c.fpwen)
8383
cd.data := Mux(c.fpwen, fpData, intData)
84-
val vcd = Option.when(phyVecs.nonEmpty) {
84+
// Also skip vec_commit_data (used in vec_load check) for single core
85+
val vcd = Option.when(phyVecs.nonEmpty && numCores > 1) {
8586
val vreg = phyVecs(coreID).value
8687
val gen = Wire(new DiffVecCommitData)
8788
gen.coreid := c.coreid

0 commit comments

Comments
 (0)