Skip to content

Commit c87d40e

Browse files
deploy: 3130e69 #241 (synchronize)
1 parent 031b23d commit c87d40e

File tree

5 files changed

+72
-45
lines changed

5 files changed

+72
-45
lines changed

pull/241/_sources/user_guide/build_tb.rst.txt

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ relative to the :git-hdl:`HDL repository </>`. Our recommendation is to clone
4141
the testbenches repository next to the HDL repository:
4242

4343
.. shell::
44+
:showuser:
4445

4546
$git clone [email protected]:analogdevicesinc/testbenches.git
4647

@@ -50,6 +51,7 @@ branch, but it also has features **that are not fully tested**. If you
5051
want to switch to any other branch you need to checkout that branch:
5152

5253
.. shell::
54+
:showuser:
5355

5456
$cd testbenches/
5557
$git branch
@@ -80,12 +82,14 @@ these things, it is best to leave it to the tools to set up the environment.
8082
For Vivado versions of 2025 and later, use the following command:
8183

8284
.. shell::
85+
:showuser:
8386

8487
$export PATH=$PATH:/opt/Xilinx/202x.x/Vivado/bin:/opt/Xilinx/202x.x/Vitis/bin
8588

8689
For Vivado versions prior to 2025, use the following command:
8790

8891
.. shell::
92+
:showuser:
8993

9094
$export PATH=$PATH:/opt/Xilinx/Vivado/202x.x/bin:/opt/Xilinx/Vitis/202x.x/bin
9195

@@ -100,12 +104,14 @@ similar manner to the Linux environment.
100104
For Vivado versions of 2025 and later, use the following command:
101105

102106
.. shell::
107+
:showuser:
103108

104109
$export PATH=$PATH:/cygdrive/d/Xilinx/202x.x/Vivado/bin:/cygdrive/d/Xilinx/202x.x/Vitis/bin
105110

106111
For Vivado versions prior to 2025, use the following command:
107112

108113
.. shell::
114+
:showuser:
109115

110116
$export PATH=$PATH:/cygdrive/d/Xilinx/Vivado/202x.x/bin:/cygdrive/d/Xilinx/Vitis/202x.x/bin
111117

@@ -116,12 +122,14 @@ manual changes to your **.bashrc** should look like:
116122
For Vivado versions of 2025 and later, use the following command:
117123

118124
.. shell::
125+
:showuser:
119126

120127
$export PATH=$PATH:/opt/path_to/202x.x/Vivado/bin:/opt/202x.x/Vitis/bin
121128

122129
For Vivado versions prior to 2025, use the following command:
123130

124131
.. shell::
132+
:showuser:
125133

126134
$export PATH=$PATH:/opt/path_to/Vivado/202x.x/bin:/opt/Vitis/202x.x/bin
127135

@@ -142,6 +150,7 @@ The make script must know where the cloned HDL and Testbenches repositories are
142150
located. Two variables must be exported, which specify the target directories:
143151

144152
.. shell::
153+
:showuser:
145154

146155
$export ADI_HDL_DIR=<path to cloned HDL directory>
147156
$export ADI_TB_DIR=<path to cloned Testbenches directory>
@@ -156,11 +165,12 @@ Building a testbench
156165
from above!
157166

158167
The way of building a testbench in Cygwin and WSL is almost the same.
159-
In this example, it is building the **AD7616** testbench.
168+
In this example, it is building the **Base** testbench.
160169

161170
.. shell::
171+
:showuser:
162172

163-
$cd ad7616
173+
$cd testbenches/ip/base
164174
$make
165175

166176
The ``make`` builds all the libraries first and then builds the testbench. The
@@ -184,6 +194,7 @@ configuration/test program parameter. Often used in combination with ``clean``
184194
parameter.
185195

186196
.. shell::
197+
:showuser:
187198

188199
$make all
189200

@@ -192,8 +203,9 @@ without any other input. This will build the configuration and run all test
192203
programs on it.
193204

194205
.. shell::
206+
:showuser:
195207

196-
$make cfg_si
208+
$make cfg
197209

198210
Some projects support adding additional ``make`` parameters to configure
199211
the project. This option gives you the ability to build only the configuration
@@ -202,8 +214,9 @@ configurations, as well as running the chosen test program. ``CFG`` specifies
202214
the configuration file's name, while ``TST`` specifies the test program's name.
203215

204216
.. shell::
217+
:showuser:
205218

206-
$make CFG=cfg_si TST=test_program_si
219+
$make CFG=cfg1 TST=test_program
207220

208221
.. caution::
209222

@@ -221,6 +234,7 @@ The ``clean`` keyword removes the ``runs`` and ``results`` folders, as well as
221234
the log files created by Vivado.
222235

223236
.. shell::
237+
:showuser:
224238

225239
$make clean
226240

@@ -230,7 +244,9 @@ well. By default, ``make`` launches Vivado in batch mode, meaning that it won't
230244
provide a GUI, only a result in the terminal at the end of the simulation.
231245

232246
.. shell::
247+
:showuser:
233248

249+
$cd testbenches/ip/base
234250
$make MODE=gui
235251

236252
The ``STOP_ON_ERROR`` parameter is mainly used for continuous integration
@@ -242,6 +258,7 @@ all testbenches is ``n``. This is useful for checking which configuration and
242258
test program configurations are failing.
243259

244260
.. shell::
261+
:showuser:
245262

246263
$make STOP_ON_ERROR=y
247264

@@ -299,8 +316,9 @@ waveform, there are two options:
299316
mode right after it builds the block design.
300317

301318
.. shell::
319+
:showuser:
302320

303-
$cd ad7616
321+
$cd testbenches/ip/base
304322
$make MODE=gui
305323

306324
- Build the testbench using ``make`` and open Vivado manually after the block
@@ -311,10 +329,11 @@ waveform, there are two options:
311329
that can be opened.
312330

313331
.. shell::
332+
:showuser:
314333

315-
$cd ad7616
334+
$cd testbenches/ip/base
316335
$make
317-
$cd runs/cfg_si
318-
$vivado ./cfg_si.xpr
336+
$cd runs/cfg1
337+
$vivado ./cfg1.xpr
319338

320339
.. _AMD Xilinx Vivado: https://www.xilinx.com/support/download.html

pull/241/_sources/user_guide/create_edit_tb.rst.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ After this change, ``xvlog`` will start linting the ``*_pkg.sv`` files.
185185
If you prefer not to use the Vivado GUI, you can call ``xvlog`` directly:
186186

187187
.. shell::
188+
:showuser:
188189

189190
/path/testbenches/library/vip/adi/my_vip
190191
$xvlog -prj ./*.sim/sim_1/behav/xsim/*_vlog.prj \
@@ -193,6 +194,7 @@ If you prefer not to use the Vivado GUI, you can call ``xvlog`` directly:
193194
And for a specific file:
194195

195196
.. shell::
197+
:showuser:
196198

197199
/path/testbenches/library/vip/adi/my_vip
198200
$xvlog -work xil_defaultlib --sv -i ../../../utilities \

pull/241/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)