Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

examples/complex: do not use variable

  • Loading branch information...
commit 6420b5690859d727cf008aae9b6c75df0f126a66 1 parent 71b89e4
Sébastien Bourdeauducq authored June 30, 2013

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  examples/basic/complex.py
4  examples/basic/complex.py
@@ -7,11 +7,11 @@ def __init__(self):
7 7
 		w = Complex(32, 42)
8 8
 		A = SignalC(16)
9 9
 		B = SignalC(16)
10  
-		Bw = SignalC(16, variable=True)
  10
+		Bw = SignalC(16)
11 11
 		C = SignalC(16)
12 12
 		D = SignalC(16)
  13
+		self.comb += Bw.eq(B*w)
13 14
 		self.sync += [
14  
-			Bw.eq(B*w),
15 15
 			C.eq(A + Bw),
16 16
 			D.eq(A - Bw)
17 17
 		]

0 notes on commit 6420b56

Please sign in to comment.
Something went wrong with that request. Please try again.