blob: 39b05dc6e6c12b4cdf8d7cf98f32d4d73da8866c (
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
30
 | #pragma once
#include <detector.h>
#include <optical_signal.h>
#include <systemc.h>
#include <probe.h>
#include <specs.h>
#include <waveguide.h>
SC_MODULE(Detector_tb)
{
public:
    spx::oa_port_out_type IN;
    sc_in<double> READOUT, READOUT2;
    void run_1();
    void monitor();
    SC_CTOR(Detector_tb)
    {
        SC_HAS_PROCESS(Detector_tb);
        SC_THREAD(run_1);
        SC_THREAD(monitor);
        sensitive << IN << READOUT << READOUT2;
    }
};
void Detector_tb_run();
 |