19 #ifndef TORC_PHYSICAL_XDLIMPORTER_HPP
20 #define TORC_PHYSICAL_XDLIMPORTER_HPP
26 #include <boost/smart_ptr.hpp>
27 #include <boost/filesystem.hpp>
41 namespace physical {
class XdlImporterUnitTest; }
82 #define DEPRECATED __attribute__ ((deprecated))
92 DEPRECATED
bool import(
istream& in,
const string& name =
"stream input")
93 {
return (*
this)(in, name); }
106 DEPRECATED
bool import(
const string& input,
const string& name =
"string stream")
107 {
return (*
this)(input, name); }
112 bool operator()(
const string& input,
const string& name =
"string stream");
119 {
return (*
this)(filename); }
136 void error(
const string& m);
244 #endif // TORC_PHYSICAL_XDLIMPORTER_HPP
torc::physical::ENetType mNetType
Current net type.
ENetType
Enumeration of net power types.
void failure(void)
Signals a parsing failure by deasserting the success flag.
boost::weak_ptr< Circuit > CircuitWeakPtr
Weak pointer encapsulation of a Circuit.
string mDesignPackage
Package specified for the design.
friend class torc::physical::physical::XdlImporterUnitTest
The unit test class has access to our internals.
SiteName mInstanceSite
Current instance site name.
string mReferenceModule
Name of the referenced module.
InstanceSharedPtr mReferenceInstancePtr
Shared pointer to the referenced instance.
Encapsulation of a wire name.
EInstanceBonding
Enumeration of pad bonding types.
string mDesignXdlVersion
XDL version read in by the design.
boost::uint32_t mInstanceCount
Number of instances read for the design.
ModuleSharedPtr mReferenceModulePtr
Shared pointer to the referenced module.
string mDesignDevice
Device specified for the design.
string mPortName
Name of the port.
torc::physical::EInstanceBonding mInstanceBonding
Current instance bonding.
string mRoutethroughConfigSetting
Current routethrough config setting.
DesignSharedPtr getDesignPtr(void)
Returns a shared pointer for the design.
Encapsulation of a site name.
Encapsulation of a site pin name.
string mDesignSpeedGrade
Speed grade specified for the design.
string mInstanceName
Current instance name.
virtual void bind(torc::physical::Pip &, EPipType)
Bind the given pip to the database arc and wire usage if applicable.
string mPortPin
Current port pin name.
std::string string
Imported type name.
bool mTraceScanning
Enable debug output in the flex scanner.
bool mSuccess
Flag signaling parsing success.
PinName mPinName
Current pin name.
Encapsulation of a tile name.
TileName mPipTile
Current pip tile name.
ModuleSharedPtr mModulePtr
Shared pointer to the current module.
ConfigMap mConfigMap
Current config map.
TileName mInstanceTile
Current instance tile name.
XdlImporter(void)
Construct the parser importer context.
WireName mRoutethroughSource
Current routethrough source wire name.
boost::shared_ptr< class InstancePin > InstancePinSharedPtr
Shared pointer encapsulation of an InstancePin.
boost::uint32_t mConfigCount
Number of configurations read for the design.
string mReferenceInstance
Name of the referenced instance.
void error(const location &l, const string &m)
Error handling with associated line number.
InstanceReferenceSharedPtr mInstanceReferencePtr
Shared pointer to instance reference.
boost::shared_ptr< Module > ModuleSharedPtr
Shared pointer encapsulation of a Module.
EPipType
The pip type, either regular or routethrough.
class torc::XdlScanner * lexer
Pointer to the current lexer instance.
string mConfigName
Current config name.
boost::uint32_t mModuleCount
Number of modules read for the design.
Header for the Design class.
bool mTraceParsing
Enable debug output in the bison parser.
Encapsulation of an instance name.
std::istream istream
Imported type name.
CircuitWeakPtr mCircuitPtr
Weak pointer to the circuit.
boost::shared_ptr< Net > NetSharedPtr
Shared pointer encapsulation of a Net.
string mDesignPart
Device, package, and speed grade specified for the design.
TileTypeName mInstanceType
Current instance type.
string mRoutethroughInstance
Current routethrough Instance name.
string mStreamName
Name of file or input stream for error messages.
boost::filesystem::path path
virtual ~XdlImporter(void)
Virtual destructor.
DesignSharedPtr mDesignPtr
Shared pointer to the design.
boost::shared_ptr< Instance > InstanceSharedPtr
Shared pointer encapsulation of an Instance.
virtual void bind(torc::physical::InstancePinSharedPtr &)
Bind the given instance pin to its database Tilewire if applicable.
std::vector< PortTemp > PortTempVector
Vector.
boost::shared_ptr< Design > DesignSharedPtr
Shared pointer encapsulation of a Design.
PortTempVector mPortTempVector
Vector of ports not yet mapped to instances.
NetSharedPtr mNetPtr
Shared pointer to the current net.
string mModuleInstance
Name of instantiating instance for module reference.
Physical design programmable interconnect point.
string mNetName
Current net name.
WireName mPipSink
Current pip sink wire name.
string mReferenceInstantiation
Name under which the module was instantiated.
Configuration setting map.
InstanceName mPinInstance
Current pin instance name.
bool operator()(istream &in, const string &name="stream input")
Import XDL from an input stream.
WireName mPipSource
Current pip source wire name.
virtual void initializeDatabase(void)
Initialize the database if applicable.
Importer from XDL format into a physical design.
boost::uint32_t mNetCount
Number of nets read for the design.
torc::physical::EPipDirection mPipDirection
Current pip directionality.
string mModuleAnchor
Module anchor instance name.
string mModuleName
Name of the module.
EPipDirection
Enumeration of pip directionality.
string mDesignName
Name of the design.
Encapsulation of a tile type name.
string mRoutethroughConfigName
Current routethrough config name.
string mConfigValue
Current config value.
boost::shared_ptr< InstanceReference > InstanceReferenceSharedPtr
Shared pointer encapsulation of an InstanceReference.
EPinDirection
Enumeration of instance pin directionality.
torc::physical::EPinDirection mPinDirection
Current pin direction.
InstanceSharedPtr mInstancePtr
Shared pointer to the current instance.
string mConfigSetting
Current config setting.
string mRoutethroughConfigValue
Current routethrough config value.
string mPortInstance
Current port instance name.
WireName mRoutethroughSink
Current routethrough sink wire name.