Skip to content

Commit 8c07251

Browse files
committed
SubstreamMultiCycle is improved. Reduction operators and ReadRAM/WriteRAM are supported in SubstreamMultiCycle.
1 parent 5e15d3e commit 8c07251

File tree

31 files changed

+1193
-438
lines changed

31 files changed

+1193
-438
lines changed

tests/extension/thread_/stream_axi_stream/test_thread_stream_axi_stream.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@
191191
192192
reg _mystream_stream_ivalid;
193193
wire _mystream_stream_oready;
194-
assign _mystream_stream_oready = 1;
194+
wire _mystream_stream_internal_oready;
195+
assign _mystream_stream_internal_oready = 1;
196+
assign _mystream_stream_oready = _mystream_stream_internal_oready;
195197
reg [32-1:0] _mystream_fsm;
196198
localparam _mystream_fsm_init = 0;
197199
wire _mystream_run_flag;
@@ -1103,13 +1105,13 @@
11031105
_mystream_source_stop <= 0;
11041106
_mystream_stream_ivalid <= 0;
11051107
end else begin
1106-
if(_tmp_46 && _mystream_stream_oready) begin
1108+
if(_mystream_stream_oready && _tmp_46) begin
11071109
_mystream_stream_ivalid <= 1;
11081110
end
11091111
if(_mystream_stream_oready) begin
11101112
_mystream_source_stop <= 0;
11111113
end
1112-
if(_tmp_49 && _mystream_stream_oready) begin
1114+
if(_mystream_stream_oready && _tmp_49) begin
11131115
_mystream_stream_ivalid <= 0;
11141116
end
11151117
case(_mystream_fsm)

tests/extension/thread_/stream_axi_stream_async/test_thread_stream_axi_stream_async.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@
191191
192192
reg _mystream_stream_ivalid;
193193
wire _mystream_stream_oready;
194-
assign _mystream_stream_oready = 1;
194+
wire _mystream_stream_internal_oready;
195+
assign _mystream_stream_internal_oready = 1;
196+
assign _mystream_stream_oready = _mystream_stream_internal_oready;
195197
reg [32-1:0] _mystream_fsm;
196198
localparam _mystream_fsm_init = 0;
197199
wire _mystream_run_flag;
@@ -1103,13 +1105,13 @@
11031105
_mystream_source_stop <= 0;
11041106
_mystream_stream_ivalid <= 0;
11051107
end else begin
1106-
if(_tmp_46 && _mystream_stream_oready) begin
1108+
if(_mystream_stream_oready && _tmp_46) begin
11071109
_mystream_stream_ivalid <= 1;
11081110
end
11091111
if(_mystream_stream_oready) begin
11101112
_mystream_source_stop <= 0;
11111113
end
1112-
if(_tmp_49 && _mystream_stream_oready) begin
1114+
if(_mystream_stream_oready && _tmp_49) begin
11131115
_mystream_stream_ivalid <= 0;
11141116
end
11151117
case(_mystream_fsm)

tests/extension/thread_/stream_counter_stall/thread_stream_counter_stall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def mkLed():
4444
count.inc()
4545
)
4646

47-
util.add_disable_cond(strm.stream_oready, 1, count == 0)
47+
util.add_disable_cond(strm.oready, 1, count == 0)
4848

4949
def comp_stream(size, offset):
5050
strm.set_source('a', ram_a, offset, size)

tests/extension/thread_/stream_linebuffer2d_2_stall/thread_stream_linebuffer2d_2_stall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def mkLed():
6464
count.inc()
6565
)
6666

67-
util.add_disable_cond(strm.stream_oready, 1, count == 0)
67+
util.add_disable_cond(strm.oready, 1, count == 0)
6868

6969
# for sequential
7070
ram_bufs = [vthread.RAM(m, 'ram_buf' + str(i), clk, rst, datawidth, addrwidth)

tests/extension/thread_/stream_linebuffer2d_stall/thread_stream_linebuffer2d_stall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def mkLed():
5858
count.inc()
5959
)
6060

61-
util.add_disable_cond(strm.stream_oready, 1, count == 0)
61+
util.add_disable_cond(strm.oready, 1, count == 0)
6262

6363
def comp_stream(width, height, offset):
6464
strm.set_source('dummy_src', ram_dummy_src, offset, width * height * 2 * 2)

tests/extension/thread_/stream_linebuffer3d_stall/thread_stream_linebuffer3d_stall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def mkLed():
6161
count.inc()
6262
)
6363

64-
util.add_disable_cond(strm.stream_oready, 1, count == 0)
64+
util.add_disable_cond(strm.oready, 1, count == 0)
6565

6666
def comp_stream(channel, width, height, offset):
6767
strm.set_source('dummy_src', ram_dummy_src, offset, channel * width * height * 2 * 2)

tests/extension/thread_/stream_multipattern_stall/thread_stream_multipattern_stall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def mkLed():
5353
count.inc()
5454
)
5555

56-
util.add_disable_cond(strm.stream_oready, 1, count == 0)
56+
util.add_disable_cond(strm.oready, 1, count == 0)
5757

5858
def comp_stream():
5959
strm.set_source_multipattern('a', ram_a, offsets, patterns)

tests/extension/thread_/stream_ram_external_ports/test_thread_stream_ram_external_ports.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@
161161
assign saxi_wready = _saxi_register_fsm == 2;
162162
reg _mystream_stream_ivalid;
163163
wire _mystream_stream_oready;
164-
assign _mystream_stream_oready = 1;
164+
wire _mystream_stream_internal_oready;
165+
assign _mystream_stream_internal_oready = 1;
166+
assign _mystream_stream_oready = _mystream_stream_internal_oready;
165167
reg [32-1:0] _mystream_fsm;
166168
localparam _mystream_fsm_init = 0;
167169
wire _mystream_run_flag;
@@ -734,13 +736,13 @@
734736
_mystream_source_stop <= 0;
735737
_mystream_stream_ivalid <= 0;
736738
end else begin
737-
if(_tmp_28 && _mystream_stream_oready) begin
739+
if(_mystream_stream_oready && _tmp_28) begin
738740
_mystream_stream_ivalid <= 1;
739741
end
740742
if(_mystream_stream_oready) begin
741743
_mystream_source_stop <= 0;
742744
end
743-
if(_tmp_31 && _mystream_stream_oready) begin
745+
if(_mystream_stream_oready && _tmp_31) begin
744746
_mystream_stream_ivalid <= 0;
745747
end
746748
case(_mystream_fsm)

tests/extension/thread_/stream_read_modify_write/thread_stream_read_modify_write.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def comp(size):
8585

8686
# sequential
8787
offset = size * 4
88-
myaxi.dma_read(ram_a, offset, 0, size * 2)
88+
myaxi.dma_read(ram_a, offset, 0, size)
8989
comp_sequential(numbins, size, offset)
9090
myaxi.dma_write(ram_b, offset, 1024 * 2, numbins)
9191

tests/extension/thread_/stream_read_modify_write_stall/thread_stream_read_modify_write_stall.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def mkLed():
4747
count.inc()
4848
)
4949

50-
util.add_disable_cond(strm.stream_oready, 1, count == 0)
50+
util.add_disable_cond(strm.oready, 1, count == 0)
5151

5252
def comp_stream(numbins, size, offset):
5353
for i in range(numbins):

0 commit comments

Comments
 (0)