Skip to content

Commit

Permalink
clockgate: set default initialization with 0 to fix X in vcs (#3031)
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxpicca-Li authored Jun 3, 2024
1 parent 071c63e commit 31fae68
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/mem/lsqueue/LoadQueueRAR.scala
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ class LoadQueueRAR(implicit p: Parameters) extends XSModule

// Allocate logic
val acceptedVec = Wire(Vec(LoadPipelineWidth, Bool()))
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt()))
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt(log2Up(LoadQueueRARSize).W)))

for ((enq, w) <- io.query.map(_.req).zipWithIndex) {
acceptedVec(w) := false.B
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/xiangshan/mem/lsqueue/LoadQueueRAW.scala
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class LoadQueueRAW(implicit p: Parameters) extends XSModule

// Allocate logic
val acceptedVec = Wire(Vec(LoadPipelineWidth, Bool()))
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt()))
val enqIndexVec = Wire(Vec(LoadPipelineWidth, UInt(log2Up(LoadQueueRAWSize).W)))

// Enqueue
for ((enq, w) <- io.query.map(_.req).zipWithIndex) {
Expand Down
2 changes: 1 addition & 1 deletion utility

0 comments on commit 31fae68

Please sign in to comment.