Skip to content

Commit 3a964e1

Browse files
authored
Merge pull request #4543 from oharboe/synth-strip-src-after-techmap
synth: strip src attributes again after techmap under SYNTH_REPEATABLE_BUILD
2 parents 95ebc50 + 40154a9 commit 3a964e1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎flow/scripts/synth.tcl‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,13 @@ if {
322322
check -assert
323323
}
324324

325+
if { $::env(SYNTH_REPEATABLE_BUILD) } {
326+
# techmap re-attaches src attributes that point into the techmap library,
327+
# after synth_canonicalize.tcl stripped them; strip again so the netlist
328+
# carries no build paths.
329+
setattr -unset src *
330+
setattr -mod -unset src *
331+
}
332+
325333
# Write synthesized design
326334
write_verilog -nohex -nodec $::env(RESULTS_DIR)/1_2_yosys.v

0 commit comments

Comments
 (0)