makeComponents()
Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
parent
4f80bd6f8a
commit
21bbbcfee9
|
|
@ -1400,6 +1400,8 @@ protected:
|
||||||
CornerSeq makeCornerSeq(Corner *corner) const;
|
CornerSeq makeCornerSeq(Corner *corner) const;
|
||||||
void makeParasiticAnalysisPts();
|
void makeParasiticAnalysisPts();
|
||||||
void clkSkewPreamble();
|
void clkSkewPreamble();
|
||||||
|
void setCmdNamespace1(CmdNamespace namespc);
|
||||||
|
void setThreadCount1(int thread_count);
|
||||||
|
|
||||||
CmdNamespace cmd_namespace_;
|
CmdNamespace cmd_namespace_;
|
||||||
Instance *current_instance_;
|
Instance *current_instance_;
|
||||||
|
|
|
||||||
|
|
@ -297,13 +297,13 @@ Sta::makeComponents()
|
||||||
makeSdcNetwork();
|
makeSdcNetwork();
|
||||||
makeReportPath();
|
makeReportPath();
|
||||||
makePower();
|
makePower();
|
||||||
setCmdNamespace(CmdNamespace::sdc);
|
setCmdNamespace1(CmdNamespace::sdc);
|
||||||
|
setThreadCount1(defaultThreadCount());
|
||||||
updateComponentsState();
|
updateComponentsState();
|
||||||
|
|
||||||
makeObservers();
|
makeObservers();
|
||||||
// This must follow updateComponentsState.
|
// This must follow updateComponentsState.
|
||||||
makeParasiticAnalysisPts();
|
makeParasiticAnalysisPts();
|
||||||
setThreadCount(defaultThreadCount());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -322,20 +322,24 @@ Sta::defaultThreadCount() const
|
||||||
|
|
||||||
void
|
void
|
||||||
Sta::setThreadCount(int thread_count)
|
Sta::setThreadCount(int thread_count)
|
||||||
|
{
|
||||||
|
setThreadCount1(thread_count);
|
||||||
|
updateComponentsState();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Sta::setThreadCount1(int thread_count)
|
||||||
{
|
{
|
||||||
thread_count_ = thread_count;
|
thread_count_ = thread_count;
|
||||||
if (dispatch_queue_)
|
if (dispatch_queue_)
|
||||||
dispatch_queue_->setThreadCount(thread_count);
|
dispatch_queue_->setThreadCount(thread_count);
|
||||||
else if (thread_count > 1)
|
else if (thread_count > 1)
|
||||||
dispatch_queue_ = new DispatchQueue(thread_count);
|
dispatch_queue_ = new DispatchQueue(thread_count);
|
||||||
updateComponentsState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Sta::updateComponentsState()
|
Sta::updateComponentsState()
|
||||||
{
|
{
|
||||||
// These components do not use StaState:
|
|
||||||
// units_
|
|
||||||
network_->copyState(this);
|
network_->copyState(this);
|
||||||
cmd_network_->copyState(this);
|
cmd_network_->copyState(this);
|
||||||
sdc_network_->copyState(this);
|
sdc_network_->copyState(this);
|
||||||
|
|
@ -611,6 +615,13 @@ Sta::cmdNamespace()
|
||||||
|
|
||||||
void
|
void
|
||||||
Sta::setCmdNamespace(CmdNamespace namespc)
|
Sta::setCmdNamespace(CmdNamespace namespc)
|
||||||
|
{
|
||||||
|
setCmdNamespace1(namespc);
|
||||||
|
updateComponentsState();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Sta::setCmdNamespace1(CmdNamespace namespc)
|
||||||
{
|
{
|
||||||
cmd_namespace_ = namespc;
|
cmd_namespace_ = namespc;
|
||||||
switch (cmd_namespace_) {
|
switch (cmd_namespace_) {
|
||||||
|
|
@ -621,7 +632,6 @@ Sta::setCmdNamespace(CmdNamespace namespc)
|
||||||
cmd_network_ = sdc_network_;
|
cmd_network_ = sdc_network_;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
updateComponentsState();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Instance *
|
Instance *
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue