Fixed index offset in mask port mapping. (#38)
Fixed index offset in mask port mapping.
This commit is contained in:
@@ -432,7 +432,7 @@ class MacroCompilerPass(mems: Option[Seq[Macro]],
|
|||||||
// zero out the upper bits.
|
// zero out the upper bits.
|
||||||
zero
|
zero
|
||||||
} else {
|
} else {
|
||||||
if (i >= memPort.src.width.get) {
|
if ((low + i) >= memPort.src.width.get) {
|
||||||
// If our bit is larger than the whole width of the mem, just zero out the upper bits.
|
// If our bit is larger than the whole width of the mem, just zero out the upper bits.
|
||||||
zero
|
zero
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user