|
Download OpenROAD/src/odb/doc/OpenDB-AddFieldsInDbObjects.md from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 2.52 kB
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/OpenROAD/src/odb/doc/OpenDB-AddFieldsInDbObjects.md
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/OpenROAD/src/odb/doc/OpenDB-AddFieldsInDbObjects.md
-
curl -L -o OpenDB-AddFieldsInDbObjects.md https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/OpenROAD/src/odb/doc/OpenDB-AddFieldsInDbObjects.md
2.52 kB
Manually adding new fields in DB Object
For example add_pitchDiag in object DbTechLayer.
*Modifications in these steps need to be done inside user regions, delimited like the below, to avoid being rewritten by the code generator
// User Code Begin <something>
...
// User Code End <something>
| Action | File | Source Code | |
|---|---|---|---|
| 1 | Add Fields at the .h file | dbTechLayer.h |
In the class _dbTechLayer:int _pitchDiag; |
| 2 | Increase the current rev number by one | dbDatabase.h |
|
| 3 | Define a keyword for the new db rev number | dbDatabase.h |
|
| 4* | Stream in new fields Conditionally upon Schema number | dbTechLayer.cpp |
In the method dbIStream& operator>>:
|
| 5* | Stream out new fields Conditionally upon Schema number | dbTechLayer.cpp |
In the method dbOStream& operator<<:
|
| 6* | Diff new fields | dbTechLayer.cpp |
In the method void _dbTechLayer::differences:
|
| 7* | Diff Out new fields | dbTechLayer.cpp |
In the method void _dbTechLayer::out:
|
| 8* | Created access APIs to the fields | dbTechLayer.cpp |
|
| 9* | Add new APIs | include/db.h |
In the class dbTechLayer
|