OpenASIP
2.0
|
#include <NetlistTools.hh>
Static Public Member Functions | |
static std::pair< const BaseNetlistBlock *, size_t > | commonParent (const BaseNetlistBlock &b1, const BaseNetlistBlock &b2) |
static void | addPrefixToPortNames (NetlistPortGroup &portGroup, const std::string &prefix) |
static void | addPrefixToPortName (NetlistPort &port, const std::string &prefix) |
static size_t | renamePorts (NetlistPortGroup &portGroup, std::map< SignalType, const std::string > &&renameRules) |
static std::string | getUniqueInstanceName (const BaseNetlistBlock &within, const std::string &basename) |
static const BaseNetlistBlock * | parent (const BaseNetlistBlock &block) |
static const BaseNetlistBlock * | parent (const BaseNetlistBlock *block) |
static Direction | mirror (Direction direction) |
static NetlistPort * | mirror (NetlistPort *port) |
Definition at line 52 of file NetlistTools.hh.
|
static |
Renames port by adding prefix into it.
Definition at line 117 of file NetlistTools.cc.
References ProGe::NetlistPort::name(), and ProGe::NetlistPort::rename().
Referenced by addPrefixToPortNames().
|
static |
Renames ports by adding prefix into them.
Definition at line 106 of file NetlistTools.cc.
References addPrefixToPortName().
|
static |
Finds common parent block of given netlist blocks and maximum distance to the common parent.
Distance is calculated how many times parent block pointer is needed to followed to get to the common parent block.
Definition at line 59 of file NetlistTools.cc.
References parent().
|
static |
Returns a string that is unique within the given netlist block.
That is, the string as instance name does not clash with any of the immediate sub block of the given netlist block.
within | The netlist block. |
basename | The string used as base for the instance name. |
Definition at line 155 of file NetlistTools.cc.
References ProGe::BaseNetlistBlock::hasSubBlock(), Conversion::toInt(), and Conversion::toString().
Referenced by ProGe::BaseNetlistBlock::addSubBlock().
Returns given direction mirrored.
Definition at line 202 of file NetlistTools.cc.
References assert, ProGe::BIDIR, ProGe::IN, and ProGe::OUT.
Referenced by ProGe::PortFactory::createPort(), mirror(), and ProGe::NetlistPort::NetlistPort().
|
static |
Mirrors ports direction.
Definition at line 223 of file NetlistTools.cc.
References ProGe::NetlistPort::direction(), mirror(), and ProGe::NetlistPort::setDirection().
|
static |
Returns parent of the given block or NULL if the block does not have one.
Definition at line 182 of file NetlistTools.cc.
Referenced by commonParent().
|
static |
Returns parent of the given block or NULL if the block does not have one.
Definition at line 190 of file NetlistTools.cc.
References ProGe::BaseNetlistBlock::hasParentBlock(), and ProGe::BaseNetlistBlock::parentBlock().
|
static |
Renames ports in netlist port group by given rules.
returns number of ports left renamed.
Definition at line 128 of file NetlistTools.cc.