schInhConSet
schInhConSet(t_inhCon[ ?namet_name] [ ?defaultt_default] [ ?valuet_value] [ ?pinNamet_pinName] [ ?pinDirt_pinDir] [ ?pinPost_pinPos] ) => t / nil
Description
Manipulates inherited connections located using schInhConFind.
- override a connection by passing the name of a net to connect to.
- convert a connection to a local pin with no associated net expression.
- convert to an inherited pin (with potentially different connection parameters).
- change the connection name or default net.
Arguments
Value Returned
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
Return to top