Is there somene some documentation of the OpenDB API ? Sometime I can sort of figure it out just using auto-completion but ... sometime it's really not all that clear how it works.
tnt
10/11/2023, 4:11 PM
Ok, I figured it out for what I needed this time, but still some good reference would be useful for the future.
a
Austin Rovinski
10/12/2023, 3:49 PM
The OpenDB API is documented in db.h. This provides the C++ interface, but everything there is automatically converted to Tcl (and Python, I believe?) using SWIG.
So for example if you have the following in C++
Copy code
dbSite site;
cout << site.getHeight();
Would be equivalent to the following Tcl
Copy code
puts [$site getHeight]
after going through all the accessors to get the chip, block, tech, etc.
Austin Rovinski
10/12/2023, 3:51 PM
There is some intermittent effort to build a doxygen page for it, such as PR 4059
t
tnt
10/14/2023, 7:09 PM
Thanks for the pointer ! Usueful reference for the future for the API itself. But I was looking also for a higher layer description, like ... what's the difference between TechVia and BoxVia or what's a SWire and why is it different from a normal wire, that kind of high level description of the concepts involved.
tnt
10/14/2023, 7:12 PM
Mmm, I guess there is actually some of those concepts explained in the file, nice.
a
Austin Rovinski
10/14/2023, 8:17 PM
OpenDB follows the LEF/DEF conventions somewhat closely, so if you take a look at the LEF/DEF reference manual or even some OpenAccess docs, there may be better explanations
Linen is a search-engine friendly community platform. We offer integrations with existing Slack/Discord communities and make those conversations Google-searchable.