mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-06 14:55:14 +00:00
feat: modify yosys script
This commit is contained in:
3 files changed
+5
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user