OpenASIP
2.0
|
#include <ArrayProgramImageWriter.hh>
Public Member Functions | |
ArrayProgramImageWriter (const InstructionBitVector &bits) | |
virtual | ~ArrayProgramImageWriter () |
virtual void | writeImage (std::ostream &stream) const |
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 () |
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 |
A program image writer that writes the program as an array. It can be copied to a VHDL file to initialize an array, for example.
Definition at line 44 of file ArrayProgramImageWriter.hh.
ArrayProgramImageWriter::ArrayProgramImageWriter | ( | const InstructionBitVector & | bits | ) |
The constructor.
bits | The program image to write. |
Definition at line 42 of file ArrayProgramImageWriter.cc.
|
virtual |
|
virtual |
Writes the program image to the given output stream.
stream | The output stream. |
Reimplemented from ArrayImageWriter.
Reimplemented in VhdlProgramImageWriter.
Definition at line 60 of file ArrayProgramImageWriter.cc.
References assert, AsciiImageWriter::bits(), InstructionBitVector::instructionCount(), InstructionBitVector::instructionStartingPoint(), and AsciiImageWriter::writeSequence().
Referenced by VhdlProgramImageWriter::writeImage().