To export GDS, you can go to File->Export->Stream... in the CIW.
In the new window that opens up, specify a stream file.
Select the technology library (NCSU_techlib_tsmc02d).
Select YOUR library, top level cell and "layout" as the view.
Click on "Options".
Click on the "Layers" tab.
Click on "Load File".
Load this file of layer information: /mada/software/techfiles/NCSU_CDK_1.5.1/pipo/streamInLayermap
Click on "Translate".
Turn in the GDS file. TELL ME WHAT THE TOP LEVEL CELL IS.
You can check that your file exported correctly by: 1) creating a new library, do a File->Import->Stream... 3) specifying the correct "top level" cell to translate.