diff --git a/vlsisapd/cif/CifCircuit.cpp b/vlsisapd/cif/CifCircuit.cpp index a7cd9aae..e5da9268 100644 --- a/vlsisapd/cif/CifCircuit.cpp +++ b/vlsisapd/cif/CifCircuit.cpp @@ -8,7 +8,7 @@ using namespace std; namespace IO { -CifCircuit::CifCircuit(string name) : _name(name) {} +CifCircuit::CifCircuit(string name, string unit, double scale) : _name(name), _unit(unit), _scale(scale) {} bool CifCircuit::addPolygon(CifPolygon* polygon) { @@ -33,6 +33,7 @@ bool CifCircuit::write(string filename) { file.open(filename.c_str(), ios::out); // Header file << "(CIF file written on " << date << " by IO_CIF_DRIVER);" << endl + << "(Units: " << _unit << " - UU/DB Scale: " << _scale << ");" << endl << "DS 1 1 1;" << endl << "9 " << _name << ";" << endl; diff --git a/vlsisapd/cif/CifCircuit.h b/vlsisapd/cif/CifCircuit.h index 32d09699..011d53ac 100644 --- a/vlsisapd/cif/CifCircuit.h +++ b/vlsisapd/cif/CifCircuit.h @@ -7,13 +7,15 @@ namespace IO { class CifPolygon; class CifCircuit { public: - CifCircuit(string); + CifCircuit(string name, string unit, double scale); bool addPolygon ( CifPolygon* ); bool write ( string ); private: string _name; + string _unit; + double _scale; std::vector _polygons; };