Skip to content

Commit

Permalink
Revert "sim/core: fix Cat bitshift"
Browse files Browse the repository at this point in the history
This reverts commit 6d6f91a.
sbourdeauducq committed Oct 19, 2015
1 parent 6d6f91a commit a824046
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions migen/sim/core.py
Original file line number Diff line number Diff line change
@@ -156,11 +156,10 @@ def assign(self, node, value):
value -= 2**node.nbits
self.modifications[node] = value
elif isinstance(node, Cat):
nbits = 0
for element in node.l:
value >>= nbits
nbits = len(element)
self.assign(element, value & (2**nbits-1))
value >>= nbits
elif isinstance(node, _Slice):
full_value = self.eval(node.value, True)
# clear bits assigned to by the slice

0 comments on commit a824046

Please sign in to comment.