Skip to content

Commit b044ce7

Browse files
committed
Updated the condition
1 parent e62d1eb commit b044ce7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/extension/thread_/stream_predicate/thread_stream_predicate.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def mkLed():
2727
strm = vthread.Stream(m, 'mystream', clk, rst)
2828
a = strm.source('a')
2929
b = strm.source('b')
30-
c = strm.Predicate(a, b > 128 + 16)
30+
c = strm.Predicate(a, strm.Ands(b > 128 + 4, b <= 128 + 16))
3131
strm.sink(c, 'c')
3232

3333
def comp_stream(size, offset):
@@ -42,7 +42,7 @@ def comp_sequential(size, offset):
4242
for i in range(size):
4343
a = ram_a.read(i + offset)
4444
b = ram_b.read(i + offset)
45-
if b > 128 + 16:
45+
if b > 128 + 4 and b <= 128 + 16:
4646
c = a
4747
ram_c.write(i + offset, c)
4848

@@ -53,7 +53,6 @@ def check(size, offset_stream, offset_seq):
5353
sq = ram_c.read(i + offset_seq)
5454
if vthread.verilog.NotEql(st, sq):
5555
all_ok = False
56-
print(i, st, sq)
5756
if all_ok:
5857
print('# verify: PASSED')
5958
else:

0 commit comments

Comments
 (0)