aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/VendingMachine.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/jacktest/VendingMachine.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/jacktest/VendingMachine.fir')
-rw-r--r--test/passes/jacktest/VendingMachine.fir6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/passes/jacktest/VendingMachine.fir b/test/passes/jacktest/VendingMachine.fir
index 10784964..0f4bf941 100644
--- a/test/passes/jacktest/VendingMachine.fir
+++ b/test/passes/jacktest/VendingMachine.fir
@@ -5,9 +5,11 @@ circuit VendingMachine :
output valid : UInt<1>
input nickel : UInt<1>
input dime : UInt<1>
+ input clk : Clock
+ input reset : UInt<1>
- reg state : UInt<3>
- on-reset state := UInt<3>(0)
+ reg state : UInt<3>,clk,reset
+ onreset state := UInt<3>(0)
node T_22 = eq(state, UInt<3>(0))
when T_22 :
when nickel : state := UInt<3>(1)