aboutsummaryrefslogtreecommitdiff
path: root/src/tb/phase_shifter_tb.h
diff options
context:
space:
mode:
authorClément Zrounba <6691770+clement-z@users.noreply.github.com>2023-09-30 23:06:01 +0200
committerClément Zrounba <6691770+clement-z@users.noreply.github.com>2023-09-30 23:26:46 +0200
commitff9b8bb838ecdfbfc1dc81038fcf3b2a87636982 (patch)
tree21f27be782ce11c6d00b96ce100a2bff88141b2e /src/tb/phase_shifter_tb.h
downloadspecs-ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982.tar.gz
specs-ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982.zip
Initial release
Diffstat (limited to 'src/tb/phase_shifter_tb.h')
-rw-r--r--src/tb/phase_shifter_tb.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/tb/phase_shifter_tb.h b/src/tb/phase_shifter_tb.h
new file mode 100644
index 0000000..a59538d
--- /dev/null
+++ b/src/tb/phase_shifter_tb.h
@@ -0,0 +1,32 @@
+#pragma once
+
+#include <optical_signal.h>
+#include <systemc.h>
+#include <waveguide.h>
+#include <phaseshifter.h>
+#include <merger.h>
+#include <probe.h>
+#include <specs.h>
+
+SC_MODULE(ps_tb)
+{
+public:
+ spx::oa_port_out_type IN1;
+ spx::oa_port_out_type IN2;
+ sc_out<double> V_PS;
+ spx::oa_port_in_type OUT;
+
+ void run_1();
+ void monitor();
+ SC_CTOR(ps_tb)
+ {
+ SC_HAS_PROCESS(ps_tb);
+
+ SC_THREAD(run_1);
+
+ SC_THREAD(monitor);
+ sensitive << IN1 << IN2 << OUT;
+ }
+};
+
+void ps_tb_run();