-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SC64][FW][SW] SD card byte swap on reads support (#39)
And other bug fixes related to DMA write mask
- Loading branch information
1 parent
8c7f97b
commit c4f6a0d
Showing
18 changed files
with
170 additions
and
41 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
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,5 +1,31 @@ | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
source $bindir/diamond_env | ||
|
||
diamondc build.tcl | ||
|
||
MINIMUM_FREQ=$(cat impl1/sc64_impl1.twr \ | ||
| grep 'Preference: FREQUENCY NET "clk"' \ | ||
| head -1 \ | ||
| awk -F ' ' '{print $5}' \ | ||
) | ||
|
||
DESIGN_FREQ=$(cat impl1/sc64_impl1.twr \ | ||
| sed -n '/Preference: FREQUENCY NET "clk"/,$p' \ | ||
| grep 'is the maximum frequency for this preference' \ | ||
| head -1 \ | ||
| awk -F ' ' '{print $2}' \ | ||
| sed 's/MHz//' \ | ||
) | ||
|
||
echo "Minimum required frequency: $MINIMUM_FREQ MHz" | ||
echo "Maximum design frequency: $DESIGN_FREQ MHz" | ||
|
||
if (( $(echo "$DESIGN_FREQ < $MINIMUM_FREQ" | bc -l) )); then | ||
echo "Timing error detected, build failed" | ||
exit 1 | ||
fi | ||
|
||
echo -n "$DESIGN_FREQ MHz" > impl1/fpga_max_frequency.txt |
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
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
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
Oops, something went wrong.