Added the ability to specify a regex filter for the part-name on the synthesis tests. Implemented as --synth-part. Closes #179 (#180)

This commit is contained in:
Benjamin Davis
2025-11-13 21:09:03 -07:00
committed by GitHub
parent 543bf2be9a
commit 3d5f9d8efb
5 changed files with 36 additions and 7 deletions

View File

@@ -1,5 +1,7 @@
set this_dir [file dirname [file normalize [info script]]]
set files $argv
set files [lrange $argv 1 end]
set part_regex [lindex $argv 0]
# Multi-driven
@@ -22,7 +24,7 @@ set_msg_config -id {[Synth 8-295]} -new_severity "ERROR"
set_msg_config -severity {CRITICAL WARNING} -new_severity "ERROR"
set_part [lindex [get_parts] 0]
set_part [lindex [get_parts -regex $part_regex] 0]
read_verilog -sv $files
read_xdc $this_dir/constr.xdc
synth_design -top regblock -mode out_of_context