read_sdc gzip files

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2021-11-14 17:53:25 -07:00
parent 1c9870c3d2
commit 65774f4bdd
4 changed files with 5 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -63,6 +63,9 @@ proc source_ { filename echo verbose } {
if [catch {open $filename r} stream] {
sta_error 511 "cannot open '$filename'."
} else {
if { [file extension $filename] == ".gz" } {
zlib push gunzip $stream
}
# Save file and line in recursive call to source.
if { [info exists sdc_file] } {
set sdc_file_save $sdc_file

View File

@ -389,7 +389,8 @@ VerilogWriter::writeAssigns(Instance *inst)
Term *term = network_->term(pin);
Net *net = network_->net(term);
Port *port = network_->port(pin);
if (network_->direction(port)->isAnyOutput()
if (port
&& network_->direction(port)->isAnyOutput()
&& !stringEqual(network_->name(port), network_->name(net))) {
// Port name is different from net name.
fprintf(stream_, " assign %s = %s;\n",