mgCreateMatchGroupInModgen
mgCreateMatchGroupInModgen(d_modgenConId l_tpObjects t_twigMatchType[t_trunkMatchType] ) => t / nil
Description
Creates a matchGroup in the specified Modgen storage.
Arguments
Value Returned
Example
Creates a matchGroup for netA with the widenFirst twig match type in the specified Modgen, with the Modgen figGroup ID set to mgId and the Modgen constraint ID set to cid. Also creates a matchGroup for netB with the lengthenOnly twig match type and trunk match type matchLength.
cv = mgId->cellView
netA = dbFindNetByName(cv "net5")
netB = dbFindNetByName(cv "net7")
when(and(netA netB)
topoA = dbCreateTopology("TopologyA" netA)
topoB = dbCreateTopology("TopologyB" netB)
when(and(topoA topoB)
trunkAA = dbCreateTrunk("TrunkAA" topoA "horizontal"))
trunkAB = dbCreateTrunk("TrunkAB" topoA "horizontal"))
trunkBA = dbCreateTrunk("TrunkBA" topoB "horizontal"))
trunkBB = dbCreateTrunk("TrunkBB" topoB "horizontal"))
when(and(trunkAA trunkAB trunkBA trunkBB)
;; Set the layers, widths, anchors and orthogonal offsets of the
;; trunks as appropriate here.
mgCreateMatchGroupInModgen(cid list(trunkAA trunkAB) "widenFirst" "unknownType")
mgCreateMatchGroupInModgen(cid list(trunkBA trunkBB) "lengthenOnly" "matchLength")
mgAddTopologyToModgen(topoA cid)
mgAddTopologyToModgen(topoB cid)
mgAddTopologyToModgen(trunkAA cid)
mgAddTopologyToModgen(trunkAB cid)
mgAddTopologyToModgen(trunkBA cid)
mgAddTopologyToModgen(trunkBB cid)
) ; end-when
) ; end-when
) ; end-when
Return to top