From 4f2132388157b8fa82677afc18ffc325e4a35b6b Mon Sep 17 00:00:00 2001 From: Nicolas Robin <13021796+nicolas-robin@users.noreply.github.com> Date: Mon, 13 Jan 2020 19:54:23 +0100 Subject: [PATCH] blinky: replace deprecated Signal(max=...) (#42) --- nmigen_boards/test/blinky.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.30.2