Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions hw/scripts/gen_sources.sh
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ if [ "$output_file" != "" ]; then

# extern *_pkg.sv and .v/.sv files
for dir in ${externs[@]}; do
find "$(realpath $dir)" -maxdepth 1 -type f -name "*_pkg.sv" -print
find "$(realpath $dir)" -maxdepth 1 -type f \( -name "*_pkg.sv" -o -name "defs_div_sqrt_mvp.sv" \) -print
done
for dir in ${externs[@]}; do
find "$(realpath $dir)" -maxdepth 1 -type f \( -name "*.v" -o -name "*.sv" \) ! -name "*_pkg.sv" -print
Expand All @@ -219,7 +219,7 @@ if [ "$output_file" != "" ]; then
if [ "$copy_folder" != "" ]; then
# All files have been copied; just point to the copy folder
echo "+incdir+$(realpath "$copy_folder")"
find "$(realpath "$copy_folder")" -maxdepth 1 -type f -name "*_pkg.sv" -print
find "$(realpath "$copy_folder")" -maxdepth 1 -type f \( -name "*_pkg.sv" -o -name "defs_div_sqrt_mvp.sv" \) -print
find "$(realpath "$copy_folder")" -maxdepth 1 -type f -name "*_if.sv" -print
find "$(realpath "$copy_folder")" -maxdepth 1 -type f \( -name "*.v" -o -name "*.sv" \) ! -name "*_pkg.sv" ! -name "*_if.sv" -print
else
Expand All @@ -230,7 +230,7 @@ if [ "$output_file" != "" ]; then

# *_pkg.sv, then *_if.sv (interfaces), then remaining .v/.sv from include dirs
for dir in ${includes[@]}; do
find "$(realpath "$dir")" -maxdepth 1 -type f -name "*_pkg.sv" -print
find "$(realpath "$dir")" -maxdepth 1 -type f \( -name "*_pkg.sv" -o -name "defs_div_sqrt_mvp.sv" \) -print
done
for dir in ${includes[@]}; do
find "$(realpath "$dir")" -maxdepth 1 -type f -name "*_if.sv" -print
Expand Down