Skip to content

Commit 01162dd

Browse files
authored
Merge pull request #8005 from The-OpenROAD-Project-staging/rmp-test-fix
rmp: in test/const_cell_removal.tcl, add -work_dir results
2 parents f020d5e + 29c805c commit 01162dd

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/rmp/src/Restructure.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,9 @@ void Restructure::getBlob(unsigned max_depth)
140140

141141
void Restructure::runABC()
142142
{
143-
input_blif_file_name_ = work_dir_name_ + std::string(block_->getConstName())
144-
+ "_crit_path.blif";
143+
const std::string prefix
144+
= work_dir_name_ + std::string(block_->getConstName());
145+
input_blif_file_name_ = prefix + "_crit_path.blif";
145146
std::vector<std::string> files_to_remove;
146147

147148
debugPrint(logger_,
@@ -183,15 +184,14 @@ void Restructure::runABC()
183184
for (size_t curr_mode_idx = 0; curr_mode_idx < modes.size();
184185
curr_mode_idx++) {
185186
output_blif_file_name_
186-
= work_dir_name_ + std::string(block_->getConstName())
187-
+ std::to_string(curr_mode_idx) + "_crit_path_out.blif";
187+
= prefix + std::to_string(curr_mode_idx) + "_crit_path_out.blif";
188188

189189
opt_mode_ = modes[curr_mode_idx];
190190

191191
const std::string abc_script_file
192-
= work_dir_name_ + std::to_string(curr_mode_idx) + "ord_abc_script.tcl";
192+
= prefix + std::to_string(curr_mode_idx) + "ord_abc_script.tcl";
193193
if (logfile_ == "") {
194-
logfile_ = work_dir_name_ + "abc.log";
194+
logfile_ = prefix + "abc.log";
195195
}
196196

197197
debugPrint(logger_,
@@ -226,8 +226,7 @@ void Restructure::runABC()
226226
}
227227

228228
output_blif_file_name_
229-
= work_dir_name_ + std::string(block_->getConstName())
230-
+ std::to_string(curr_mode_idx) + "_crit_path_out.blif";
229+
= prefix + std::to_string(curr_mode_idx) + "_crit_path_out.blif";
231230
const std::string abc_log_name = logfile_ + std::to_string(curr_mode_idx);
232231

233232
int level_gain = 0;

src/rmp/test/const_cell_removal.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ set tiehi "LOGIC1_X1/Z"
1010
set tielo "LOGIC0_X1/Z"
1111

1212
restructure -liberty_file Nangate45/Nangate45_typ.lib -target area \
13-
-abc_logfile results/abc_rcon.log -tielo_port $tielo -tiehi_port $tiehi
13+
-abc_logfile results/abc_rcon.log -tielo_port $tielo -tiehi_port $tiehi \
14+
-work_dir results
1415

1516
report_design_area

0 commit comments

Comments
 (0)