fcs
 All Classes Namespaces Files Functions Variables
test.h
Go to the documentation of this file.
1 /*
2  * Copyright 2013-2021 Robert Newgard
3  *
4  * This file is part of fcs.
5  *
6  * fcs is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * fcs is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with fcs. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef _TEST_H_
21  #define _TEST_H_
22 
23  #include <tb.h>
24  #include <verilated_vcd_sc.h>
25 
26  namespace tb_32
27  {
28  class test : public tb
29  {
30  private:
31  sc_trace_file * tf;
32  VerilatedVcdSc * tfp;
33 
34  public:
35  SC_HAS_PROCESS(test);
36  test(sc_module_name nm);
37  ~test(void);
38 
39  void drive_elaboration(void);
40  void drive_execution(sc_time);
41  void setup_trace(void);
42  void cleanup(void);
43  };
44  }
45 #endif
Definition: tb.h:63
VerilatedVcdSc * tfp
Definition: test.h:32
void cleanup(void)
Definition: test.cxx:84
void drive_execution(sc_time)
Definition: test.cxx:54
~test(void)
Definition: test.cxx:48
test(sc_module_name nm)
Definition: test.cxx:24
void drive_elaboration(void)
Definition: test.cxx:67
Definition: test.h:28
void setup_trace(void)
Definition: test.cxx:75
sc_trace_file * tf
Definition: test.h:31