File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed
docs/testbenches/ip_based/util_axis_fifo_asym
testbenches/ip/util_axis_fifo_asym Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ set random_width [expr int(8*pow(2, int(7.0*rand()+1)))]
1717set OUTPUT_WIDTH $random_width
1818set 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 {
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ set TKEEP_EN $ad_project_params(TKEEP_EN)
4040set TLAST_EN $ad_project_params(TLAST_EN)
4141set INPUT_WIDTH $ad_project_params(INPUT_WIDTH)
4242set 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 )
4444set ADDRESS_WIDTH $ad_project_params(ADDRESS_WIDTH)
4545set INPUT_CLK $ad_project_params(INPUT_CLK)
4646set 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
9392ad_connect input_clk util_axis_fifo_asym_DUT/s_axis_aclk
You can’t perform that action at this time.
0 commit comments