#!/bin/sh

# Remove any old data
/bin/rm -rf NCSU_TechLib_ami06 
/bin/rm -rf NCSU_Analog_Parts
/bin/rm -rf OSU_stdcells_ami05
/bin/rm -rf lib.defs
/bin/rm -rf cds.lib

# Convert the AMI06 technoloy library to OpenAccess
cdb2oa -lib NCSU_TechLib_ami06 -cdslibpath ./cdb

# Add the routing information from the LEF file
lefin -lib NCSU_TechLib_ami06 -lef ./lef/ami05.tech.lef

# Convert the remaining libraries to OpenAccess
cdb2oa -lib NCSU_Analog_Parts  -cdslibpath ./cdb
cdb2oa -lib OSU_stdcells_ami05 -cdslibpath ./cdb

# The cds.lib is no longer needed, lib.defs is used instead
/bin/rm -rf cds.lib
