Batch Mode LVS
From Vlsiwiki
You can run Calibre LVS in batch mode. To do this, you need to make a rule deck. A common one would be:
LAYOUT PATH "invx1.calibre.db" LAYOUT PRIMARY "invx1" LAYOUT SYSTEM GDSII SOURCE PATH "invx1.src.net" SOURCE PRIMARY "invx1" SOURCE SYSTEM SPICE MASK SVDB DIRECTORY "svdb" QUERY //LVS REPORT "invx1.lvs.report" LVS ABORT ON SOFTCHK NO LVS ABORT ON SUPPLY ERROR YES LVS SHOW SEED PROMOTIONS NO LVS SHOW SEED PROMOTIONS MAXIMUM 50 LVS ISOLATE SHORTS NO VIRTUAL CONNECT COLON NO VIRTUAL CONNECT REPORT NO LVS EXECUTE ERC YES ERC RESULTS DATABASE "invx1.erc.results" ERC SUMMARY REPORT "invx1.erc.summary" REPLACE HIER ERC MAXIMUM RESULTS 1000 ERC MAXIMUM VERTEX 4096 INCLUDE "/mada/software/techfiles/FreePDK45/ncsu_basekit/techfile/calibre/calibreLVS.rul"
Renaming the lvs report (commented out) causes a conflict with the included rule deck.
Your input file is "invx1.calibre.db" which is a gds2 file. It is extracted to a file called "invx1.sp". Your spice netlist (from a schematic or other tool) should be "invx1.src.net"
You can then run your analysis with:
calibre -spice invx1.sp -lvs -hier -nowait my.rul
Your final results will be placed in mask.lvs.report.