Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Commit

Permalink
Fixed index offset in mask port mapping.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Dunn committed Feb 13, 2019
1 parent 1f58ea1 commit 53267c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion macros/src/main/scala/MacroCompiler.scala
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ class MacroCompilerPass(mems: Option[Seq[Macro]],
// zero out the upper bits.
zero
} 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.
zero
} else {
Expand Down

0 comments on commit 53267c2

Please sign in to comment.