aboutsummaryrefslogtreecommitdiff
path: root/test/passes/lower-to-ground/nested-vec.fir
diff options
context:
space:
mode:
authorazidar2015-07-13 16:22:43 -0700
committerazidar2015-07-14 11:29:55 -0700
commit271e1bf5ed56847c1ce7d50bdb7f1db9ccc5ea55 (patch)
tree8b1cdfcfc97a9710bd1bc5be973578f712cfa253 /test/passes/lower-to-ground/nested-vec.fir
parent0bfb3618b654a4082cc2780887b3ca32e374f455 (diff)
Added tests for clocks. Added remove scope and special chars passes. Added tests. Made more tests pass
Diffstat (limited to 'test/passes/lower-to-ground/nested-vec.fir')
-rw-r--r--test/passes/lower-to-ground/nested-vec.fir31
1 files changed, 16 insertions, 15 deletions
diff --git a/test/passes/lower-to-ground/nested-vec.fir b/test/passes/lower-to-ground/nested-vec.fir
index a2eb1215..1f38d10e 100644
--- a/test/passes/lower-to-ground/nested-vec.fir
+++ b/test/passes/lower-to-ground/nested-vec.fir
@@ -3,34 +3,35 @@
; CHECK: Lower To Ground
circuit top :
module top :
+ input clk : Clock
wire i : UInt
wire j : { x : UInt<32>, flip y : UInt<32> }
wire k : { x : UInt<32>, y : UInt<32> }
wire a : { x : UInt<32>, flip y : UInt<32> }[2]
- ; CHECK: wire a$0$x : UInt<32>
- ; CHECK: wire a$0$y : UInt<32>
- ; CHECK: wire a$1$x : UInt<32>
- ; CHECK: wire a$1$y : UInt<32>
+ ; CHECK: wire a_0_x : UInt<32>
+ ; CHECK: wire a_0_y : UInt<32>
+ ; CHECK: wire a_1_x : UInt<32>
+ ; CHECK: wire a_1_y : UInt<32>
infer accessor b = a[i]
- ; CHECK: wire b$x : UInt<32>
- ; CHECK: wire b$y : UInt<32>
- ; CHECK: b$x := (a$0$x a$1$x)[i]
- ; CHECK: (a$0$y a$1$y)[i] := b$y
+ ; CHECK: wire b_x : UInt<32>
+ ; CHECK: wire b_y : UInt<32>
+ ; CHECK: b_x := (a_0_x a_1_x)[i]
+ ; CHECK: (a_0_y a_1_y)[i] := b_y
j := b
- cmem m : { x : UInt<32>, y : UInt<32> }[2]
- ; CHECK: cmem m$x : UInt<32>[2]
- ; CHECK: cmem m$y : UInt<32>[2]
+ cmem m : { x : UInt<32>, y : UInt<32> }[2],clk
+ ; CHECK: cmem m_x : UInt<32>[2]
+ ; CHECK: cmem m_y : UInt<32>[2]
infer accessor c = m[i] ; MALE
- ; CHECK: accessor c$x = m$x[i]
- ; CHECK: accessor c$y = m$y[i]
+ ; CHECK: accessor c_x = m_x[i]
+ ; CHECK: accessor c_y = m_y[i]
c := k
- ; CHECK: c$x := k$x
- ; CHECK: c$y := k$y
+ ; CHECK: c_x := k_x
+ ; CHECK: c_y := k_y
; CHECK: Finished Lower To Ground