Skip to content

Commit aedbbd9

Browse files
committed
Stream circuits are shared by multiple calls.
1 parent 2d92c2e commit aedbbd9

File tree

22 files changed

+11925
-2553
lines changed

22 files changed

+11925
-2553
lines changed

examples/thread_stream_matmul/test_thread_stream_matmul.py

Lines changed: 200 additions & 154 deletions
Large diffs are not rendered by default.

tests/extension/thread_/stream/test_thread_stream.py

Lines changed: 212 additions & 166 deletions
Large diffs are not rendered by default.

tests/extension/thread_/stream_conv1d/test_thread_stream_conv1d.py

Lines changed: 212 additions & 166 deletions
Large diffs are not rendered by default.

tests/extension/thread_/stream_len1/test_thread_stream_len1.py

Lines changed: 212 additions & 166 deletions
Large diffs are not rendered by default.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
TARGET=$(shell ls *.py | grep -v test | grep -v parsetab.py)
2+
ARGS=
3+
4+
PYTHON=python3
5+
#PYTHON=python
6+
#OPT=-m pdb
7+
#OPT=-m cProfile -s time
8+
#OPT=-m cProfile -o profile.rslt
9+
10+
.PHONY: all
11+
all: test
12+
13+
.PHONY: run
14+
run:
15+
$(PYTHON) $(OPT) $(TARGET) $(ARGS)
16+
17+
.PHONY: test
18+
test:
19+
$(PYTHON) -m pytest -vv
20+
21+
.PHONY: check
22+
check:
23+
$(PYTHON) $(OPT) $(TARGET) $(ARGS) > tmp.v
24+
iverilog -tnull -Wall tmp.v
25+
rm -f tmp.v
26+
27+
.PHONY: clean
28+
clean:
29+
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd

0 commit comments

Comments
 (0)