* ./vlsisapd/src/openChams:
- Bug: DO NOT USES REFEENCES IN OBJECT ATTRIBUTES STRING: const std::string& _name; Cannot believe I've done that. Instead: std::string _name;
This commit is contained in:
parent
0a4297e84d
commit
47dc198d9f
|
@ -117,9 +117,9 @@ namespace OpenChams {
|
||||||
void check_lowercase ( std::string& str, std::vector<std::string>& compares, std::string message );
|
void check_lowercase ( std::string& str, std::vector<std::string>& compares, std::string message );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string& _name;
|
std::string _name;
|
||||||
std::string _absolutePath;
|
std::string _absolutePath;
|
||||||
const std::string& _techno;
|
std::string _techno;
|
||||||
Parameters _params;
|
Parameters _params;
|
||||||
Netlist* _netlist;
|
Netlist* _netlist;
|
||||||
Schematic* _schematic;
|
Schematic* _schematic;
|
||||||
|
|
|
@ -32,7 +32,7 @@ namespace OpenChams {
|
||||||
|
|
||||||
|
|
||||||
class Device : public Instance {
|
class Device : public Instance {
|
||||||
public:
|
public:
|
||||||
Device ( const std::string& name
|
Device ( const std::string& name
|
||||||
, const std::string& model
|
, const std::string& model
|
||||||
, unsigned order
|
, unsigned order
|
||||||
|
@ -47,8 +47,8 @@ namespace OpenChams {
|
||||||
inline const std::vector<Transistor*>& getTransistors ();
|
inline const std::vector<Transistor*>& getTransistors ();
|
||||||
Transistor* addTransistor (const std::string&);
|
Transistor* addTransistor (const std::string&);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string _mosType;
|
std::string _mosType;
|
||||||
bool _sourceBulkConnected;
|
bool _sourceBulkConnected;
|
||||||
std::vector<Transistor*> _trans;
|
std::vector<Transistor*> _trans;
|
||||||
};
|
};
|
||||||
|
|
|
@ -36,8 +36,8 @@ namespace OpenChams {
|
||||||
inline const std::string& getInstanceName () const;
|
inline const std::string& getInstanceName () const;
|
||||||
inline const std::string& getConnectorName() const;
|
inline const std::string& getConnectorName() const;
|
||||||
private:
|
private:
|
||||||
const std::string& _instanceName;
|
std::string _instanceName;
|
||||||
const std::string& _connectorName;
|
std::string _connectorName;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
@ -58,8 +58,8 @@ namespace OpenChams {
|
||||||
inline const std::vector<Wire*>& getWires ();
|
inline const std::vector<Wire*>& getWires ();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
const std::string& _name;
|
std::string _name;
|
||||||
const std::string& _typeName;
|
std::string _typeName;
|
||||||
bool _isExternal;
|
bool _isExternal;
|
||||||
Netlist* _netlist;
|
Netlist* _netlist;
|
||||||
std::vector<Net::Connection*> _connections; // <instanceName, connectorName>
|
std::vector<Net::Connection*> _connections; // <instanceName, connectorName>
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace OpenChams {
|
||||||
|
|
||||||
|
|
||||||
class Port {
|
class Port {
|
||||||
public:
|
public:
|
||||||
inline Port ( const std::string& type
|
inline Port ( const std::string& type
|
||||||
, unsigned idx
|
, unsigned idx
|
||||||
, double x
|
, double x
|
||||||
|
@ -35,7 +35,7 @@ namespace OpenChams {
|
||||||
inline double getX () const;
|
inline double getX () const;
|
||||||
inline double getY () const;
|
inline double getY () const;
|
||||||
inline const std::string& getOrientation() const;
|
inline const std::string& getOrientation() const;
|
||||||
private:
|
private:
|
||||||
std::string _type;
|
std::string _type;
|
||||||
unsigned _idx;
|
unsigned _idx;
|
||||||
double _x;
|
double _x;
|
||||||
|
|
|
@ -28,20 +28,20 @@ namespace OpenChams {
|
||||||
|
|
||||||
class Schematic {
|
class Schematic {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
class Infos {
|
class Infos {
|
||||||
public:
|
public:
|
||||||
Infos (double x, double y, const std::string& orient);
|
Infos (double x, double y, const std::string& orient);
|
||||||
inline double getX ();
|
inline double getX ();
|
||||||
inline double getY ();
|
inline double getY ();
|
||||||
inline const std::string& getOrientation();
|
inline const std::string& getOrientation();
|
||||||
private:
|
private:
|
||||||
double _x;
|
double _x;
|
||||||
double _y;
|
double _y;
|
||||||
std::string _orient;
|
std::string _orient;
|
||||||
};
|
};
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Schematic ( Circuit* );
|
Schematic ( Circuit* );
|
||||||
void addInstance ( const std::string& instanceName
|
void addInstance ( const std::string& instanceName
|
||||||
, double x
|
, double x
|
||||||
|
|
Loading…
Reference in New Issue