examples/complex: do not use variable
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 30 Jun 2013 17:27:01 +0000 (19:27 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Sun, 30 Jun 2013 17:27:01 +0000 (19:27 +0200)
examples/basic/complex.py

index f5777103e30aa266129c34a4f97dd03f0a5ae865..0837365d44838006f7e9a37249ec6618723cc90a 100644 (file)
@@ -7,11 +7,11 @@ class Example(Module):
                w = Complex(32, 42)
                A = SignalC(16)
                B = SignalC(16)
-               Bw = SignalC(16, variable=True)
+               Bw = SignalC(16)
                C = SignalC(16)
                D = SignalC(16)
+               self.comb += Bw.eq(B*w)
                self.sync += [
-                       Bw.eq(B*w),
                        C.eq(A + Bw),
                        D.eq(A - Bw)
                ]