tilelink2: add a rightOR to go with our leftOR
This commit is contained in:
1 parent
b2a5d18e37
commit
4a975ca380
3 files changed
+12
-4
No files matched your search
@@ -17,7 +17,7 @@ class IDMapGenerator(numIds: Int) extends Module {
|
||||
io.free.ready := Bool(true)
|
||||
assert (!io.free.valid || !bitmap(io.free.bits)) // No double freeing
|
||||
|
||||
val select = ~(highOR(bitmap) << 1) & bitmap
|
||||
val select = ~(leftOR(bitmap) << 1) & bitmap
|
||||
io.alloc.bits := OHToUInt(select)
|
||||
io.alloc.valid := bitmap.orR()
|
||||
|
||||
|
||||
Reference in new issue
Block a user