Skip to content

Commit

Permalink
genlib/fsm: fix return value of _get_register_control
Browse files Browse the repository at this point in the history
sbourdeauducq committed Oct 19, 2015
1 parent a824046 commit 4d9b2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion migen/genlib/fsm.py
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@ def __init__(self, next_state_signal, encoding, aliases):
def _get_register_control(self, target):
for x in self.registers:
if _target_eq(target, x[0]):
return x
return x[1], x[2]
raise KeyError

def visit_unknown(self, node):

0 comments on commit 4d9b2ff

Please sign in to comment.