Skip to content

Commit

Permalink
sim: fix argument parsing missmatch
Browse files Browse the repository at this point in the history
before, pin ranges would be exclusive in simulation but inclusive on real hardware
  • Loading branch information
anuejn committed Nov 16, 2023
1 parent 9964849 commit c732d2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion software/glasgow/access/simulation/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def _add_pin_argument(self, parser, name, default, required):
def _pin_set(self, width, arg):
if re.match(r"^[0-9]+:[0-9]+$", arg):
first, last = map(int, arg.split(":"))
numbers = list(range(first, last))
numbers = list(range(first, last + 1))
elif re.match(r"^[0-9]+(,[0-9]+)*$", arg):
numbers = list(map(int, arg.split(",")))
else:
Expand Down

0 comments on commit c732d2c

Please sign in to comment.