-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
89 changed files
with
4,304 additions
and
265 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
tests/extension/thread_/stream_fixed_different_point/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
TARGET=$(shell ls *.py | grep -v test | grep -v parsetab.py) | ||
ARGS= | ||
|
||
PYTHON=python3 | ||
#PYTHON=python | ||
#OPT=-m pdb | ||
#OPT=-m cProfile -s time | ||
#OPT=-m cProfile -o profile.rslt | ||
|
||
.PHONY: all | ||
all: test | ||
|
||
.PHONY: run | ||
run: | ||
$(PYTHON) $(OPT) $(TARGET) $(ARGS) | ||
|
||
.PHONY: test | ||
test: | ||
$(PYTHON) -m pytest -vv | ||
|
||
.PHONY: check | ||
check: | ||
$(PYTHON) $(OPT) $(TARGET) $(ARGS) > tmp.v | ||
iverilog -tnull -Wall tmp.v | ||
rm -f tmp.v | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd |
18 changes: 18 additions & 0 deletions
18
...xtension/thread_/stream_fixed_different_point/test_thread_stream_fixed_different_point.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from __future__ import absolute_import | ||
from __future__ import print_function | ||
|
||
import os | ||
import veriloggen | ||
import thread_stream_fixed_different_point | ||
|
||
|
||
def test(request): | ||
veriloggen.reset() | ||
|
||
simtype = request.config.getoption('--sim') | ||
|
||
rslt = thread_stream_fixed_different_point.run(filename=None, simtype=simtype, | ||
outputfile=os.path.splitext(os.path.basename(__file__))[0] + '.out') | ||
|
||
verify_rslt = rslt.splitlines()[-1] | ||
assert(verify_rslt == '# verify: PASSED') |
Oops, something went wrong.