aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/Stack.fir
diff options
context:
space:
mode:
authorAdam Izraelevitz2016-08-15 10:32:41 -0700
committerGitHub2016-08-15 10:32:41 -0700
commitbebd04c4c68c320b2b72325e348c726dc33beae6 (patch)
tree69f6d4da577977cc7ff428b0545bb4735507aad0 /test/passes/jacktest/Stack.fir
parentcca37c46fc0848f5dbf5f95ba60755ed6d60712b (diff)
Remove stanza (#231)
* Removed stanza implementation/tests. In the future we can move the stanza tests over, but for now they should be deleted. * Added back integration .fir files * Added Makefile to give Travis hooks * Added firrtl script (was ignored before)
Diffstat (limited to 'test/passes/jacktest/Stack.fir')
-rw-r--r--test/passes/jacktest/Stack.fir37
1 files changed, 0 insertions, 37 deletions
diff --git a/test/passes/jacktest/Stack.fir b/test/passes/jacktest/Stack.fir
deleted file mode 100644
index 3eb9c67c..00000000
--- a/test/passes/jacktest/Stack.fir
+++ /dev/null
@@ -1,37 +0,0 @@
-; RUN: firrtl -i %s -o %s.v -X verilog -p cT 2>&1 | tee %s.out | FileCheck %s
-;CHECK: Done!
-circuit Stack :
- module Stack :
- input push : UInt<1>
- input pop : UInt<1>
- input en : UInt<1>
- input clk : Clock
- input reset : UInt<1>
- output dataOut : UInt<32>
- input dataIn : UInt<32>
-
- cmem stack_mem : UInt<32>[16]
- 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 = 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 = tail(sub(sp, UInt<1>(1)),1)
- sp <= T_36
- node T_37 = gt(sp, UInt<1>(0))
- when T_37 :
- node T_38 = tail(sub(sp, UInt<1>(1)),1)
- read mport T_39 = stack_mem[T_38],clk
- out <= T_39
- dataOut <= out