aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/Stack.fir
diff options
context:
space:
mode:
authorazidar2016-01-26 14:18:34 -0800
committerazidar2016-01-28 09:25:04 -0800
commit5ab30c681558d2a26000696e518ee5b28deb1303 (patch)
treedcdfaeb3bcb42561e010928712218c8cd3a1b2c7 /test/passes/jacktest/Stack.fir
parent8c288f7b159b3f4ca1cb0d5c5012eb8fb52d5214 (diff)
Updated all tests to pass
Diffstat (limited to 'test/passes/jacktest/Stack.fir')
-rw-r--r--test/passes/jacktest/Stack.fir12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/passes/jacktest/Stack.fir b/test/passes/jacktest/Stack.fir
index 319e87d5..162bac25 100644
--- a/test/passes/jacktest/Stack.fir
+++ b/test/passes/jacktest/Stack.fir
@@ -11,25 +11,27 @@ circuit Stack :
input dataIn : UInt<32>
cmem stack_mem : UInt<32>[16]
- reg sp : UInt<5>,clk,reset,UInt<5>(0)
- reg out : UInt<32>,clk,reset,UInt<32>(0)
+ reg sp : UInt<5>,clk with :
+ reset => (reset,UInt<5>(0))
+ reg out : UInt<32>,clk with :
+ reset => (reset,UInt<32>(0))
when en :
node T_30 = lt(sp, UInt<5>(16))
node T_31 = and(push, T_30)
when T_31 :
write mport T_32 = stack_mem[sp],clk
T_32 <= dataIn
- node T_33 = addw(sp, UInt<1>(1))
+ node T_33 = tail(add(sp, UInt<1>(1)),1)
sp <= T_33
else :
node T_34 = gt(sp, UInt<1>(0))
node T_35 = and(pop, T_34)
when T_35 :
- node T_36 = subw(sp, UInt<1>(1))
+ node T_36 = tail(sub(sp, UInt<1>(1)),1)
sp <= T_36
node T_37 = gt(sp, UInt<1>(0))
when T_37 :
- node T_38 = subw(sp, UInt<1>(1))
+ node T_38 = tail(sub(sp, UInt<1>(1)),1)
read mport T_39 = stack_mem[T_38],clk
out <= T_39
dataOut <= out