aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/MemorySearch.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/MemorySearch.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/MemorySearch.fir')
-rw-r--r--test/passes/jacktest/MemorySearch.fir35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/passes/jacktest/MemorySearch.fir b/test/passes/jacktest/MemorySearch.fir
deleted file mode 100644
index 39c19dda..00000000
--- a/test/passes/jacktest/MemorySearch.fir
+++ /dev/null
@@ -1,35 +0,0 @@
-; RUN: firrtl -i %s -o %s.v -X verilog -p c 2>&1 | tee %s.out | FileCheck %s
-;CHECK: Done!
-circuit MemorySearch :
- module MemorySearch :
- input target : UInt<4>
- output address : UInt<3>
- input en : UInt<1>
- input clk : Clock
- input reset : UInt<1>
- output done : UInt<1>
-
- reg index : UInt<3>,clk with :
- reset => (reset,UInt<3>(0))
- wire elts : UInt<4>[7]
- elts[0] <= UInt<4>(0)
- elts[1] <= UInt<4>(4)
- elts[2] <= UInt<4>(15)
- elts[3] <= UInt<4>(14)
- elts[4] <= UInt<4>(2)
- elts[5] <= UInt<4>(5)
- elts[6] <= UInt<4>(13)
- node elt = elts[index]
- node T_35 = not(en)
- node T_36 = eq(elt, target)
- node T_37 = eq(index, UInt<3>(7))
- node T_38 = or(T_36, T_37)
- node end = and(T_35, T_38)
- when en : index <= UInt<1>(0)
- else :
- node T_39 = not(end)
- when T_39 :
- node T_40 = tail(add(index, UInt<1>(1)),1)
- index <= T_40
- done <= end
- address <= index