Skip to content

Commit 526c5e9

Browse files
committed
opensta, sdc_expand: more scratchpad
1 parent 838732e commit 526c5e9

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

techlibs/common/opensta.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ struct OpenstaPass : public Pass
3939
string sdc_filename, sdc_expanded_filename;
4040
string tempdir_name, script_filename;
4141
string verilog_filename, liberty_filename;
42-
bool cleanup = true;
42+
bool cleanup = design->scratchpad_get_bool("opensta.cleanup", true);
4343

4444
log_header(design, "Executing OPENSTA pass.\n");
4545
log_push();

techlibs/common/sdc_expand.cc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,13 @@ struct SdcExpandPass : public ScriptPass
3232
}
3333

3434
string opensta_exe, sdc_filename, sdc_expanded_filename;
35-
bool cleanup = true;
35+
bool cleanup;
3636
void execute(std::vector<std::string> args, RTLIL::Design *design) override
3737
{
3838
log_header(design, "Executing SDC_EXPAND pass.\n");
3939
string run_from, run_to;
40-
opensta_exe = "sta";
40+
opensta_exe = "";
41+
cleanup = design->scratchpad_get_bool("sdc_expand.cleanup", true);
4142

4243
size_t argidx;
4344
for (argidx = 1; argidx < args.size(); argidx++)
@@ -121,8 +122,11 @@ struct SdcExpandPass : public ScriptPass
121122
std::string liberty_path = tempdir_name + "/yosys.lib";
122123
run("icell_liberty " + liberty_path);
123124

124-
std::string opensta_pass_call = "opensta -exe ";
125-
opensta_pass_call += help_mode ? "<exe>" : opensta_exe;
125+
std::string opensta_pass_call = "opensta ";
126+
if (opensta_exe.length()) {
127+
opensta_pass_call += "-exe ";
128+
opensta_pass_call += help_mode ? "<exe>" : opensta_exe;
129+
}
126130
opensta_pass_call += " -sdc-in ";
127131
opensta_pass_call += help_mode ? "<sdc-in>" : sdc_filename;
128132
opensta_pass_call += " -sdc-out ";

0 commit comments

Comments
 (0)