-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdut.hpp
More file actions
36 lines (32 loc) · 730 Bytes
/
dut.hpp
File metadata and controls
36 lines (32 loc) · 730 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* @file dut.hpp
*/
#ifndef DUT_HPP
#define DUT_HPP
#include "common.hpp"
#include <systemc>
#include <memory>
/**
* Forward declarations
*/
struct Processing_module;
struct Dut_module : sc_core::sc_module
{
/**
* Ports
*/
sc_core::sc_port<sc_core::sc_fifo_in_if<RawData_t>> input_port { "input_port" };
sc_core::sc_export<sc_core::sc_signal_in_if<FixedPt_t>> out_xport { "out_xport" };
/**
* Constructors
*/
Dut_module( sc_core::sc_module_name instance );
~Dut_module( void );
/**
* Components
*/
std::unique_ptr<Processing_module> process;
std::unique_ptr<sc_core::sc_clock> clock;
sc_core::sc_buffer<FixedPt_t> result_buffer { "result_buffer" };
};
#endif/*DUT_HPP*/