From: Nicolas Robin <13021796+nicolas-robin@users.noreply.github.com> Date: Mon, 13 Jan 2020 18:54:23 +0000 (+0100) Subject: blinky: replace deprecated Signal(max=...) (#42) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f2132388157b8fa82677afc18ffc325e4a35b6b;p=nmigen-boards.git blinky: replace deprecated Signal(max=...) (#42) --- 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))