I was motivated to do this because it gets a hassle in adding pins from
the MENU for top level blocks that may have 200-300 IO's. What I would
like to do is to select a bunch of instance terminals and add pins with
the same name as the instance terminal(ex: if all the pins on the LHS of
a symbol are inputs, I would like to create INPUT pins for all those
terminals).
I was playing with dbCreateInst, dbCreateTerm, without any success.
any help is appreciated.
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
If your pin shapes and nets already exist, you'd have to add code to
search for them instead. For large custom blocks, I only draw pin
rectangles and some text on top, then some Skill code turns those
into official pins with connectivity. The orientation of the text
determines input vs. output.
Tony Laundrie
a...@cray.com
You are pretty much there in how to create pins. You need to
create a net, use that to create a terminal and attach the net to a
figure using dbCreatePin.
Here's a Skill routine that will create an array of pins. You
will need to add an option to the form to determine the direction
of the pins as this defaults to "inputOutput". You could also
have the callback look at the schematic and generate its pins from
that.
I haven't tested this routine very much so let me know if it breaks.
Tim.
--------------------------------------------------------------------
Tim Regan ti...@desres.demon.co.uk
Design Resources.
http://www.desres.demon.co.uk
> You are pretty much there in how to create pins. You need to
> create a net, use that to create a terminal and attach the net to a
> figure using dbCreatePin.
>
Actually you don't need to create a terminal. Just create the net, and when you
come to create the pin a terminal will automatically be created if one does not
already exist for that net.
regards,
keith.