Skip to content

Commit 5c083fa

Browse files
committed
fixup! fixup! sdc_expand, opensta: start
1 parent 7d9f5fd commit 5c083fa

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

techlibs/common/opensta.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
// #include "kernel/register.h"
2-
// #include "kernel/celltypes.h"
31
#include "kernel/rtlil.h"
42
#include "kernel/log.h"
53

64
USING_YOSYS_NAMESPACE
75
PRIVATE_NAMESPACE_BEGIN
86

7+
#if !defined(YOSYS_DISABLE_SPAWN)
98
struct OpenstaPass : public Pass
109
{
1110
const char* default_sta_cmd = "sta";
@@ -36,7 +35,7 @@ struct OpenstaPass : public Pass
3635
void execute(std::vector<std::string> args, RTLIL::Design *design) override
3736
{
3837
string run_from, run_to;
39-
string opensta_exe;
38+
string opensta_exe = "sta";
4039
string sdc_filename, sdc_expanded_filename;
4140
string tempdir_name, script_filename;
4241
string verilog_filename, liberty_filename;
@@ -107,13 +106,13 @@ struct OpenstaPass : public Pass
107106
else
108107
log("sdc_expanded_filename: %s\n", sdc_expanded_filename.c_str());
109108

110-
// verilog_filename
111109
if (cleanup) {
112110
log("Removing temp directory.\n");
113111
remove_directory(tempdir_name);
114112
}
115113
log_pop();
116114
}
117115
} OpenstaPass;
116+
#endif
118117

119118
PRIVATE_NAMESPACE_END

techlibs/common/sdc_expand.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,14 @@ struct SdcexpandPass : public ScriptPass
137137
opensta_pass_call += " -nocleanup";
138138
run(opensta_pass_call.c_str());
139139

140-
if (!help_mode)
140+
if (!help_mode) {
141141
if (cleanup) {
142142
log("Removing temp directory.\n");
143143
remove_directory(tempdir_name);
144144
} else {
145145
log("Keeping temp directory %s\n", tempdir_name.c_str());
146146
}
147+
}
147148
run("design -load pre_expand");
148149
}
149150
} SdcexpandPass;

0 commit comments

Comments
 (0)