Fixed point numbers management. More...
Classes | |
class | Hurricane::DbU |
DataBase Unit managment (API). More... | |
Fixed point numbers management.
The DbU class provides the DbU::Unit type for modelling geometric length, that is abscissas, ordinates, widths, offsets and a set of functions to convert DbU::Unit to and from external coordinates.
The DbU class manage three king of length :
It is possible to choose (once for all) the precision with which unit values are stored.
This precision represents the maximal number of decimal digits allowed (it applies globally to all units). Therefore for a precision of 3, the unit will represent a value of 0.001 and the founder grid value 23.54 will be represented by a unit equal to 23540.
Related functions :
The resolution is associated to the precision. Indeed it represents the external value associated to the smallest unit, that is the value returned by getGrid(Unit::db(1)).
Related functions : DbU::getResolution()
Set the ratio between grids and lambdas. This must be an even integer. Once sets, musn't be changed.
Related functions :
Thoses function are closely related to editors. They allow to restrict to positions on a grid. We support three kind of grid, real, symbolic and user defined.
Translate a DbU::Unit into grid or lambda length :
Translate a lambda length into a DbU::Unit :
Generated by doxygen 1.9.1 on Thu Aug 11 2022 | Return to top of page |
Hurricane VLSI Database | Copyright © 2000-2020 Bull S.A. All rights reserved |