Skip to content

Commit 483e57f

Browse files
util_axis_fifo_asym: Updated testbench parameterization and documentation according to HDL changes (#230)
Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
1 parent a1bcdbc commit 483e57f

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

docs/testbenches/ip_based/util_axis_fifo_asym/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ The following parameters of this project that can be configured:
4242
Options: Power of 2, min 8, max 1024
4343
- OUTPUT_WIDTH: output data width
4444
Options: Power of 2, min 8, max 1024
45-
- FIFO_LIMITED: specifies if the FIFO size can be reduced
46-
Options: 0 for reduced, 1 for not reduced
45+
- REDUCED_FIFO: specifies if the FIFO size can be reduced
46+
Options: 1 for reduced, 0 for not reduced
4747
- ADDRESS_WIDTH: address width
4848
Options: (0 to 4) + log2(width_ratio)
4949
- INPUT_CLK: input clock period in ns
@@ -71,7 +71,7 @@ The following configuration files are available:
7171
- random
7272
* - OUTPUT_WIDTH
7373
- random
74-
* - FIFO_LIMITED
74+
* - REDUCED_FIFO
7575
- random
7676
* - ADDRESS_WIDTH
7777
- random

testbenches/ip/util_axis_fifo_asym/cfgs/cfg_rand.tcl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ set random_width [expr int(8*pow(2, int(7.0*rand()+1)))]
1717
set OUTPUT_WIDTH $random_width
1818
set ad_project_params(OUTPUT_WIDTH) $OUTPUT_WIDTH
1919

20-
set fifo_limited [expr int(rand()*2)]
21-
set ad_project_params(FIFO_LIMITED) $fifo_limited
20+
set reduced_fifo [expr int(rand()*2)]
21+
set ad_project_params(REDUCED_FIFO) $reduced_fifo
2222

23-
if {$fifo_limited} {
23+
if {$reduced_fifo} {
2424
if {$INPUT_WIDTH > $OUTPUT_WIDTH} {
2525
set RATIO $INPUT_WIDTH/$OUTPUT_WIDTH
2626
} else {

testbenches/ip/util_axis_fifo_asym/system_bd.tcl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ set TKEEP_EN $ad_project_params(TKEEP_EN)
4040
set TLAST_EN $ad_project_params(TLAST_EN)
4141
set INPUT_WIDTH $ad_project_params(INPUT_WIDTH)
4242
set OUTPUT_WIDTH $ad_project_params(OUTPUT_WIDTH)
43-
set FIFO_LIMITED $ad_project_params(FIFO_LIMITED)
43+
set REDUCED_FIFO $ad_project_params(REDUCED_FIFO)
4444
set ADDRESS_WIDTH $ad_project_params(ADDRESS_WIDTH)
4545
set INPUT_CLK $ad_project_params(INPUT_CLK)
4646
set OUTPUT_CLK $ad_project_params(OUTPUT_CLK)
@@ -86,8 +86,7 @@ ad_ip_instance util_axis_fifo_asym util_axis_fifo_asym_DUT [list \
8686
ALMOST_FULL_THRESHOLD 0 \
8787
TLAST_EN $TLAST_EN \
8888
TKEEP_EN $TKEEP_EN \
89-
FIFO_LIMITED $FIFO_LIMITED \
90-
ADDRESS_WIDTH_PERSPECTIVE 0 \
89+
REDUCED_FIFO $REDUCED_FIFO \
9190
]
9291

9392
ad_connect input_clk util_axis_fifo_asym_DUT/s_axis_aclk

0 commit comments

Comments
 (0)