1
0

Use Mem instead of Vec[Reg] for TLB

QoR-neutral, improves simulation speed
This commit is contained in:
Andrew Waterman 2013-11-24 14:16:53 -08:00
parent 68e270eeb2
commit 53f726008b

View File

@ -20,7 +20,7 @@ class CAMIO(entries: Int, addr_bits: Int, tag_bits: Int) extends Bundle {
class RocketCAM(entries: Int, tag_bits: Int) extends Module {
val addr_bits = ceil(log(entries)/log(2)).toInt;
val io = new CAMIO(entries, addr_bits, tag_bits);
val cam_tags = Vec.fill(entries){Reg(Bits(width = tag_bits))}
val cam_tags = Mem(Bits(width = tag_bits), entries)
val vb_array = Reg(init=Bits(0, entries))
when (io.write) {