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
3
3
sudo : false
4
4
5
5
python :
6
- - 3.6
6
+ - 3.7
7
7
8
8
addons :
9
9
apt :
@@ -12,7 +12,7 @@ addons:
12
12
- verilator
13
13
14
14
install :
15
- - pip install jinja2 pytest pytest-pythonpath pyverilog ipgen numpy
15
+ - pip install pytest pytest-pythonpath jinja2 pyverilog numpy
16
16
17
17
script :
18
18
- python -m pytest tests examples
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ Requirements
83
83
sudo apt install iverilog
84
84
```
85
85
86
- - Pyverilog: 1.1.4 or later
87
86
- Jinja2: 2.10 or later
87
+ - Pyverilog: 1.1.4 or later
88
88
- NumPy: 1.14 or later
89
89
90
90
```
@@ -104,6 +104,14 @@ We recommend to install these testing library to verify experimental features.
104
104
pip3 install pytest pytest-pythonpath
105
105
```
106
106
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
+
107
115
Optional installation for visualization
108
116
--------------------
109
117
@@ -140,6 +148,26 @@ make
140
148
```
141
149
142
150
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
+
143
171
Getting started
144
172
==============================
145
173
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ Requirements
96
96
97
97
sudo apt install iverilog
98
98
99
- - Pyverilog: 1.1.4 or later
100
99
- Jinja2: 2.10 or later
100
+ - Pyverilog: 1.1.4 or later
101
101
- NumPy: 1.14 or later
102
102
103
103
::
@@ -118,6 +118,14 @@ features.
118
118
119
119
pip3 install pytest pytest-pythonpath
120
120
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
+
121
129
Optional installation for visualization
122
130
---------------------------------------
123
131
@@ -155,6 +163,27 @@ without any installation on your host platform.
155
163
cd veriloggen/examples/led/
156
164
make
157
165
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
+
158
187
Getting started
159
188
===============
160
189
Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ RUN apt update && apt upgrade -y
3
3
RUN apt install build-essential -y
4
4
RUN apt install git -y
5
5
RUN 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
8
9
RUN mkdir /home/veriloggen/
9
10
WORKDIR "/home/veriloggen"
10
11
RUN 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):
23
23
packages = find_packages (),
24
24
package_data = {'veriloggen.utils' : ['VERSION' ],
25
25
'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 ' ,
28
28
'numpy>=1.14' ],
29
29
extras_require = {
30
30
'test' : ['pytest>=3.2' , 'pytest-pythonpath>=0.7' ],
You can’t perform that action at this time.
0 commit comments