-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
util_axis_fifo_asym: Updates and fixes
- Fixed an issue with the start-stop mechanism - Added new parameters to the configuration file for more rigorous testing Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
- Loading branch information
1 parent
d5a925d
commit 7ff867d
Showing
6 changed files
with
51 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,28 @@ | ||
global ad_project_params | ||
|
||
set random_width [expr int(8*pow(2, int(7.0*rand()+1)))] | ||
set ad_project_params(INPUT_WIDTH) $random_width | ||
set INPUT_WIDTH $random_width | ||
set ad_project_params(INPUT_WIDTH) $INPUT_WIDTH | ||
|
||
set random_width [expr int(8*pow(2, int(7.0*rand()+1)))] | ||
set ad_project_params(OUTPUT_WIDTH) $random_width | ||
set OUTPUT_WIDTH $random_width | ||
set ad_project_params(OUTPUT_WIDTH) $OUTPUT_WIDTH | ||
|
||
set FIFO_LIMITED [expr int(rand()*2)] | ||
set ad_project_params(FIFO_LIMITED) $FIFO_LIMITED | ||
|
||
if {$FIFO_LIMITED} { | ||
if {$INPUT_WIDTH > $OUTPUT_WIDTH} { | ||
set RATIO $INPUT_WIDTH/$OUTPUT_WIDTH | ||
} else { | ||
set RATIO $OUTPUT_WIDTH/$INPUT_WIDTH | ||
} | ||
} else { | ||
set RATIO 1 | ||
} | ||
|
||
set random_width [expr int(int(log($RATIO)/log(2))+4.0*rand()+1)] | ||
set ad_project_params(ADDRESS_WIDTH) $random_width | ||
|
||
set ad_project_params(INPUT_CLK) [expr int(rand()*9000)+1000] | ||
set ad_project_params(OUTPUT_CLK) [expr int(rand()*9000)+1000] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters