Hi all!
I have a question about termOreder when we are using ansCdlSubcktCall netlist procedure.
I have device ptap1.
There is auCdl section of this device:
cdfId->simInfo->auCdl = '( nil
netlistProcedure ansCdlSubcktCall
instParameters (r w l)
propMapping (nil r R)
namePrefix "X"
modelName "ptap1"
termOrder (TIE SUB)
componentName "resistor"
)
and I've created test schematic (see attached picture)
And when I export this schematic in cdl, we have following netlist:
.SUBCKT ptap1_a a1
*.PININFO a1:I
XR0 net02 a1 / ptap1 r=262.847 w=780.00n l=780.00n
MN0 net4 net6 net5 net02 sg13_lv_nmos m=1 w=150.00n l=130.00n ng=1
.ENDS
.SUBCKT ptap1 TIE SUB
.ENDS
The question is, that in auCdl section we have termOredet TIE, SUB (and auCdl view also) and I expected, that in my netlist I'll see XR0 a1 net02, but in real netlist I see: net02, a1.
If I will use ansCdlCompPrim netlist procedure - all works fine:
.SUBCKT ptap1_a a1
*.PININFO a1:I
RR0 a1 net02 $[ptap1]
MN0 net4 net6 net5 net02 sg13_lv_nmos m=1 w=150.00n l=130.00n ng=1
.ENDS
.SUBCKT ptap1 TIE SUB
.ENDS
Could you pls. tell me, how to resolve this issue?