aboutsummaryrefslogtreecommitdiff
path: root/src/tb/detector_tb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tb/detector_tb.h')
-rw-r--r--src/tb/detector_tb.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tb/detector_tb.h b/src/tb/detector_tb.h
new file mode 100644
index 0000000..39b05dc
--- /dev/null
+++ b/src/tb/detector_tb.h
@@ -0,0 +1,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();
+