minor update

This commit is contained in:
Blaise Tine 2024-08-17 05:32:21 -07:00
parent 1f43d4a2fc
commit 62a4ee7a3e
2 changed files with 8 additions and 6 deletions

View file

@ -98,10 +98,10 @@ if [ "$copy_folder" != "" ]; then
if [ $preprocessor != 0 ] && { [ "$file_ext" == "v" ] || [ "$file_ext" == "sv" ]; }; then
if [[ -n "$params_str" && $file_name == "$top_module."* ]]; then
temp_file=$(mktemp)
"$SCRIPT_DIR/repl_params.py" "$params_str" -T"$top_module" "$file" > "$temp_file"
verilator "$defines_str" "$includes_str" -E -P "$temp_file" > "$copy_folder/$file_name"
$script_dir/repl_params.py $params_str -T$top_module "$file" > "$temp_file"
verilator $defines_str $includes_str -E -P "$temp_file" > "$copy_folder/$file_name"
else
verilator "$defines_str" "$includes_str" -E -P "$file" > "$copy_folder/$file_name"
verilator $defines_str $includes_str -E -P "$file" > "$copy_folder/$file_name"
fi
else
cp "$file" "$copy_folder"

View file

@ -1,6 +1,8 @@
ROOT_DIR := $(realpath ../../..)
include $(ROOT_DIR)/config.mk
SRC_DIR := $(VORTEX_HOME)/hw/syn/yosys
TOP_LEVEL_ENTITY ?= Vortex
PREFIX ?= build
NUM_CORES ?= 1
@ -82,13 +84,13 @@ $(BUILD_DIR)/project.v: gen-sources
cd $(BUILD_DIR); $(SCRIPT_DIR)/sv2v.sh -t$(TOP_LEVEL_ENTITY) -Isrc -oproject.v
build: $(BUILD_DIR)/project.v
cd $(BUILD_DIR); synth.sh -t$(TOP_LEVEL_ENTITY) -sproject.v
cd $(BUILD_DIR); $(SRC_DIR)/synth.sh -t$(TOP_LEVEL_ENTITY) -sproject.v
elaborate: $(BUILD_DIR)/project.v
cd $(BUILD_DIR); synth.sh -t$(TOP_LEVEL_ENTITY) -sproject.v -P="elaborate"
cd $(BUILD_DIR); $(SRC_DIR)/synth.sh -t$(TOP_LEVEL_ENTITY) -sproject.v -P="elaborate"
synthesis: $(BUILD_DIR)/project.v
cd $(BUILD_DIR); synth.sh -t$(TOP_LEVEL_ENTITY) -sproject.v -P="synthesis"
cd $(BUILD_DIR); $(SRC_DIR)/synth.sh -t$(TOP_LEVEL_ENTITY) -sproject.v -P="synthesis"
clean:
$(RMDIR) $(BUILD_DIR)