Skip to content

Commit 2fbfccb

Browse files
committed
dft: implementing scan_opt placeholder command
This will allo us to add this to current openroad flows so we don't have to update them later Signed-off-by: Felipe Garay <fgaray@google.com>
1 parent e9e1268 commit 2fbfccb

4 files changed

Lines changed: 24 additions & 0 deletions

File tree

src/dft/include/dft/Dft.hh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ class Dft
8686
// Prints to stdout
8787
void reportDftConfig() const;
8888

89+
// Performs scan optimizations on the netlist
90+
void scanOpt();
91+
8992
private:
9093
// If we need to run pre_dft to create the internal state
9194
bool need_to_run_pre_dft_;

src/dft/src/Dft.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,4 +177,8 @@ std::vector<std::unique_ptr<ScanChain>> Dft::scanArchitect()
177177
return scan_architect->getScanChains();
178178
}
179179

180+
void Dft::scanOpt() {
181+
logger_->warn(utl::DFT, 14, "Scan Opt is not currently implemented");
182+
}
183+
180184
} // namespace dft

src/dft/src/dft.i

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,9 @@ void report_dft_config() {
119119
getDft()->reportDftConfig();
120120
}
121121

122+
void scan_opt()
123+
{
124+
getDft()->scanOpt();
125+
}
126+
122127
%} // inline

src/dft/src/dft.tcl

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,15 @@ proc report_dft_config { args } {
9696
sta::parse_key_args "report_dft_config" args keys {} flags {}
9797
dft::report_dft_config
9898
}
99+
100+
101+
sta::define_cmd_args "scan_opt" { }
102+
proc scan_opt { args } {
103+
sta::parse_key_args "scan_opt" args \
104+
keys {} flags {}
105+
106+
if { [ord::get_db_block] == "NULL" } {
107+
utl::error DFT 13 "No design block found."
108+
}
109+
dft::scan_opt
110+
}

0 commit comments

Comments
 (0)