Skip to content

Commit d53eeb0

Browse files
committed
types.ipcore is implemented. IP-core synthesis is supported by IPgen. Please install IPgen.
1 parent e7a4cb4 commit d53eeb0

File tree

9 files changed

+1067
-1
lines changed

9 files changed

+1067
-1
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ Install from pip (or download and install from GitHub):
7474

7575
pip install pyverilog
7676

77+
- IPgen: 0.2.0 or later
78+
79+
Install from pip (or download and install from GitHub):
80+
81+
pip install ipgen
82+
7783
Options
7884
--------------------
7985

README.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ Install from pip (or download and install from GitHub):
8484

8585
pip install pyverilog
8686

87+
- IPgen: 0.2.0 or later
88+
89+
Install from pip (or download and install from GitHub):
90+
91+
::
92+
93+
pip install ipgen
94+
8795
Options
8896
-------
8997

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def read(filename):
2121
url='https://github.com/PyHDI/veriloggen',
2222
packages=find_packages(),
2323
#package_data={ 'path' : ['*.*'], },
24-
install_requires=[ 'pyverilog>=1.0.6', 'Jinja2>=2.8' ],
24+
install_requires=[ 'pyverilog>=1.0.6', 'ipgen>=0.2.0', 'Jinja2>=2.8' ],
2525
extras_require={
2626
'graph' : [ 'pygraphviz>=1.3.1' ],
2727
'test' : [ 'pytest>=2.8.2', 'pytest-pythonpath>=0.7' ],
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
PYTHON=python3
2+
#PYTHON=python
3+
4+
.PHONY: all
5+
all: clean
6+
7+
.PHONY: test
8+
test:
9+
$(PYTHON) -m pytest -vv
10+
11+
.PHONY: run
12+
run:
13+
find . -maxdepth 1 -type d | grep "./" | xargs -I {} make run -C {}
14+
15+
.PHONY: clean
16+
clean:
17+
rm -rf *.pyc __pycache__ parsetab.py .cache *.out *.png *.dot tmp.v uut.vcd
18+
find . -maxdepth 1 -type d | grep "./" | xargs -I {} make clean -C {}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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
30+
rm -rf ipgen_*_v1_00_a

0 commit comments

Comments
 (0)