From 50cf7a4823d69967dcb2b10cdef892b0ab5f2184 Mon Sep 17 00:00:00 2001 From: azidar Date: Mon, 24 Aug 2015 10:58:49 -0700 Subject: Removed old chisel3 tests that all failed for syntax reasons. Tests should now be small examples, categorized by either passes, errors, or features. --- test/chisel3/Stack.fir | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 test/chisel3/Stack.fir (limited to 'test/chisel3/Stack.fir') diff --git a/test/chisel3/Stack.fir b/test/chisel3/Stack.fir deleted file mode 100644 index 52c9b437..00000000 --- a/test/chisel3/Stack.fir +++ /dev/null @@ -1,36 +0,0 @@ -; RUN: firrtl -i %s -o %s.v -X verilog -p c | tee %s.out | FileCheck %s -;CHECK: Done! - -circuit Stack : - module Stack : - input push : UInt<1> - input pop : UInt<1> - input en : UInt<1> - output dataOut : UInt<32> - input dataIn : UInt<32> - - cmem stack_mem : UInt<32>[16] - reg sp : UInt<5> - on-reset sp := UInt<5>(0) - reg out : UInt<32> - on-reset out := UInt<32>(0) - when en : - node T_30 = lt(sp, UInt<5>(16)) - node T_31 = bit-and(push, T_30) - when T_31 : - infer accessor T_32 = stack_mem[sp] - T_32 := dataIn - node T_33 = add-wrap(sp, UInt<1>(1)) - sp := T_33 - else : - node T_34 = gt(sp, UInt<1>(0)) - node T_35 = bit-and(pop, T_34) - when T_35 : - node T_36 = sub-wrap(sp, UInt<1>(1)) - sp := T_36 - node T_37 = gt(sp, UInt<1>(0)) - when T_37 : - node T_38 = sub-wrap(sp, UInt<1>(1)) - infer accessor T_39 = stack_mem[T_38] - out := T_39 - dataOut := out -- cgit v1.2.3