aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/VendingMachine.fir
diff options
context:
space:
mode:
authorazidar2015-12-09 18:31:45 -0800
committerazidar2016-01-16 14:28:17 -0800
commitbe78d49aa01c097978f69a3b022acb2047fdf438 (patch)
tree76dc4b32b5e6861938404ebb4d124ca5b87d13a5 /test/passes/jacktest/VendingMachine.fir
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/jacktest/VendingMachine.fir')
-rw-r--r--test/passes/jacktest/VendingMachine.fir22
1 files changed, 11 insertions, 11 deletions
diff --git a/test/passes/jacktest/VendingMachine.fir b/test/passes/jacktest/VendingMachine.fir
index 338df3f4..5ecfe522 100644
--- a/test/passes/jacktest/VendingMachine.fir
+++ b/test/passes/jacktest/VendingMachine.fir
@@ -9,24 +9,24 @@ circuit VendingMachine :
input reset : UInt<1>
reg state : UInt<3>,clk,reset
- onreset state := UInt<3>(0)
+ onreset state <= UInt<3>(0)
node T_22 = eq(state, UInt<3>(0))
when T_22 :
- when nickel : state := UInt<3>(1)
- when dime : state := UInt<3>(2)
+ when nickel : state <= UInt<3>(1)
+ when dime : state <= UInt<3>(2)
node T_23 = eq(state, UInt<3>(1))
when T_23 :
- when nickel : state := UInt<3>(2)
- when dime : state := UInt<3>(3)
+ when nickel : state <= UInt<3>(2)
+ when dime : state <= UInt<3>(3)
node T_24 = eq(state, UInt<3>(2))
when T_24 :
- when nickel : state := UInt<3>(3)
- when dime : state := UInt<3>(4)
+ when nickel : state <= UInt<3>(3)
+ when dime : state <= UInt<3>(4)
node T_25 = eq(state, UInt<3>(3))
when T_25 :
- when nickel : state := UInt<3>(4)
- when dime : state := UInt<3>(4)
+ when nickel : state <= UInt<3>(4)
+ when dime : state <= UInt<3>(4)
node T_26 = eq(state, UInt<3>(4))
- when T_26 : state := UInt<3>(0)
+ when T_26 : state <= UInt<3>(0)
node T_27 = eq(state, UInt<3>(4))
- valid := T_27
+ valid <= T_27