Skip to content

Commit 2980f58

Browse files
committed
thread_stream_matmul
1 parent acedffc commit 2980f58

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/thread_stream_matmul/thread_stream_matmul.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ def matmul(matrix_size, a_offset, b_offset, c_offset):
3939
check(matrix_size, a_offset, b_offset, c_offset)
4040

4141
def strm_madd(strm, size, waddr):
42-
a = strm.read_sequential(ram_a, 0, size)
43-
b = strm.read_sequential(ram_b, 0, size)
42+
a = strm.read(ram_a, 0, size)
43+
b = strm.read(ram_b, 0, size)
4444
sum, valid = strm.RegionAdd(a * b, size)
45-
strm.write_sequential(ram_c, waddr, 1, sum, when=valid)
45+
strm.write(ram_c, waddr, 1, sum, when=valid)
4646

4747
def comp(matrix_size, a_offset, b_offset, c_offset):
4848
a_addr, c_addr = a_offset, c_offset

0 commit comments

Comments
 (0)