Duplicate subckt definition "abc" at line 226 in file "top.spi"

Version 1

    The Calibre Verification User's Manual describes a process Block-Level Chip Assembly Using Scoped SPICE Subcircuits which can cause a duplicate subckt defition warning if not done correctly:

     

    LVS Netlist Compiler - Errors and Warnings for "top.spi"
    --------------------------------------------------------
    Warning: Duplicate subckt definition "abc" at line 226 in file "top.spi"

     

    This can be remedied using a higher-level SUBCKT definition and is described in detail within the manual.

     

     

    However there is another scenario which can generate this message as well. It occurs when a cell and a device have the same name (ex. mydev).

     

    Both are called using the SPICE syntax:

      X0 1 2 3 4 mydev

     

    Unfortunately SPICE doesn't have a way to distinguish the mydev cell from the mydev device.  Instead, it assumes that they are all devices (they come first in the netlist).

    As a result, a similar message to the one above is written to the log file:

     

    LVS Netlist Compiler - Errors and Warnings for "svdb.push/layout.spi"

    --------------------------------------------------------

    Warning: Duplicate subckt definition "mydev" at line 255 in file "svdb/layout.spi"

     

    In the case of the cell and the device having the same name, the way to correct this is either to change the name of the device or the name of the cell.