Skip to content

Commit be9147b

Browse files
committed
ram: fix clang-tidy warning on fmt::format
Signed-off-by: Thinh Nguyen <nguyenthinh19011@gmail.com>
1 parent e30eb3c commit be9147b

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

src/ram/src/ram.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
#include "pdn/PdnGen.hh"
2828
#include "ppl/IOPlacer.h"
2929
#include "ram/layout.h"
30-
#include "spdlog/fmt/fmt.h"
3130
#include "sta/ConcreteLibrary.hh"
3231
#include "sta/FuncExpr.hh"
3332
#include "sta/Liberty.hh"
@@ -1126,6 +1125,15 @@ void RamGen::generate(const int mask_size,
11261125
latch_cell_ = nullptr;
11271126
findMasters();
11281127

1128+
// using -use_latch will override specified storage cell to avoid collision in
1129+
// what storage cells are used
1130+
if (use_latch_ && storage_cell_) {
1131+
logger_->warn(RAM,
1132+
37,
1133+
"-storage_cell is ignored when -use_latch is enabled. Latch "
1134+
"cells will be auto selected from the library instead.");
1135+
}
1136+
11291137
auto chip = db_->getChip();
11301138
if (!chip) {
11311139
chip = odb::dbChip::create(
@@ -1497,7 +1505,8 @@ void RamGen::generate(const int mask_size,
14971505
auto nl_cell = std::make_unique<Cell>();
14981506
makeInst(
14991507
nl_cell.get(),
1500-
fmt::format("neg_lat_b{}", global_bit),
1508+
fmt::format("neg_lat_b{}",
1509+
global_bit), // NOLINT(misc-include-cleaner)
15011510
"nlat",
15021511
latch_cell_,
15031512
{{latch_ports_[{PortRoleType::Clock, 0}], clk_b_net},

0 commit comments

Comments
 (0)