aboutsummaryrefslogtreecommitdiff
path: root/src/tb/splitter_tb.h
blob: 68d2a8d1d3e5653b28c098fefed20ff4e7b1f60c (plain)
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
#pragma once

#include <optical_signal.h>
#include <splitter.h>
#include <systemc.h>
#include <probe.h>
#include <specs.h>

SC_MODULE(Splitter_tb)
{
public:
    spx::oa_port_out_type IN;
    spx::oa_port_in_type OUT1;
    spx::oa_port_in_type OUT2;

    void run_1();
    void monitor();
    SC_CTOR(Splitter_tb)
    {
        SC_HAS_PROCESS(Splitter_tb);

        SC_THREAD(run_1);

        SC_THREAD(monitor);
        sensitive << IN << OUT1 << OUT2;
    }
};

void Splitter_tb_run();