Pass a BitPat to Lookup
This is the only supported type of Lookup in Chisel 3.
This commit is contained in:
parent
c2e9971b5f
commit
bf06ba0d37
@ -133,7 +133,7 @@ class TagMan(val logNumTags : Int) extends Module {
|
||||
val inUse = List.fill(numTags)(Reg(init = Bool(false)))
|
||||
|
||||
// Mapping from each tag to its 'inUse' bit
|
||||
val inUseMap = (0 to numTags-1).map(i => UInt(i, logNumTags)).zip(inUse)
|
||||
val inUseMap = (0 to numTags-1).map(i => BitPat(UInt(i))).zip(inUse)
|
||||
|
||||
// Next tag to offer
|
||||
val nextTag = Reg(init = UInt(0, logNumTags))
|
||||
|
Loading…
Reference in New Issue
Block a user