1
0

use Mem to implement queues to speed things up

This commit is contained in:
Andrew Waterman 2012-07-13 21:48:05 -07:00
parent fd95159837
commit e496cd7584

View File

@ -54,7 +54,7 @@ class queue[T <: Data](val entries: Int, pipe: Boolean = false, flushable: Boole
} }
} }
val ram = Vec(entries) { Reg() { data } } val ram = Mem(entries) { data }
when (do_enq) { ram(enq_ptr) := io.enq.bits } when (do_enq) { ram(enq_ptr) := io.enq.bits }
val ptr_match = enq_ptr === deq_ptr val ptr_match = enq_ptr === deq_ptr