OpenASIP  2.0
HexImageWriter.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2018 Tampere University
3  and Alexander Kobler.
4 
5  This file is part of TTA-Based Codesign Environment (TCE).
6 
7  Permission is hereby granted, free of charge, to any person obtaining a
8  copy of this software and associated documentation files (the "Software"),
9  to deal in the Software without restriction, including without limitation
10  the rights to use, copy, modify, merge, publish, distribute, sublicense,
11  and/or sell copies of the Software, and to permit persons to whom the
12  Software is furnished to do so, subject to the following conditions:
13 
14  The above copyright notice and this permission notice shall be included in
15  all copies or substantial portions of the Software.
16 
17  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23  DEALINGS IN THE SOFTWARE.
24  */
25 /**
26  * @file HexImageWriter.hh
27  *
28  * Declaration of HexImageWriter class
29  *
30  * @author Alexander Kobler 2018
31  * @note rating: red
32  */
33 
34 
35 
36 #ifndef TTA_HEX_IMAGE_WRITER_HH
37 #define TTA_HEX_IMAGE_WRITER_HH
38 
39 
40 #include "AsciiImageWriter.hh"
41 
42 /**
43  * Writes the bit image in HEX format. It's used for both ASIC and FPGA memory
44  * models
45  */
47 public:
49  virtual ~HexImageWriter();
50 
51  virtual void writeImage(std::ostream& stream) const;
52 };
53 
54 #endif /* TTA_HEX_IMAGE_WRITER_HH */
AsciiImageWriter.hh
BitVector
Definition: BitVector.hh:44
AsciiImageWriter::rowLength
int rowLength() const
Definition: AsciiImageWriter.cc:112
HexImageWriter
Definition: HexImageWriter.hh:46
HexImageWriter::writeImage
virtual void writeImage(std::ostream &stream) const
Definition: HexImageWriter.cc:68
AsciiImageWriter::bits
const BitVector & bits() const
Definition: AsciiImageWriter.cc:101
AsciiImageWriter
Definition: AsciiImageWriter.hh:45
HexImageWriter::HexImageWriter
HexImageWriter(const BitVector &bits, int rowLength)
Definition: HexImageWriter.cc:51
HexImageWriter::~HexImageWriter
virtual ~HexImageWriter()
Definition: HexImageWriter.cc:58