From a8dd84838b75ad4f719664944fa42dd7fd5e9ea9 Mon Sep 17 00:00:00 2001 From: gatecat Date: Tue, 23 Nov 2021 18:50:00 +0000 Subject: [PATCH] def: Fix export units for non-lambda processes Signed-off-by: gatecat --- crlcore/src/ccore/lefdef/DefExport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crlcore/src/ccore/lefdef/DefExport.cpp b/crlcore/src/ccore/lefdef/DefExport.cpp index 92d1c7c0..a17ae7c0 100644 --- a/crlcore/src/ccore/lefdef/DefExport.cpp +++ b/crlcore/src/ccore/lefdef/DefExport.cpp @@ -150,7 +150,7 @@ namespace { int DefDriver::getUnits () { return _units; } - int DefDriver::toDefUnits ( DbU::Unit u ) { return (int)round(DbU::getLambda(u)*getUnits()); } + int DefDriver::toDefUnits ( DbU::Unit u ) { return (int)round(DbU::getGrid(u)); } DbU::Unit DefDriver::getSliceHeight () { return _sliceHeight; } DbU::Unit DefDriver::getPitchWidth () { return _pitchWidth; }; inline Cell* DefDriver::getCell () { return _cell; }