Hurricane VLSI Database


Classes
DbU/Unit description

Fixed point numbers management. More...

Classes

class  Hurricane::DbU
 DataBase Unit managment (API). More...
 

Detailed Description

Fixed point numbers management.

Introduction

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.

Remarks
The DbU class contains only static methods, and is not meant to be instanciated. The working type is DbU::Unit.

The DbU class manage three king of length :

Precision

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 :

Resolution

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()

Grids per Lambda ratio

Set the ratio between grids and lambdas. This must be an even integer. Once sets, musn't be changed.

Related functions :

Grid

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.

Translators

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