diff options
| author | Nicolas Robin <13021796+nicolas-robin@users.noreply.github.com> | 2020-01-13 19:54:23 +0100 |
|---|---|---|
| committer | whitequark <whitequark@whitequark.org> | 2020-01-13 18:54:23 +0000 |
| commit | 4f2132388157b8fa82677afc18ffc325e4a35b6b (patch) | |
| tree | 67f75f3f6417d3b8b2cea66afb367446ce595279 | |
| parent | 6c0f9044b4dec7335c71ebd3be92761821c1ba1c (diff) | |
blinky: replace deprecated Signal(max=...) (#42)
| -rw-r--r-- | nmigen_boards/test/blinky.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nmigen_boards/test/blinky.py b/nmigen_boards/test/blinky.py index 4eb76db..460fb0a 100644 --- a/nmigen_boards/test/blinky.py +++ b/nmigen_boards/test/blinky.py @@ -31,7 +31,7 @@ class Blinky(Elaboratable): inverts[index] ^= switch clk_freq = platform.default_clk_frequency - timer = Signal(max=int(clk_freq//2), reset=int(clk_freq//2) - 1) + timer = Signal(range(int(clk_freq//2)), reset=int(clk_freq//2) - 1) flops = Signal(len(leds)) m.d.comb += Cat(leds).eq(flops ^ Cat(inverts)) |
