Skip to content
Closed
Show file tree
Hide file tree
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 flow/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -286,12 +286,12 @@ do-yosys: $(DONT_USE_SC_LIB)

.PHONY: do-yosys-canonicalize
do-yosys-canonicalize: yosys-dependencies $(DONT_USE_SC_LIB)
$(SCRIPTS_DIR)/synth.sh $(SCRIPTS_DIR)/synth_canonicalize.tcl $(LOG_DIR)/1_1_yosys_canonicalize.log
$(SCRIPTS_DIR)/synth.sh $(SCRIPTS_DIR)/synth_canonicalize.tcl $(LOG_DIR)/1_0_yosys_canonicalize.log

$(RESULTS_DIR)/1_synth.rtlil: $(YOSYS_DEPENDENCIES)
$(RESULTS_DIR)/1_0_yosys_canonicalize.rtlil: $(YOSYS_DEPENDENCIES)
$(UNSET_AND_MAKE) do-yosys-canonicalize

$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_synth.rtlil
$(RESULTS_DIR)/1_1_yosys.v: $(RESULTS_DIR)/1_0_yosys_canonicalize.rtlil
$(UNSET_AND_MAKE) do-yosys

.PHONY: do-synth
Expand Down
2 changes: 1 addition & 1 deletion flow/scripts/synth.tcl
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
read_checkpoint $::env(RESULTS_DIR)/1_synth.rtlil
read_checkpoint $::env(RESULTS_DIR)/1_0_yosys_canonicalize.rtlil

hierarchy -check -top $::env(DESIGN_NAME)

Expand Down
2 changes: 1 addition & 1 deletion flow/scripts/synth_canonicalize.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ hierarchy -check -top $::env(DESIGN_NAME)
# Get rid of unused modules
opt_clean -purge
# The hash of this file will not change if files not part of synthesis do not change
write_rtlil $::env(RESULTS_DIR)/1_synth.rtlil
write_rtlil $::env(RESULTS_DIR)/1_0_yosys_canonicalize.rtlil