Skip to content

Commit 45bd586

Browse files
committed
rewrite dbu_per_um and error output
Signed-off-by: Thinh Nguyen <nguyenthinh19011@gmail.com>
1 parent 760c719 commit 45bd586

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/ram/src/ram.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -466,8 +466,7 @@ void RamGen::ramPdngen(const char* power_pin,
466466
int hor_pitch)
467467
{
468468
const odb::Rect& die = block_->getDieArea();
469-
auto tech = block_->getDb()->getTech();
470-
const double dbu_per_um = tech->getDbUnitsPerMicron();
469+
const double dbu_per_um = block_->getDb()->getTech()->getDbUnitsPerMicron();
471470

472471
if (die.dy() < hor_pitch) {
473472
logger_->error(RAM,

0 commit comments

Comments
 (0)