Go to the documentation of this file.
34 #ifndef TTA_VHDL_NETLIST_WRITER_HH
35 #define TTA_VHDL_NETLIST_WRITER_HH
39 #include <boost/graph/graph_traits.hpp>
47 class BaseNetlistBlock;
57 virtual void write(
const std::string& dstDirectory);
61 unsigned int indentationLevel,
63 std::ostream& stream);
66 unsigned int indentationLevel,
68 std::ostream& stream);
71 typedef boost::graph_traits<Netlist>::vertex_descriptor
73 typedef boost::graph_traits<Netlist>::edge_descriptor
75 typedef boost::graph_traits<Netlist>::out_edge_iterator
84 std::ofstream& stream);
87 std::ofstream& stream)
const;
91 std::ofstream& stream,
98 std::ofstream& stream)
const;
101 std::ofstream& stream)
const;
108 unsigned int level,
const std::string&
indentation);
109 static bool isNumber(
const std::string& formula);
116 bool allowShort =
false);
static void writeGenericDeclaration(const BaseNetlistBlock &block, unsigned int indentationLevel, const std::string &indentation, std::ostream &stream)
void writeConnection(const BaseNetlistBlock &block, std::ofstream &stream, edge_descriptor edgeDescriptor, NetlistPort *srcPort, NetlistPort *dstPort) const
static std::string generateIndentation(unsigned int level, const std::string &indentation)
static TCEString parameterWidthValue(const NetlistPort &port)
boost::graph_traits< Netlist >::vertex_descriptor vertex_descriptor
virtual ~VHDLNetlistWriter()
static std::string directionString(Direction direction)
virtual void write(const std::string &dstDirectory)
void writeSignalAssignments(const BaseNetlistBlock &block, std::ofstream &stream) const
int groundWidth_
Width of the ground signal.
static bool isNumber(const std::string &formula)
std::string indentation(unsigned int level) const
static std::string portSignalType(const NetlistPort &port)
void writePortMappings(const BaseNetlistBlock &block, std::ofstream &stream) const
static std::string portSignalName(const NetlistPort &port)
boost::graph_traits< Netlist >::out_edge_iterator out_edge_iterator
std::string netlistParameterPkgName() const
static bool usesParameterWidth(const NetlistPort &port)
TCEString genericMapStringValue(const TCEString &generic) const
void writeBlock(const BaseNetlistBlock &block, const std::string &dstDirectory)
static void writePortDeclaration(const BaseNetlistBlock &block, unsigned int indentationLevel, const std::string &indentation, std::ostream &stream)
void writeComponentDeclarations(const BaseNetlistBlock &block, std::ofstream &stream) const
static TCEString signalRange(int high, int low, bool allowShort=false)
VHDLNetlistWriter(const BaseNetlistBlock &targetBlock)
static std::string signalAssignment(const NetlistPort &dst, const NetlistPort &src)
Direction
Direction of the port.
void writeNetlistParameterPackage(const std::string &dstDirectory) const
boost::graph_traits< Netlist >::edge_descriptor edge_descriptor
void writeSignalDeclarations(const BaseNetlistBlock &block, std::ofstream &stream)