How to map multiple layout devices to one device in source

Version 1

    Use LVS MAP DEVICE.  See the example below for details.

    LVS MAP DEVICE MP(P0) MP(P) LAYOUT   //map subtype P0 to P in layout
    LVS MAP DEVICE MP(P1) MP(P) LAYOUT   //map subtype P1 to P in layout

     

     

    If the rule file has above mentioned mapping, the netlist comparison between src.net and lay.spi is clean.

     

    > cat src.net
    .subckt test
    M1 1 2 3 4 P
    M2 5 6 7 8 P
    M3 9 10 11 12 P
    .ends

     

    > cat lay.spi
    .subckt test
    M1 1 2 3 4 P0
    M2 5 6 7 8 P
    M3 9 10 11 12 P1
    .ends