热度 1| |||
#!/bin/csh if ($# != 2 && $# != 3) then echo "\e[1;31m *Error* -- Usage: ./lvl.csh design.gds refdesign.gds layermap[option] \e[0m" exit endif # Remove any files from a previous run rm -rf *rules.xor* # Get the top cell name from gds set C1=`calibredrv -a puts [layout peek $1 -topcells]` set C2=`calibredrv -a puts [layout peek $2 -topcells]` # Generate the XOR rule file using dbdiff if ($# == 2) then dbdiff -system GDS -design $1 $C1 -refdesign $2 $C2 -write_xor_rules rules.xor -turbo else dbdiff -system GDS -design $1 $C1 -refdesign $2 $C2 -write_xor_rules rules.xor -turbo -layermap $3 endif # Run XOR calibre -drc -hier -turbo -hyper rules.xor | tee rules.xor.log # Run RVE calibre -rve -drc rules.xor.asc &