diff options
Diffstat (limited to 'src/tb/pcm_device_tb.h')
| -rw-r--r-- | src/tb/pcm_device_tb.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/tb/pcm_device_tb.h b/src/tb/pcm_device_tb.h new file mode 100644 index 0000000..a9b7195 --- /dev/null +++ b/src/tb/pcm_device_tb.h @@ -0,0 +1,29 @@ +#pragma once + +#include <systemc.h> + +#include <optical_signal.h> +#include <pcm_device.h> +#include <probe.h> +#include <specs.h> + +SC_MODULE(PCMElement_tb) +{ +public: + spx::oa_port_out_type IN; + spx::oa_port_in_type OUT; + + void run_1(); + void monitor(); + SC_CTOR(PCMElement_tb) + { + SC_HAS_PROCESS(PCMElement_tb); + + SC_THREAD(run_1); + + SC_THREAD(monitor); + sensitive << IN << OUT; + } +}; + +void PCMElement_tb_run(); |
