write_sdc -gzip
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
65774f4bdd
commit
3849b961c4
|
|
@ -926,9 +926,9 @@ public:
|
||||||
bool leaf,
|
bool leaf,
|
||||||
// Replace non-sdc get functions with OpenSTA equivalents.
|
// Replace non-sdc get functions with OpenSTA equivalents.
|
||||||
bool native,
|
bool native,
|
||||||
bool no_timestamp,
|
int digits,
|
||||||
int digits);
|
bool gzip,
|
||||||
|
bool no_timestamp);
|
||||||
// The sum of all negative endpoints slacks.
|
// The sum of all negative endpoints slacks.
|
||||||
// Incrementally updated.
|
// Incrementally updated.
|
||||||
Slack totalNegativeSlack(const MinMax *min_max);
|
Slack totalNegativeSlack(const MinMax *min_max);
|
||||||
|
|
|
||||||
|
|
@ -31,8 +31,9 @@ writeSdc(Instance *instance,
|
||||||
bool map_hpins,
|
bool map_hpins,
|
||||||
// Replace non-sdc get functions with OpenSTA equivalents.
|
// Replace non-sdc get functions with OpenSTA equivalents.
|
||||||
bool native,
|
bool native,
|
||||||
bool no_timestamp,
|
|
||||||
int digits,
|
int digits,
|
||||||
|
bool gzip,
|
||||||
|
bool no_timestamp,
|
||||||
Sdc *sdc);
|
Sdc *sdc);
|
||||||
|
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
|
||||||
513
sdc/WriteSdc.cc
513
sdc/WriteSdc.cc
File diff suppressed because it is too large
Load Diff
|
|
@ -31,14 +31,14 @@ public:
|
||||||
bool map_hpins,
|
bool map_hpins,
|
||||||
bool native,
|
bool native,
|
||||||
int digits,
|
int digits,
|
||||||
|
bool gzip,
|
||||||
bool no_timestamp,
|
bool no_timestamp,
|
||||||
Sdc *sdc);
|
Sdc *sdc);
|
||||||
virtual ~WriteSdc();
|
virtual ~WriteSdc();
|
||||||
void write();
|
void write();
|
||||||
|
|
||||||
void openFile(const char *filename);
|
void openFile();
|
||||||
void closeFile();
|
void closeFile();
|
||||||
void flush();
|
|
||||||
virtual void writeHeader() const;
|
virtual void writeHeader() const;
|
||||||
void writeTiming() const;
|
void writeTiming() const;
|
||||||
void writeDisables() const;
|
void writeDisables() const;
|
||||||
|
|
@ -245,7 +245,7 @@ public:
|
||||||
void writeVariables() const;
|
void writeVariables() const;
|
||||||
void writeCmdComment(SdcCmdComment *cmd) const;
|
void writeCmdComment(SdcCmdComment *cmd) const;
|
||||||
|
|
||||||
FILE *stream() const { return stream_; }
|
gzFile stream() const { return stream_; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Instance *instance_;
|
Instance *instance_;
|
||||||
|
|
@ -254,11 +254,12 @@ protected:
|
||||||
bool map_hpins_;
|
bool map_hpins_;
|
||||||
bool native_;
|
bool native_;
|
||||||
int digits_;
|
int digits_;
|
||||||
|
bool gzip_;
|
||||||
bool no_timestamp_;
|
bool no_timestamp_;
|
||||||
bool top_instance_;
|
bool top_instance_;
|
||||||
size_t instance_name_length_;
|
size_t instance_name_length_;
|
||||||
Cell *cell_;
|
Cell *cell_;
|
||||||
FILE *stream_;
|
gzFile stream_;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DISALLOW_COPY_AND_ASSIGN(WriteSdc);
|
DISALLOW_COPY_AND_ASSIGN(WriteSdc);
|
||||||
|
|
|
||||||
|
|
@ -2118,11 +2118,12 @@ void
|
||||||
Sta::writeSdc(const char *filename,
|
Sta::writeSdc(const char *filename,
|
||||||
bool leaf,
|
bool leaf,
|
||||||
bool native,
|
bool native,
|
||||||
bool no_timestamp,
|
int digits,
|
||||||
int digits)
|
bool gzip,
|
||||||
|
bool no_timestamp)
|
||||||
{
|
{
|
||||||
sta::writeSdc(network_->topInstance(), filename, "write_sdc",
|
sta::writeSdc(network_->topInstance(), filename, "write_sdc",
|
||||||
leaf, native, no_timestamp, digits, sdc_);
|
leaf, native, digits, gzip, no_timestamp, sdc_);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
|
|
|
||||||
10
tcl/Sdc.tcl
10
tcl/Sdc.tcl
|
|
@ -141,27 +141,25 @@ proc source_ { filename echo verbose } {
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
define_cmd_args "write_sdc" \
|
define_cmd_args "write_sdc" \
|
||||||
{[-map_hpins] [-no_timestamp] [-digits digits] filename}
|
{[-map_hpins] [-digits digits] [-gzip] [-no_timestamp] filename}
|
||||||
|
|
||||||
proc write_sdc { args } {
|
proc write_sdc { args } {
|
||||||
parse_key_args "write_sdc" args keys {-digits -significant_digits} \
|
parse_key_args "write_sdc" args keys {-digits -significant_digits} \
|
||||||
flags {-map_hpins -compatible -no_timestamp}
|
flags {-map_hpins -compatible -gzip -no_timestamp}
|
||||||
check_argc_eq1 "write_sdc" $args
|
check_argc_eq1 "write_sdc" $args
|
||||||
|
|
||||||
set digits 4
|
set digits 4
|
||||||
if { [info exists keys(-digits)] } {
|
if { [info exists keys(-digits)] } {
|
||||||
set digits $keys(-digits)
|
set digits $keys(-digits)
|
||||||
}
|
}
|
||||||
if { [info exists keys(-significant_digits)] } {
|
|
||||||
set digits $keys(-significant_digits)
|
|
||||||
}
|
|
||||||
check_positive_integer "-digits" $digits
|
check_positive_integer "-digits" $digits
|
||||||
|
|
||||||
set filename [file nativename [lindex $args 0]]
|
set filename [file nativename [lindex $args 0]]
|
||||||
|
set gzip [info exists flags(-gzip)]
|
||||||
set no_timestamp [info exists flags(-no_timestamp)]
|
set no_timestamp [info exists flags(-no_timestamp)]
|
||||||
set map_hpins [info exists flags(-map_hpins)]
|
set map_hpins [info exists flags(-map_hpins)]
|
||||||
set native [expr ![info exists flags(-compatible)]]
|
set native [expr ![info exists flags(-compatible)]]
|
||||||
write_sdc_cmd $filename $map_hpins $native $no_timestamp $digits
|
write_sdc_cmd $filename $map_hpins $native $digits $gzip $no_timestamp
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
|
|
||||||
|
|
@ -4918,11 +4918,12 @@ void
|
||||||
write_sdc_cmd(const char *filename,
|
write_sdc_cmd(const char *filename,
|
||||||
bool leaf,
|
bool leaf,
|
||||||
bool compatible,
|
bool compatible,
|
||||||
bool no_timestamp,
|
int digits,
|
||||||
int digits)
|
bool gzip,
|
||||||
|
bool no_timestamp)
|
||||||
{
|
{
|
||||||
cmdLinkedNetwork();
|
cmdLinkedNetwork();
|
||||||
Sta::sta()->writeSdc(filename, leaf, compatible, no_timestamp, digits);
|
Sta::sta()->writeSdc(filename, leaf, compatible, digits, gzip, no_timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue