OpenASIP
2.0
|
#include <VhdlProgramImageWriter.hh>
Public Member Functions | |
VhdlProgramImageWriter (const InstructionBitVector &bits, const std::string &entityName) | |
virtual | ~VhdlProgramImageWriter () |
virtual void | writeImage (std::ostream &stream) const |
Public Member Functions inherited from ArrayProgramImageWriter | |
ArrayProgramImageWriter (const InstructionBitVector &bits) | |
virtual | ~ArrayProgramImageWriter () |
Public Member Functions inherited from ArrayImageWriter | |
ArrayImageWriter (const BitVector &bits, int rowLength) | |
virtual | ~ArrayImageWriter () |
Public Member Functions inherited from AsciiImageWriter | |
AsciiImageWriter (const BitVector &bits, int rowLength) | |
virtual | ~AsciiImageWriter () |
Public Member Functions inherited from BitImageWriter | |
virtual | ~BitImageWriter () |
Private Member Functions | |
void | writeHeader (std::ostream &stream) const |
void | writeEnding (std::ostream &stream) const |
std::string | packageName () const |
Private Attributes | |
std::string | entityName_ |
Additional Inherited Members | |
Protected Member Functions inherited from AsciiImageWriter | |
const BitVector & | bits () const |
int | rowLength () const |
void | writeSequence (std::ostream &stream, int length, bool padEnd=false) const |
void | writeHexSequence (std::ostream &stream, int length, bool padEnd=false) const |
Writes the (instruction) bit image to a vhdl package.
Definition at line 43 of file VhdlProgramImageWriter.hh.
VhdlProgramImageWriter::VhdlProgramImageWriter | ( | const InstructionBitVector & | bits, |
const std::string & | entityName | ||
) |
The constructor.
bits | The bits to write. |
rowLength | Length of the rows to write. |
Definition at line 45 of file VhdlProgramImageWriter.cc.
|
virtual |
|
private |
Definition at line 97 of file VhdlProgramImageWriter.cc.
References entityName_.
Referenced by writeEnding(), and writeHeader().
|
private |
Writes the end declarations to the stream
Definition at line 91 of file VhdlProgramImageWriter.cc.
References packageName().
Referenced by writeImage().
|
private |
Writes the vhdl declaration stuff to the beginning of the stream
Definition at line 71 of file VhdlProgramImageWriter.cc.
References entityName_, and packageName().
Referenced by writeImage().
|
virtual |
Writes the bit image to the given stream.
stream | The stream to write. |
Reimplemented from ArrayProgramImageWriter.
Definition at line 62 of file VhdlProgramImageWriter.cc.
References writeEnding(), writeHeader(), and ArrayProgramImageWriter::writeImage().
|
private |
Definition at line 58 of file VhdlProgramImageWriter.hh.
Referenced by packageName(), and writeHeader().