aboutsummaryrefslogtreecommitdiff
path: root/test/passes/const-prop
diff options
context:
space:
mode:
authorazidar2015-12-09 18:31:45 -0800
committerazidar2016-01-16 14:28:17 -0800
commitbe78d49aa01c097978f69a3b022acb2047fdf438 (patch)
tree76dc4b32b5e6861938404ebb4d124ca5b87d13a5 /test/passes/const-prop
parentc427b31a1ef8361b643d5f7435aeb42472dfe626 (diff)
New memory works with verilog. Slowly changing tests and fixing bugs.
Decided to not have Conditionally in low firrtl - instead, Print and Stop have enables
Diffstat (limited to 'test/passes/const-prop')
-rw-r--r--test/passes/const-prop/bits.fir2
-rw-r--r--test/passes/const-prop/rsh.fir8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/passes/const-prop/bits.fir b/test/passes/const-prop/bits.fir
index 16d678b3..78c450a9 100644
--- a/test/passes/const-prop/bits.fir
+++ b/test/passes/const-prop/bits.fir
@@ -8,4 +8,4 @@ circuit top :
module top :
output out : UInt
node x = bits(UInt(127),2,0)
- out := x
+ out <= x
diff --git a/test/passes/const-prop/rsh.fir b/test/passes/const-prop/rsh.fir
index 8c13e410..4159899f 100644
--- a/test/passes/const-prop/rsh.fir
+++ b/test/passes/const-prop/rsh.fir
@@ -1,14 +1,14 @@
; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
;CHECK: Constant Propagation
-;CHECK: x := UInt("h1f")
-;CHECK: y := SInt("h20")
+;CHECK: x <= UInt("h1f")
+;CHECK: y <= SInt("h20")
;CHECK: Finished Constant Propagation
circuit top :
module top :
output x : UInt
output y : SInt
- x := shr(UInt(127),2)
- y := shr(SInt(-128),2)
+ x <= shr(UInt(127),2)
+ y <= shr(SInt(-128),2)