1
0

remove extraneous toBits (need new Chisel)

This commit is contained in:
Andrew Waterman 2013-09-19 15:26:36 -07:00
parent cc7783404d
commit 9bf10ae5d2

View File

@ -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)