Skip to content

Commit 31fae68

Browse files
authored
clockgate: set default initialization with 0 to fix X in vcs (#3031)
1 parent 071c63e commit 31fae68

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/scala/xiangshan/mem/lsqueue/LoadQueueRAR.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class LoadQueueRAR(implicit p: Parameters) extends XSModule
110110

111111
// Allocate logic
112112
val acceptedVec = Wire(Vec(LoadPipelineWidth, Bool()))
113-
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt()))
113+
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt(log2Up(LoadQueueRARSize).W)))
114114

115115
for ((enq, w) <- io.query.map(_.req).zipWithIndex) {
116116
acceptedVec(w) := false.B

src/main/scala/xiangshan/mem/lsqueue/LoadQueueRAW.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ class LoadQueueRAW(implicit p: Parameters) extends XSModule
118118

119119
// Allocate logic
120120
val acceptedVec = Wire(Vec(LoadPipelineWidth, Bool()))
121-
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt()))
121+
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt(log2Up(LoadQueueRAWSize).W)))
122122

123123
// Enqueue
124124
for ((enq, w) <- io.query.map(_.req).zipWithIndex) {

0 commit comments

Comments
 (0)