Skip to content

Commit

Permalink
genclk
Browse files Browse the repository at this point in the history
Signed-off-by: James Cherry <[email protected]>
  • Loading branch information
jjcherry56 committed Nov 17, 2022
1 parent 48d6e00 commit 9bdd01f
Show file tree
Hide file tree
Showing 16 changed files with 212 additions and 542 deletions.
Binary file modified doc/OpenSTA.odt
Binary file not shown.
Binary file modified doc/OpenSTA.pdf
Binary file not shown.
6 changes: 0 additions & 6 deletions include/sta/Clock.hh
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,6 @@ public:
Clock *masterClk() const { return master_clk_; }
bool masterClkInfered() const { return master_clk_infered_; }
void setInferedMasterClk(Clock *master_clk);
Pin *pllOut() const { return pll_out_; }
Pin *pllFdbk() const { return pll_fdbk_; }
int divideBy() const { return divide_by_; }
int multiplyBy() const { return multiply_by_; }
float dutyCycle() const { return duty_cycle_; }
Expand Down Expand Up @@ -138,8 +136,6 @@ protected:
bool add_to_pins,
Pin *src_pin,
Clock *master_clk,
Pin *pll_out,
Pin *pll_fdbk,
int divide_by,
int multiply_by,
float duty_cycle,
Expand All @@ -165,8 +161,6 @@ protected:
bool add_to_pins_;
// Hierarchical pins in pins_ become driver pins through the pin.
PinSet leaf_pins_;
Pin *pll_out_;
Pin *pll_fdbk_;
float period_;
FloatSeq *waveform_;
bool waveform_valid_;
Expand Down
2 changes: 0 additions & 2 deletions include/sta/Sdc.hh
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,6 @@ public:
bool add_to_pins,
Pin *src_pin,
Clock *master_clk,
Pin *pll_out,
Pin *pll_fdbk,
int divide_by,
int multiply_by,
float duty_cycle,
Expand Down
2 changes: 0 additions & 2 deletions include/sta/Sta.hh
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,6 @@ public:
bool add_to_pins,
Pin *src_pin,
Clock *master_clk,
Pin *pll_out,
Pin *pll_fdbk,
int divide_by,
int multiply_by,
float duty_cycle,
Expand Down
319 changes: 157 additions & 162 deletions messages.txt

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions sdc/Clock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ Clock::Clock(const char *name,
int index) :
name_(stringCopy(name)),
add_to_pins_(false),
pll_out_(nullptr),
pll_fdbk_(nullptr),
period_(0.0),
waveform_(nullptr),
waveform_valid_(false),
Expand Down Expand Up @@ -312,8 +310,6 @@ Clock::initGeneratedClk(PinSet *pins,
bool add_to_pins,
Pin *src_pin,
Clock *master_clk,
Pin *pll_out,
Pin *pll_fdbk,
int divide_by,
int multiply_by,
float duty_cycle,
Expand All @@ -332,8 +328,6 @@ Clock::initGeneratedClk(PinSet *pins,
master_clk_ = master_clk;
master_clk_infered_ = false;
waveform_valid_ = false;
pll_out_= pll_out;
pll_fdbk_ = pll_fdbk;
divide_by_ = divide_by;
multiply_by_ = multiply_by;
duty_cycle_ = duty_cycle;
Expand Down
3 changes: 0 additions & 3 deletions sdc/Sdc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -993,8 +993,6 @@ Sdc::makeGeneratedClock(const char *name,
bool add_to_pins,
Pin *src_pin,
Clock *master_clk,
Pin *pll_out,
Pin *pll_fdbk,
int divide_by,
int multiply_by,
float duty_cycle,
Expand All @@ -1015,7 +1013,6 @@ Sdc::makeGeneratedClock(const char *name,
clock_name_map_[clk->name()] = clk;
}
clk->initGeneratedClk(pins, add_to_pins, src_pin, master_clk,
pll_out, pll_fdbk,
divide_by, multiply_by, duty_cycle,
invert, combinational,
edges, edge_shifts, propagate_all_clks_,
Expand Down
10 changes: 0 additions & 10 deletions sdc/WriteSdc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -433,16 +433,6 @@ WriteSdc::writeGeneratedClock(Clock *clk) const
gzprintf(stream_, " -master_clock ");
writeGetClock(master);
}
Pin *pll_out = clk->pllOut();
if (pll_out) {
gzprintf(stream_, " -pll_out ");
writeGetPin(pll_out, true);
}
Pin *pll_fdbk = clk->pllFdbk();
if (pll_fdbk) {
gzprintf(stream_, " -pll_feedback ");
writeGetPin(pll_fdbk, false);
}
if (clk->combinational())
gzprintf(stream_, " -combinational");
int divide_by = clk->divideBy();
Expand Down
Loading

0 comments on commit 9bdd01f

Please sign in to comment.