feat: modify yosys script

This commit is contained in:
maksyuki committed 2025-01-23 23:53:24 +08:00
1 parent 2e559f091f
commit 52ae1beba2
3 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ export YOSYS_TARGET_PERIOD_PS := 10000
export YOSYS_BLACKBOX_MODULES := "*tc_sram_blackbox*"
# flatten hierarchy (except for below selections)
export YOSYS_FLATTEN_HIER := 1
export YOSYS_FLATTEN_HIER := 0
# a list of yosys selection strings, all selected instances will be
# kept as a seperate hierarchical element, all others will be flattened
+3
View File
@@ -28,6 +28,9 @@ source $script_dir/init_tech.tcl
# --compat-mode --keep-hierarchy \
# --allow-use-before-declare --ignore-unknown-modules
yosys read_verilog ../../tech/tc_io.v
yosys read_verilog ../../tech/tc_clk.v
yosys read_verilog ../../tech/tc_sram.v
yosys read_verilog ../../rtl/spram_model.v
yosys read_verilog ../../rtl/picorv32.v
yosys read_verilog ../../rtl/spimemio.v
+1 -3
View File
@@ -32,7 +32,6 @@ $(NETLIST) $(NETLIST_DEBUG):
@mkdir -p $(YOSYS_OUT)
@mkdir -p $(YOSYS_WORK)
@mkdir -p $(YOSYS_REPORTS)
SV_FLIST="$(SV_FLIST)" \
TOP_DESIGN="$(TOP_DESIGN)" \
PROJ_NAME="$(RTL_NAME)" \
WORK="$(YOSYS_WORK)" \
@@ -40,10 +39,9 @@ $(NETLIST) $(NETLIST_DEBUG):
REPORTS="$(YOSYS_REPORTS)" \
NETLIST="$(NETLIST)" \
$(YOSYS) -c $(YOSYS_DIR)/scripts/yosys_synthesis.tcl \
2>&1 | TZ=UTC gawk '{ print strftime("[%Y-%m-%d %H:%M %Z]"), $$0 }' \
2>&1 | TZ=UTC-8 gawk '{ print strftime("[%Y-%m-%d %H:%M %Z]"), $$0 }' \
| tee "$(YOSYS_DIR)/$(RTL_NAME).log" \
| gawk -f $(YOSYS_DIR)/scripts/filter_output.awk;
ys_clean:
rm -rf $(YOSYS_OUT)