Skip to content

Commit

Permalink
tcl update - error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
amirarjmand93 committed Dec 10, 2024
1 parent a898031 commit 178aca6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions vtr_flow/misc/yosys/synthesis.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ read_verilog -nomem2reg +/parmys/vtr_primitives.v
setattr -mod -set keep_hierarchy 1 single_port_ram
setattr -mod -set keep_hierarchy 1 dual_port_ram

set synlig $::env(synlig_exe_path)
puts "Using parmys as partial mapper"
# synlig path error handling
if {[catch {set synlig $::env(synlig_exe_path)} err]} {
puts "Error: $err"
puts "synlig_exe_path is not set"
} else {
set synlig $::env(synlig_exe_path)
puts "Using parmys as partial mapper"
}

# arch file: QQQ
# input files: [XXX]
Expand Down

0 comments on commit 178aca6

Please sign in to comment.