Product Documentation
Virtuoso Schematic Editor SKILL Functions Reference
Product Version IC23.1, November 2023

schInhConSet

schInhConSet( 
t_inhCon
[ ?name t_name ] 
[ ?default t_default ]
[ ?value t_value ]
[ ?pinName t_pinName ]
[ ?pinDir t_pinDir ]
[ ?pinPos t_pinPos ]
)
=> t / nil

Description

Manipulates inherited connections located using schInhConFind.

You can use this function to:

Arguments

t_inhCon

The given inherited connection.

?name t_name

If not nil, re-parameterizes the connection using this new name. If nil, the connection retains its original name.

?default t_default

Re-parameterizes the connection with the specified default net name, or leaves it as is if nil.

?value t_value

Specifies the name of a local or global net to connect the connection to.

?pinName t_pinName

Specifies the name of a pin that is to be used to connect to the inherited connection. The pin is automatically created.

?pinDir t_pinDir

If pinName has been specified will give the required direction of the pin.

?pinPos t_pinPos

If pinName has been specified, this is the x:y location of the created pin.

Value Returned

t

Inheried connection successfully modified.

nil

Modification was unsuccessful.

Examples

These examples assume that inhCon is an entry in a list previously returned by schInhConFind. If we therefore have:
inhCon = ‘(nil name “POWER” default “pwr!” value “pwr” inst db:12345678)
; Override a connection by connecting to a local net.
; Creates netSet on inhCon->inst:
; name=inhCon->name, value=myPower.
schInhConSet(inhCon ?value myPower)
; Override by connecting to a global net.
; Creates netSet on inhCon->inst:
; name=inhCon->name, value=vdd!
schInhConSet(inhCon ?value vdd!)
; Convert to a schematic pin.
; Creates pin VDD in inhCon->insts cellview, and adds netSet to inst:
; name=inhCon->name, value=VDD
schInhConSet(inhCon ?pinName VDD ?pinPos 0:0)
; Change the name of a connection, but leave default net alone.
; Creates netSet on inhCon->inst:
; name=inhCon->name, value=[@VDD:%:pwr!]
schInhConSet(inhCon ?name VDD)
; Change default net, leave name alone.
; Creates netSet on inhCon->inst:
; name=inhCon->name, value=[@POWER:%:vdd!]
schInhConSet(inhCon ?default vdd!)
; Change both name and default value.
; Creates netSet on inhCon->inst:
; name=inhCon->name, value=[@VDD:%:vdd!]
schInhConSet(inhCon ?name VDD ?default vdd!)
; Propagate inherited connection via inherited pin.
; Creates pin VDD in inhCon->insts cellview, and adds netSet to inst:
schInhConSet(inhCon ?pinName VDD ?pinPos 0:0 ?name VDD ?default vdd!)
; Convert all inherited connections to pins.
procedure(pinPos() /* Generate a pin position. */ )
foreach(inhCon schInhConFind(hiGetCurrentWindow())
schInhConSet(inhCon ?pinName inhCon->name ?pinPos pinPos())
)
; ...etc...

Related Topics

schInhConFind


Return to top
 ⠀
X