remove extraneous toBits (need new Chisel)
This commit is contained in:
parent
cc7783404d
commit
9bf10ae5d2
@ -466,7 +466,7 @@ class HellaFlowQueue[T <: Data](val entries: Int)(data: => T) extends Module
|
|||||||
val ram_addr = Reg(Bits())
|
val ram_addr = Reg(Bits())
|
||||||
val ram_out_valid = Reg(Bool())
|
val ram_out_valid = Reg(Bool())
|
||||||
ram_out_valid := Bool(false)
|
ram_out_valid := Bool(false)
|
||||||
when (do_enq) { ram(enq_ptr) := io.enq.bits.toBits }
|
when (do_enq) { ram(enq_ptr) := io.enq.bits }
|
||||||
when (io.deq.ready && (atLeastTwo || !io.deq.valid && !empty)) {
|
when (io.deq.ready && (atLeastTwo || !io.deq.valid && !empty)) {
|
||||||
ram_out_valid := Bool(true)
|
ram_out_valid := Bool(true)
|
||||||
ram_addr := Mux(io.deq.valid, deq_ptr + UInt(1), deq_ptr)
|
ram_addr := Mux(io.deq.valid, deq_ptr + UInt(1), deq_ptr)
|
||||||
|
Loading…
Reference in New Issue
Block a user