ipbus / ipbb

IPbus Builder Tool
GNU General Public License v3.0
12 stars 12 forks source link

Avoid Vivado (2021.2 only?) throwing errors due to repeated calls to set_msg_config #179

Closed jhegeman closed 1 year ago

jhegeman commented 1 year ago

It appears that recent versions of Vivado (2021.2 in any case) don't always like repeated calls to set_msg_config with the same rules.

This is what (sometimes?) happens in the Vivado TCL console: `set_msg_config -id {Timing 38-282} -new_severity {ERROR}

WARNING: [Common 17-1361] You have specified a new message control rule that is equivalent to an existing rule with attributes ' -id {Timing 38-282} -new_severity {ERROR} '. The existing rule will be replaced.

ERROR: [Common 17-39] 'set_msg_config' failed due to earlier errors.`

The way around this (that always works) is to remove the rule beforehand, using reset_msg_config. That is what this little patch does.