OpenCores
URL https://opencores.org/ocsvn/ecpu_alu/ecpu_alu/trunk

Subversion Repositories ecpu_alu

[/] [ecpu_alu/] [trunk/] [alu/] [systemc/] [obj_dir/] [Valu_tb.h] - Blame information for rev 5

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 5 leonous
// Verilated -*- SystemC -*-
2
#ifndef _Valu_tb_H_
3
#define _Valu_tb_H_
4
 
5
#include "systemc.h"
6
#include "verilated.h"
7
#include "Valu_tb__Inlines.h"
8
class Valu_tb__Syms;
9
class Valu_tb_alu_tb;
10
 
11
//----------
12
 
13
SC_MODULE(Valu_tb) {
14
  public:
15
    // CELLS
16
    Valu_tb_alu_tb*     v;
17
 
18
    // PORTS
19
    sc_in<bool> systemc_clk;
20
 
21
    // LOCAL SIGNALS
22
 
23
    // LOCAL VARIABLES
24
    VL_SIG8(__Vcellinp__v__systemc_clk,0,0);
25
    VL_SIG8(__VinpClk__TOP__v__clk,0,0);
26
    VL_SIG8(__VinpClk__TOP__v__alu_inst0__DOT__reset,0,0);
27
    VL_SIG8(__VinpClk__TOP__v__finished,0,0);
28
    VL_SIG8(__Vclklast__TOP____VinpClk__TOP__v__clk,0,0);
29
    VL_SIG8(__Vclklast__TOP____VinpClk__TOP__v__alu_inst0__DOT__reset,0,0);
30
    VL_SIG8(__Vclklast__TOP____VinpClk__TOP__v__finished,0,0);
31
    VL_SIG8(__Vchglast__TOP__v__clk,0,0);
32
    VL_SIG8(__Vchglast__TOP__v__finished,0,0);
33
    VL_SIG8(__Vchglast__TOP__v__alu_inst0__DOT__reset,0,0);
34
    VL_SIG8(__Vchglast__TOP__v__alu_inst0__DOT__datapath__DOT__adder_in_b,7,0);
35
    VL_SIG8(__Vchglast__TOP__v__alu_inst0__DOT__datapath__DOT__carry,0,0);
36
 
37
    // INTERNAL VARIABLES
38
    char        __VpadToAlign28[4];
39
    Valu_tb__Syms*      __VlSymsp;              // Symbol table
40
 
41
    // PARAMETERS
42
 
43
    // METHODS
44
  private:
45
    Valu_tb& operator= (const Valu_tb&);        ///< Copying not allowed
46
    Valu_tb(const Valu_tb&);    ///< Copying not allowed
47
  public:
48
    SC_CTOR(Valu_tb);
49
    virtual ~Valu_tb();
50
    void        __Vconfigure(Valu_tb__Syms* symsp, bool first);
51
 
52
    // Sensitivity blocks
53
    void        final();        ///< Function to call when simulation completed
54
  private:
55
    void        eval(); ///< Main function to call from calling app when inputs change
56
    static void _eval_initial_loop(Valu_tb__Syms* __restrict vlSymsp);
57
    static bool _change_request(Valu_tb__Syms* __restrict vlSymsp);
58
  public:
59
    static void _combo__TOP__2(Valu_tb__Syms* __restrict vlSymsp);
60
    static void _eval(Valu_tb__Syms* __restrict vlSymsp);
61
    static void _eval_initial(Valu_tb__Syms* __restrict vlSymsp);
62
    static void _eval_settle(Valu_tb__Syms* __restrict vlSymsp);
63
    static void _settle__TOP__1(Valu_tb__Syms* __restrict vlSymsp);
64
    static void _settle__TOP__3(Valu_tb__Syms* __restrict vlSymsp);
65
} VL_ATTR_ALIGNED(64);
66
 
67
#endif  /*guard*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.