Go to the documentation of this file.
34 #ifndef TTA_VERILOG_NETLIST_WRITER_HH
35 #define TTA_VERILOG_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)
const;
94 std::ofstream& stream)
const;
111 unsigned int level,
const std::string&
indentation);
112 static bool isNumber(
const std::string& formula);
void writeComponentDeclarations(const BaseNetlistBlock &block, std::ofstream &stream) const
boost::graph_traits< Netlist >::out_edge_iterator out_edge_iterator
static std::string generateIndentation(unsigned int level, const std::string &indentation)
static std::string directionString(Direction direction)
void writeSignalDeclarations(const BaseNetlistBlock &block, std::ofstream &stream)
VerilogNetlistWriter(const BaseNetlistBlock &targetBlock)
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 writePortMappings(const BaseNetlistBlock &block, std::ofstream &stream) const
virtual void write(const std::string &dstDirectory)
void writeNetlistParameterPackage(const std::string &dstDirectory) const
boost::graph_traits< Netlist >::vertex_descriptor vertex_descriptor
boost::graph_traits< Netlist >::edge_descriptor edge_descriptor
std::string netlistParameterPkgName() const
int groundWidth_
Width of the ground signal.
static std::string portSignalType(const NetlistPort &port)
virtual ~VerilogNetlistWriter()
static bool isNumber(const std::string &formula)
static std::string portSignalName(const NetlistPort &port)
void writeSignalAssignments(const BaseNetlistBlock &block, std::ofstream &stream) const
TCEString genericMapStringValue(const TCEString &generic) const
std::string indentation(unsigned int level) const
Direction
Direction of the port.
static void writeGenericDeclaration(const BaseNetlistBlock &block, unsigned int indentationLevel, const std::string &indentation, std::ostream &stream)