Another port questions - when I read a spice file ...
# magic
m
Another port questions - when I read a spice file with magic, it creates ports that end up exported like this:
but if I later add another port, I currently use these commands
label VDD e metal1
port make 10
But then when I check the .mag file, the port is like this:
image.png
what are the commands I need to run to get a port like the one magic makes when it reads the spice file?
@Tim Edwards?
t
@Matt Venn: The "rendered text" labels have a complicated syntax, which is why I generally generate them from the
Edit->Text...
window in magic. But if you want the full command line syntax, it's
Copy code
label string [font [size [rotation [offsetx offsety [position [layer]]]]]
(see http://opencircuitdesign.com/magic/commandref/label.html) Example:
Copy code
labe VDD FreeSans 0.2um 0 0 0 e metal1
m
ooh edit->text didn't know about that
that's useful, to be able to make a port too
though if I want to set the port as an input or output I guess I have to do that with the tcl window?
t
Future enhancement request, I guess. The input/output status is a LEF property and is often annotated by reading LEF in for the existing layout. The only way to change it (I think) is with the
port
command. It would make a useful addition to the "Text..." window, though.
m
doesn't actually seem necessary though, looking at my other cells, they just have plain ports
so the text window is great for that
much easier than what I was doing before