OpenASIP
2.0
|
#include <CentralizedControlICGenerator.hh>
Public Member Functions | |
CentralizedControlICGenerator () | |
virtual | ~CentralizedControlICGenerator () |
ProGe::NetlistPort & | simmDataPort (const std::string &busName) const |
ProGe::NetlistPort & | simmCntrlPort (const std::string &busName) const |
ProGe::NetlistPort & | busCntrlPortOfSocket (const std::string &socketName) const |
ProGe::NetlistPort & | dataCntrlPortOfSocket (const std::string &socketName) const |
bool | hasGlockPort () const |
ProGe::NetlistPort & | glockPort () const |
virtual int | outputSocketCntrlPinForSegment (const TTAMachine::Socket &socket, const TTAMachine::Segment &segment) const =0 |
virtual int | outputSocketDataControlValue (const TTAMachine::Socket &socket, const TTAMachine::Port &port) const =0 |
virtual int | inputSocketControlValue (const TTAMachine::Socket &socket, const TTAMachine::Segment &segment) const =0 |
Protected Member Functions | |
void | mapSImmDataPort (const std::string &busName, ProGe::NetlistPort &port) |
void | mapSImmCntrlPort (const std::string &busName, ProGe::NetlistPort &port) |
void | mapBusCntrlPortOfSocket (const std::string &socketName, ProGe::NetlistPort &port) |
void | mapDataCntrlPortOfSocket (const std::string &socketName, ProGe::NetlistPort &port) |
void | setGlockPort (ProGe::NetlistPort &glockPort) |
Private Types | |
typedef std::map< std::string, ProGe::NetlistPort * > | NetlistPortMap |
Private Attributes | |
NetlistPortMap | simmDataPortMap_ |
Maps the short immediate data ports for buses. More... | |
NetlistPortMap | simmCntrlPortMap_ |
Maps the short immediate control ports for buses. More... | |
NetlistPortMap | socketDataPortMap_ |
Maps the data ports of sockets. More... | |
NetlistPortMap | busCntrlPortMap_ |
Maps the bus control ports of sockets. More... | |
NetlistPortMap | dataCntrlPortMap_ |
Maps the data control ports of sockets. More... | |
ProGe::NetlistPort * | glockPort_ |
(optional) Glock port More... | |
Definition at line 52 of file CentralizedControlICGenerator.hh.
|
private |
Definition at line 90 of file CentralizedControlICGenerator.hh.
CentralizedControlICGenerator::CentralizedControlICGenerator | ( | ) |
The constructor.
Definition at line 44 of file CentralizedControlICGenerator.cc.
|
virtual |
ProGe::NetlistPort & CentralizedControlICGenerator::busCntrlPortOfSocket | ( | const std::string & | socketName | ) | const |
Returns the bus control port of the given socket in the IC block.
socketName | Name of the socket. |
InstanceNotFound | If the port was not created. |
Definition at line 98 of file CentralizedControlICGenerator.cc.
References __func__, and busCntrlPortMap_.
Referenced by DefaultDecoderGenerator::completeDecoderBlock().
ProGe::NetlistPort & CentralizedControlICGenerator::dataCntrlPortOfSocket | ( | const std::string & | socketName | ) | const |
Returns the data control port of the given socket in the IC block.
socketName | Name of the socket. |
InstanceNotFound | If the port was not created. |
Definition at line 115 of file CentralizedControlICGenerator.cc.
References __func__, and dataCntrlPortMap_.
Referenced by DefaultDecoderGenerator::completeDecoderBlock().
ProGe::NetlistPort & CentralizedControlICGenerator::glockPort | ( | ) | const |
Returns reference to NetlistPort of glock.
InstanceNotFound | If IC does not have glock port. |
Definition at line 139 of file CentralizedControlICGenerator.cc.
References __func__, glockPort_, and hasGlockPort().
Referenced by DefaultDecoderGenerator::addGlockPortToDecoder(), and setGlockPort().
bool CentralizedControlICGenerator::hasGlockPort | ( | ) | const |
Returns true if IC has glock port.
Definition at line 128 of file CentralizedControlICGenerator.cc.
References glockPort_.
Referenced by DefaultDecoderGenerator::addGlockPortToDecoder(), glockPort(), and DefaultDecoderGenerator::glockPortWidth().
|
pure virtual |
Implemented in DefaultICGenerator.
Referenced by DefaultDecoderGenerator::writeControlRulesOfFUInputPort(), and DefaultDecoderGenerator::writeControlRulesOfRFWritePort().
|
protected |
Maps the given bus control port for the given socket.
socketName | Name of the socket. |
port | The netlist port. |
Definition at line 191 of file CentralizedControlICGenerator.cc.
References assert, busCntrlPortMap_, and MapTools::containsKey().
Referenced by DefaultICGenerator::addICToNetlist().
|
protected |
Maps the given data control port for the given socket.
socketName | Name of the socket. |
port | The netlist port. |
Definition at line 208 of file CentralizedControlICGenerator.cc.
References assert, MapTools::containsKey(), and dataCntrlPortMap_.
Referenced by DefaultICGenerator::addICToNetlist().
|
protected |
Maps the given netlist port as the short immediate control port of the given bus.
busName | The bus. |
port | The netlist port. |
Definition at line 174 of file CentralizedControlICGenerator.cc.
References assert, MapTools::containsKey(), and simmCntrlPortMap_.
Referenced by DefaultICGenerator::addICToNetlist().
|
protected |
Maps the given netlist port as the short immediate data port of the given bus.
busName | The bus. |
port | The netlist port. |
Definition at line 156 of file CentralizedControlICGenerator.cc.
References assert, MapTools::containsKey(), and simmDataPortMap_.
Referenced by DefaultICGenerator::addICToNetlist().
|
pure virtual |
Implemented in DefaultICGenerator.
Referenced by DefaultDecoderGenerator::busCntrlSignalPinOfSocket().
|
pure virtual |
Implemented in DefaultICGenerator.
Referenced by DefaultDecoderGenerator::writeControlRulesOfFUOutputPort(), and DefaultDecoderGenerator::writeControlRulesOfRFReadPort().
|
protected |
Sets optional glock port of IC.
glockPort | The glock port. |
Definition at line 224 of file CentralizedControlICGenerator.cc.
References assert, glockPort(), and glockPort_.
Referenced by DefaultICGenerator::addICToNetlist().
ProGe::NetlistPort & CentralizedControlICGenerator::simmCntrlPort | ( | const std::string & | busName | ) | const |
Returns the short immediate control port for the given bus.
busName | Name of the bus. |
InstanceNotFound | If the port was not created. |
Definition at line 81 of file CentralizedControlICGenerator.cc.
References __func__, and simmCntrlPortMap_.
ProGe::NetlistPort & CentralizedControlICGenerator::simmDataPort | ( | const std::string & | busName | ) | const |
Returns the short immediate data port for the given bus.
busName | Name of the bus. |
InstanceNotFound | If the port was not created. |
Definition at line 64 of file CentralizedControlICGenerator.cc.
References __func__, and simmDataPortMap_.
Referenced by DefaultDecoderGenerator::completeDecoderBlock().
|
private |
Maps the bus control ports of sockets.
Definition at line 99 of file CentralizedControlICGenerator.hh.
Referenced by busCntrlPortOfSocket(), and mapBusCntrlPortOfSocket().
|
private |
Maps the data control ports of sockets.
Definition at line 101 of file CentralizedControlICGenerator.hh.
Referenced by dataCntrlPortOfSocket(), and mapDataCntrlPortOfSocket().
|
private |
(optional) Glock port
Definition at line 103 of file CentralizedControlICGenerator.hh.
Referenced by glockPort(), hasGlockPort(), and setGlockPort().
|
private |
Maps the short immediate control ports for buses.
Definition at line 95 of file CentralizedControlICGenerator.hh.
Referenced by mapSImmCntrlPort(), and simmCntrlPort().
|
private |
Maps the short immediate data ports for buses.
Definition at line 93 of file CentralizedControlICGenerator.hh.
Referenced by mapSImmDataPort(), and simmDataPort().
|
private |
Maps the data ports of sockets.
Definition at line 97 of file CentralizedControlICGenerator.hh.