aboutsummaryrefslogtreecommitdiff
path: root/test/passes/jacktest/MemorySearch.fir
diff options
context:
space:
mode:
Diffstat (limited to 'test/passes/jacktest/MemorySearch.fir')
-rw-r--r--test/passes/jacktest/MemorySearch.fir5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/passes/jacktest/MemorySearch.fir b/test/passes/jacktest/MemorySearch.fir
index 1abc50a2..39c19dda 100644
--- a/test/passes/jacktest/MemorySearch.fir
+++ b/test/passes/jacktest/MemorySearch.fir
@@ -9,7 +9,8 @@ circuit MemorySearch :
input reset : UInt<1>
output done : UInt<1>
- reg index : UInt<3>,clk,reset,UInt<3>(0)
+ 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)
@@ -28,7 +29,7 @@ circuit MemorySearch :
else :
node T_39 = not(end)
when T_39 :
- node T_40 = addw(index, UInt<1>(1))
+ node T_40 = tail(add(index, UInt<1>(1)),1)
index <= T_40
done <= end
address <= index