Remove unused MSB offset code from get getCoalescedDataChunk

This commit is contained in:
Hansung Kim
2023-11-06 13:40:25 -08:00
parent 61aad0315c
commit 571d33a5de

View File

@@ -1137,11 +1137,8 @@ class Uncoalescer(
val chunks = Wire(Vec(numChunks, UInt(32.W))) val chunks = Wire(Vec(numChunks, UInt(32.W)))
val offsets = (0 until numChunks) val offsets = (0 until numChunks)
(chunks zip offsets).foreach { case (c, o) => (chunks zip offsets).foreach { case (c, o) =>
// FIXME: whether to take the offset from MSB or LSB depends on // NOTE: Should take offset starting from LSB
// endianness. Confirm this is working
c := data(32 * (o + 1) - 1, 32 * o) c := data(32 * (o + 1) - 1, 32 * o)
// If taking from MSB:
// c := (data >> (dataWidth - (o + 1) * 32)) & sizeMask
} }
chunks(offset) // MUX chunks(offset) // MUX
} }