<@U016EM8L91B> what's the status on the `def write...
# magic
m
@User what's the status on the
def write
command? I made a few tests and didn't seem to export
port
info (class, use), and it also seemed to missed some nets, but maybe I'm missing something
t
It will not export
port
info unless you declare it, since magic doesn't know the class, use, and shape automatically. Use the
port
command to declare these for each port.
m
from what I could test, either by creating a simple layout in magic and defining a couple of ports with
class
and`use` or by doing a
def read
from an openlane generated .def and then doing
def write
I always get a .def file with the PINS section empty. Probably I'm missing something, but I couldn't do it.
t
@User: Sorry, this is one of those things that I wrote down in the code as "to be completed" and never got around to doing it in spite of the fact that it is easy enough to code. I just coded it up and the update should get pushed today, after I test some other code changes.
@User: I just pushed the update to magic on opencircuitdesign.com; "def write" will now write the PINS section.
m
great!
the other thing I noticed is that it does some weird things with the shape of the nets. I get a lot of
Net has width XXX, default width is XX
messages I guess it uses the layers default orientation and width and modifies the exported net taking that into account. I don't know if that is something you can override with some setting or not (I haven't updated to the last commit yet)
t
@User: Yes, I noticed that, too; could be that it just needs to read a technology LEF file first, but I'll debug that when I can get around to it.