File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1- // #include "kernel/register.h"
2- // #include "kernel/celltypes.h"
31#include " kernel/rtlil.h"
42#include " kernel/log.h"
53
64USING_YOSYS_NAMESPACE
75PRIVATE_NAMESPACE_BEGIN
86
7+ #if !defined(YOSYS_DISABLE_SPAWN)
98struct 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
119118PRIVATE_NAMESPACE_END
Original file line number Diff line number Diff 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;
You can’t perform that action at this time.
0 commit comments