Switch from the deprecated 'Drive' to ':=='

This commit is contained in:
2020-08-15 02:08:36 +02:00
parent 5e0f510bef
commit 41914ade2c
4 changed files with 45 additions and 46 deletions

View File

@@ -8,11 +8,11 @@ Blinker = subclass Elaboratable where
elaborate = platform ~> m where with m = Module! =>
counter = Signal$ range (@ncycles + 1)
Sync$ Drive counter (counter - 1)
Sync$ counter :== counter - 1
When (counter == 0) $ ->
Sync$ Drive @out (~ @out)
Sync$ Drive counter @ncycles
Sync$ @out :== ~ @out
Sync$ counter :== @ncycles
if __name__ == "__main__" =>
blinker = Blinker ncycles: 10000000