Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create a pin from a net or instance terminal

1,836 views
Skip to first unread message

mu...@ross.com

unread,
Dec 12, 1997, 3:00:00 AM12/12/97
to

I was wondering if there exists any routine to add a pin in SKILL.
Basically to mimic what the bindkey "p" is supposed to do.

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.

-mu...@ross.com

-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet

Tony Laundrie

unread,
Dec 12, 1997, 3:00:00 AM12/12/97
to

p=dbCreateRect(c list("MET1" "pin") list(31:-74 39:-66))
n=dbMakeNet(c "PINNAME")
dbCreateTerm(n nil "input")
dbCreatePin(n p)

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


Tim Regan

unread,
Dec 17, 1997, 3:00:00 AM12/17/97
to mu...@ross.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

drMakePins.il

Keith Sabine

unread,
Dec 17, 1997, 3:00:00 AM12/17/97
to

Tim Regan wrote:

> 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.


0 new messages