File size: 498 Bytes
34292e0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
source $::env(SCRIPTS_DIR)/synth_preamble.tcl
read_design_sources

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

source_env_var_if_exists SYNTH_CANONICALIZE_TCL

# Get rid of unused modules
opt_clean -purge
if { $::env(SYNTH_REPEATABLE_BUILD) } {
  # avoid source line and path info affecting the hash
  setattr -unset src *
  setattr -mod -unset src *
}
# The hash of this file will not change if files not part of synthesis do not change
write_rtlil $::env(RESULTS_DIR)/1_1_yosys_canonicalize.rtlil