link_design -no_black_boxes instead of var

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2024-07-22 16:13:19 -07:00
parent 53a45efd0d
commit d51497c12d
8 changed files with 19 additions and 43 deletions

View File

@ -11,6 +11,9 @@ The Cudd BBD packager is now required.
The USE_TCL_READLINE option defaults to ON. The USE_TCL_READLINE option defaults to ON.
The variable link_make_black_boxes has been removed.
Use the -no_black_boxes option to the link_design command.
Release 2.5.0 2024/01/17 Release 2.5.0 2024/01/17
------------------------- -------------------------

Binary file not shown.

Binary file not shown.

View File

@ -116,9 +116,8 @@ public:
// linked network. // linked network.
void readNetlistBefore(); void readNetlistBefore();
// Return true if successful. // Return true if successful.
bool linkDesign(const char *top_cell_name); bool linkDesign(const char *top_cell_name,
bool linkMakeBlackBoxes() const; bool make_black_boxes);
void setLinkMakeBlackBoxes(bool make);
// SDC Swig API. // SDC Swig API.
Instance *currentInstance() const; Instance *currentInstance() const;
@ -1452,7 +1451,6 @@ protected:
ReportPath *report_path_; ReportPath *report_path_;
Power *power_; Power *power_;
Tcl_Interp *tcl_interp_; Tcl_Interp *tcl_interp_;
bool link_make_black_boxes_;
bool update_genclks_; bool update_genclks_;
EquivCells *equiv_cells_; EquivCells *equiv_cells_;
bool graph_sdc_annotated_; bool graph_sdc_annotated_;

View File

@ -253,21 +253,10 @@ set_cmd_namespace_cmd(const char *namespc)
} }
bool bool
link_design_cmd(const char *top_cell_name) link_design_cmd(const char *top_cell_name,
bool make_black_boxes)
{ {
return Sta::sta()->linkDesign(top_cell_name); return Sta::sta()->linkDesign(top_cell_name, make_black_boxes);
}
bool
link_make_black_boxes()
{
return Sta::sta()->linkMakeBlackBoxes();
}
void
set_link_make_black_boxes(bool make)
{
Sta::sta()->setLinkMakeBlackBoxes(make);
} }
Instance * Instance *

View File

@ -268,7 +268,6 @@ Sta::Sta() :
clk_skews_(nullptr), clk_skews_(nullptr),
report_path_(nullptr), report_path_(nullptr),
power_(nullptr), power_(nullptr),
link_make_black_boxes_(true),
update_genclks_(false), update_genclks_(false),
equiv_cells_(nullptr), equiv_cells_(nullptr),
graph_sdc_annotated_(false), graph_sdc_annotated_(false),
@ -735,29 +734,18 @@ Sta::readNetlistBefore()
} }
bool bool
Sta::linkDesign(const char *top_cell_name) Sta::linkDesign(const char *top_cell_name,
bool make_black_boxes)
{ {
clear(); clear();
Stats stats(debug_, report_); Stats stats(debug_, report_);
bool status = network_->linkNetwork(top_cell_name, bool status = network_->linkNetwork(top_cell_name,
link_make_black_boxes_, make_black_boxes,
report_); report_);
stats.report("Link"); stats.report("Link");
return status; return status;
} }
bool
Sta::linkMakeBlackBoxes() const
{
return link_make_black_boxes_;
}
void
Sta::setLinkMakeBlackBoxes(bool make)
{
link_make_black_boxes_ = make;
}
//////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////
void void

View File

@ -18,11 +18,13 @@
namespace eval sta { namespace eval sta {
define_cmd_args "link_design" {[top_cell_name]} define_cmd_args "link_design" {[-no_black_boxes]\
[top_cell_name]}
proc_redirect link_design { proc_redirect link_design {
variable current_design_name variable current_design_name
parse_key_args "link_design" args keys {} flags {-no_black_boxes}
check_argc_eq0or1 "link_design" $args check_argc_eq0or1 "link_design" $args
if { $args == "" } { if { $args == "" } {
set top_cell_name "" set top_cell_name ""
@ -37,7 +39,11 @@ proc_redirect link_design {
set top_cell_name $current_design_name set top_cell_name $current_design_name
} }
} }
link_design_cmd $top_cell_name set make_black_boxes 1
if { [info exists flags(-no_black_boxes)] } {
set make_black_boxes 0
}
link_design_cmd $top_cell_name $make_black_boxes
} }
# sta namespace end # sta namespace end

View File

@ -22,14 +22,6 @@ namespace eval sta {
# #
################################################################ ################################################################
trace variable ::link_make_black_boxes "rw" \
sta::trace_link_make_black_boxes
proc trace_link_make_black_boxes { name1 name2 op } {
trace_boolean_var $op ::link_make_black_boxes \
link_make_black_boxes set_link_make_black_boxes
}
# Default digits to print after decimal point for reporting commands. # Default digits to print after decimal point for reporting commands.
set ::sta_report_default_digits 2 set ::sta_report_default_digits 2