File tree Expand file tree Collapse file tree 5 files changed +66
-8
lines changed Expand file tree Collapse file tree 5 files changed +66
-8
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ language: python
33sudo : false
44
55python :
6- - 3.6
6+ - 3.7
77
88addons :
99 apt :
@@ -12,7 +12,7 @@ addons:
1212 - verilator
1313
1414install :
15- - pip install jinja2 pytest pytest-pythonpath pyverilog ipgen numpy
15+ - pip install pytest pytest-pythonpath jinja2 pyverilog numpy
1616
1717script :
1818 - python -m pytest tests examples
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ Requirements
8383sudo apt install iverilog
8484```
8585
86- - Pyverilog: 1.1.4 or later
8786- Jinja2: 2.10 or later
87+ - Pyverilog: 1.1.4 or later
8888- NumPy: 1.14 or later
8989
9090```
@@ -104,6 +104,14 @@ We recommend to install these testing library to verify experimental features.
104104pip3 install pytest pytest-pythonpath
105105```
106106
107+ For fast RTL simulation, we recommend to install Verilator.
108+
109+ - Verilator: 3.916 or later
110+
111+ ```
112+ sudo apt install verilator
113+ ```
114+
107115Optional installation for visualization
108116--------------------
109117
@@ -140,6 +148,26 @@ make
140148```
141149
142150
151+ Examples and testing
152+ ==============================
153+
154+ There are some exapmles in ** examples** and various testing codes in ** tests** .
155+ The testing codes are actually good small examples suggesting how to represent a desired function.
156+
157+ To run the testing codes, please type the following commands.
158+
159+ ```
160+ cd tests
161+ python3 -m pytest .
162+ ```
163+
164+ If you use Verilator instead of Icarus Verilog for RTL simulation, set "--sim" option.
165+
166+ ```
167+ python3 -m pytest --sim=verilator .
168+ ```
169+
170+
143171Getting started
144172==============================
145173
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ Requirements
9696
9797 sudo apt install iverilog
9898
99- - Pyverilog: 1.1.4 or later
10099- Jinja2: 2.10 or later
100+ - Pyverilog: 1.1.4 or later
101101- NumPy: 1.14 or later
102102
103103::
@@ -118,6 +118,14 @@ features.
118118
119119 pip3 install pytest pytest-pythonpath
120120
121+ For fast RTL simulation, we recommend to install Verilator.
122+
123+ - Verilator: 3.916 or later
124+
125+ ::
126+
127+ sudo apt install verilator
128+
121129Optional installation for visualization
122130---------------------------------------
123131
@@ -155,6 +163,27 @@ without any installation on your host platform.
155163 cd veriloggen/examples/led/
156164 make
157165
166+ Examples and testing
167+ ====================
168+
169+ There are some exapmles in **examples ** and various testing codes in
170+ **tests **. The testing codes are actually good small examples suggesting
171+ how to represent a desired function.
172+
173+ To run the testing codes, please type the following commands.
174+
175+ ::
176+
177+ cd tests
178+ python3 -m pytest .
179+
180+ If you use Verilator instead of Icarus Verilog for RTL simulation, set
181+ “–sim” option.
182+
183+ ::
184+
185+ python3 -m pytest --sim=verilator .
186+
158187Getting started
159188===============
160189
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ RUN apt update && apt upgrade -y
33RUN apt install build-essential -y
44RUN apt install git -y
55RUN apt install python3 python3-pip -y
6- RUN apt install iverilog gtkwave -y
7- RUN pip3 install jinja2 numpy pytest pytest-pythonpath pyverilog
6+ RUN apt install iverilog verilator gtkwave -y
7+ RUN pip3 install jinja2 pyverilog numpy
8+ RUN pip3 install pytest pytest-pythonpath
89RUN mkdir /home/veriloggen/
910WORKDIR "/home/veriloggen"
1011RUN git clone https://github.com/PyHDI/veriloggen.git
Original file line number Diff line number Diff line change @@ -23,8 +23,8 @@ def read(filename):
2323 packages = find_packages (),
2424 package_data = {'veriloggen.utils' : ['VERSION' ],
2525 'veriloggen.simulation' : ['*.cpp' ], },
26- install_requires = ['pyverilog>=1.1.4 ' ,
27- 'Jinja2>=2.10 ' ,
26+ install_requires = ['jinja2>=2.10 ' ,
27+ 'pyverilog>=1.1.4 ' ,
2828 'numpy>=1.14' ],
2929 extras_require = {
3030 'test' : ['pytest>=3.2' , 'pytest-pythonpath>=0.7' ],
You can’t perform that action at this time.
0 commit comments