read_sdc gzip files
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
1c9870c3d2
commit
65774f4bdd
BIN
doc/OpenSTA.odt
BIN
doc/OpenSTA.odt
Binary file not shown.
BIN
doc/OpenSTA.pdf
BIN
doc/OpenSTA.pdf
Binary file not shown.
|
|
@ -63,6 +63,9 @@ proc source_ { filename echo verbose } {
|
||||||
if [catch {open $filename r} stream] {
|
if [catch {open $filename r} stream] {
|
||||||
sta_error 511 "cannot open '$filename'."
|
sta_error 511 "cannot open '$filename'."
|
||||||
} else {
|
} else {
|
||||||
|
if { [file extension $filename] == ".gz" } {
|
||||||
|
zlib push gunzip $stream
|
||||||
|
}
|
||||||
# Save file and line in recursive call to source.
|
# Save file and line in recursive call to source.
|
||||||
if { [info exists sdc_file] } {
|
if { [info exists sdc_file] } {
|
||||||
set sdc_file_save $sdc_file
|
set sdc_file_save $sdc_file
|
||||||
|
|
|
||||||
|
|
@ -389,7 +389,8 @@ VerilogWriter::writeAssigns(Instance *inst)
|
||||||
Term *term = network_->term(pin);
|
Term *term = network_->term(pin);
|
||||||
Net *net = network_->net(term);
|
Net *net = network_->net(term);
|
||||||
Port *port = network_->port(pin);
|
Port *port = network_->port(pin);
|
||||||
if (network_->direction(port)->isAnyOutput()
|
if (port
|
||||||
|
&& network_->direction(port)->isAnyOutput()
|
||||||
&& !stringEqual(network_->name(port), network_->name(net))) {
|
&& !stringEqual(network_->name(port), network_->name(net))) {
|
||||||
// Port name is different from net name.
|
// Port name is different from net name.
|
||||||
fprintf(stream_, " assign %s = %s;\n",
|
fprintf(stream_, " assign %s = %s;\n",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue