I have a problem. I have a 2 GDS files.
File1 has topcell1 and NAND cell. topcell1 has hierachy of 6 NAND cells. topcell1 and NAND cell have texts for ports and nets.
File 2 has only topcell2. topcell2 has texts too.
If i use -hier i can get gds file that has texts. But I don't use -hier because i need flat GDS. In this case i can't get texts. Here is my rule.
DRC RESULTS DATABASE out.gds GDSII
DRC MAP TEXT YES
m1_m1_not { metal1_of_file1 NOT metal1_of_file2}
m2_m2_not { metal2 of_file1 NOT metal2_of_file2 }
DRC CHECK MAP m1_m1_not 11 MAXIMUM RESULTS ALL
DRC CHECK MAP m2_m2_not 13 MAXIMUM RESULTS ALL
This -hier is just to process the design hierarchy when running DRC. If you are getting text data with -hier then you can flatten the "out.gds" latter. like "FLATTEN CELL "*"" This would flatten the out.gds. Just give a try.