OpenASIP  2.0
HDBTester.hh
Go to the documentation of this file.
1 /*
2  Copyright (c) 2002-2010 Tampere University.
3 
4  This file is part of TTA-Based Codesign Environment (TCE).
5 
6  Permission is hereby granted, free of charge, to any person obtaining a
7  copy of this software and associated documentation files (the "Software"),
8  to deal in the Software without restriction, including without limitation
9  the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  and/or sell copies of the Software, and to permit persons to whom the
11  Software is furnished to do so, subject to the following conditions:
12 
13  The above copyright notice and this permission notice shall be included in
14  all copies or substantial portions of the Software.
15 
16  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22  DEALINGS IN THE SOFTWARE.
23  */
24 /**
25  * @file HDBTester.hh
26  *
27  * Declaration of HDBTester
28  *
29  * @author Otto Esko 2010 (otto.esko-no.spam-tut.fi)
30  * @note rating: red
31  */
32 #ifndef TTA_HDB_TESTER_HH
33 #define TTA_HDB_TESTER_HH
34 
35 #include <iostream>
36 #include <string>
37 #include "ImplementationTester.hh"
38 
39 class HDBTester {
40 public:
41  HDBTester();
42 
43  HDBTester(
44  std::ostream& infoStream,
45  std::ostream& errorStream,
46  VhdlSim simulator, bool verbose, bool leaveDirty);
47 
48  virtual ~HDBTester();
49 
50  bool testAllEntries(std::string hdbFile);
51 
52  bool testOneRF(std::string hdbFile, int entryId);
53 
54  bool testOneFU(std::string hdbFile, int entryId);
55 
56 private:
57 
58  ImplementationTester* initializeTester(std::string hdbFile);
59 
60  bool testFU(int id, ImplementationTester* tester);
61 
62  bool testRF(int id, ImplementationTester* tester);
63 
64  std::ostream* infoStream_;
65  std::ostream* errorStream_;
67  bool verbose_;
69 };
70 
71 #endif
HDBTester::sim_
VhdlSim sim_
Definition: HDBTester.hh:66
ImplementationTester
Definition: ImplementationTester.hh:52
HDBTester::errorStream_
std::ostream * errorStream_
Definition: HDBTester.hh:65
HDBTester::infoStream_
std::ostream * infoStream_
Definition: HDBTester.hh:64
HDBTester::~HDBTester
virtual ~HDBTester()
Definition: HDBTester.cc:55
VhdlSim
VhdlSim
Definition: ImplementationTester.hh:47
HDBTester
Definition: HDBTester.hh:39
HDBTester::testOneRF
bool testOneRF(std::string hdbFile, int entryId)
Definition: HDBTester.cc:92
HDBTester::testFU
bool testFU(int id, ImplementationTester *tester)
Definition: HDBTester.cc:145
HDBTester::verbose_
bool verbose_
Definition: HDBTester.hh:67
HDBTester::leaveDirty_
bool leaveDirty_
Definition: HDBTester.hh:68
HDBTester::testAllEntries
bool testAllEntries(std::string hdbFile)
Definition: HDBTester.cc:62
HDBTester::testOneFU
bool testOneFU(std::string hdbFile, int entryId)
Definition: HDBTester.cc:110
HDBTester::HDBTester
HDBTester()
Definition: HDBTester.cc:43
HDBTester::initializeTester
ImplementationTester * initializeTester(std::string hdbFile)
Definition: HDBTester.cc:128
HDBTester::testRF
bool testRF(int id, ImplementationTester *tester)
Definition: HDBTester.cc:179
ImplementationTester.hh