Skip to content

Commit d4de90c

Browse files
author
Edward Nutting
committed
Bug fix: Restore pull-up functionality of bit merging
Test case: Used to merge two 1-bit control path signals into a 2-bit signal. Typically using the AB and B inputs on the split-merge.
1 parent eb244d3 commit d4de90c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/com/modsim/util/BinData.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,11 +243,8 @@ else if (b0 == 2) {
243243
else if (b1 == 2) {
244244
return b0;
245245
}
246-
else if (b0 == b1) {
247-
return b0;
248-
}
249246
else {
250-
return 2;
247+
return b0 | b1;
251248
}
252249
}
253250
}

0 commit comments

Comments
 (0)