From ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Zrounba?= <6691770+clement-z@users.noreply.github.com> Date: Sat, 30 Sep 2023 23:06:01 +0200 Subject: Initial release --- src/tb/directional_coupler_tb.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 src/tb/directional_coupler_tb.h (limited to 'src/tb/directional_coupler_tb.h') diff --git a/src/tb/directional_coupler_tb.h b/src/tb/directional_coupler_tb.h new file mode 100644 index 0000000..c137b31 --- /dev/null +++ b/src/tb/directional_coupler_tb.h @@ -0,0 +1,31 @@ +#pragma once + +#include +#include +#include +#include +#include + +SC_MODULE(DirectionalCoupler_tb) +{ +public: + spx::oa_port_out_type IN1; + spx::oa_port_out_type IN2; + spx::oa_port_in_type OUT1; + spx::oa_port_in_type OUT2; + + void run_1(); + void monitor(); + SC_CTOR(DirectionalCoupler_tb) + { + SC_HAS_PROCESS(DirectionalCoupler_tb); + + SC_THREAD(run_1); + + SC_THREAD(monitor); + sensitive << IN1 << IN2 << OUT1 << OUT2; + } +}; + +void DirectionalCoupler_tb_run(); + -- cgit v1.2.3