Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/ram/src/ram.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,28 @@ void RamGen::ramPdngen(const char* power_pin,
int hor_width,
int hor_pitch)
{
const odb::Rect& die = block_->getDieArea();
const double dbu_per_um = block_->getDb()->getDbuPerMicron();

if (die.dy() < hor_pitch) {
logger_->error(RAM,
31,
"Die height ({:.2f} um) is less than horizontal strap pitch "
"({:.2f} um). "
"Use a smaller -hor_layer pitch.",
die.dy() / dbu_per_um,
hor_pitch / dbu_per_um);
}
if (die.dx() < ver_pitch) {
logger_->error(
RAM,
32,
"Die width ({:.2f} um) is less than vertical strap pitch ({:.2f} um). "
"Use a smaller -ver_layer pitch.",
die.dx() / dbu_per_um,
ver_pitch / dbu_per_um);
}

// need parameters for power and ground nets
auto power_net = dbNet::create(block_, "VDD");
auto ground_net = dbNet::create(block_, "VSS");
Expand Down
Loading