Switch from the deprecated 'Drive' to ':=='
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user