aboutsummaryrefslogtreecommitdiff
path: root/src/tb/crow_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/crow_tb.h
downloadspecs-ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982.tar.gz
specs-ff9b8bb838ecdfbfc1dc81038fcf3b2a87636982.zip
Initial release
Diffstat (limited to 'src/tb/crow_tb.h')
-rw-r--r--src/tb/crow_tb.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/tb/crow_tb.h b/src/tb/crow_tb.h
new file mode 100644
index 0000000..473708d
--- /dev/null
+++ b/src/tb/crow_tb.h
@@ -0,0 +1,30 @@
+#pragma once
+
+#include <optical_signal.h>
+#include <specs.h>
+#include <systemc.h>
+
+class crow_tb : public sc_module {
+public:
+ spx::oa_port_out_type IN;
+ spx::oa_port_out_type ADD;
+ spx::oa_port_in_type THROUGH;
+ spx::oa_port_in_type DROP;
+
+ void run_fd();
+ void run_td();
+ void monitor();
+
+ SC_CTOR(crow_tb)
+ {
+ SC_THREAD(run_fd);
+ SC_THREAD(run_td);
+ SC_THREAD(monitor);
+ if (false)
+ sensitive << IN << ADD << THROUGH << DROP;
+ }
+};
+
+void crow_tb_run();
+
+extern size_t nrings_crow;