-
Notifications
You must be signed in to change notification settings - Fork 6
/
dut.cpp
31 lines (28 loc) · 896 Bytes
/
dut.cpp
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
/**
* @file dut.cpp
* @brief Dut-level interconnect implementation
*/
#include "dut.hpp"
#include "sc_time_literals.hpp"
#include "processing.hpp"
using namespace sc_core;
using namespace sc_core::literals;
//..............................................................................
Dut_module::Dut_module( sc_module_name instance ) //< Constructor
: sc_module( instance )
/**
* Instantiate
*/
, process ( std::make_unique<Processing_module> ( "process" ) )
, clock ( std::make_unique<sc_clock> ( "clock", 10_ns ) )
{
/**
* Connect
*/
process->input_port .bind( input_port );
process->output_port.bind( result_buffer );
process->clk_port .bind( *clock );
out_xport .bind( result_buffer );
}
//..............................................................................
Dut_module::~Dut_module( void ) = default;