cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Observer
Observer
750 Views
Registered: ‎04-04-2013

Analyzing messages of place_design

I am trying to write a script that checks for specific errors that might be created by place_design, i.e.:

place_design -cells [get_cells probeCell_0] -no_fanout_opt -no_bufg_opt

if {[get_msg_config -count -id {Common 17-69}]} {
     puts "An error 17-69 occured"
}

However, an error in place_design will cause the script to exit, but if I wrap place_design in a catch, get_msg_config always returns 0.

What is the correct way to continue a script after an error in an implementation phase like place_design, that allows getting the correct values from get_msg_config? (parsing the logs would be a workaround and not a solution)

0 Kudos
Reply
2 Replies
Explorer
Explorer
727 Views
Registered: ‎07-18-2018

get_msg_config i believe just lets you check what you have set.

There should be an error varaible after yoru try catch block that should have the value of the message that place reported when it failed.

 

0 Kudos
Reply
Observer
Observer
682 Views
Registered: ‎04-04-2013

@evant_nq while you are correct, that variable is of little help to me: the placer usually creates several error messages, and the error variable only holds the last message. A way to querry the message database would be helpful, as the messages do show up there.

0 Kudos
Reply