-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathduplicator.hpp
More file actions
21 lines (21 loc) · 831 Bytes
/
duplicator.hpp
File metadata and controls
21 lines (21 loc) · 831 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/**
* @file duplicator.hpp
* @brief Takes a single input and copies it out to two downstream
* connections.
*/
#ifndef DUPLICATOR_HPP
#define DUPLICATOR_HPP
#include "common.hpp"
#include <systemc>
struct Duplicator_module : sc_core::sc_module
{
Duplicator_module( sc_core::sc_module_name instance );
~Duplicator_module( void ) = default;
sc_core::sc_fifo_in <RawData_t> input_port { "input_port" };
sc_core::sc_export<sc_core::sc_fifo_in_if<RawData_t>> out1_xport { "out1_xport" };
sc_core::sc_export<sc_core::sc_fifo_in_if<RawData_t>> out2_xport { "out2_xport" };
private:
sc_core::sc_fifo<RawData_t> out1_fifo { "out1_fifo", FIFO_DEPTH };
sc_core::sc_fifo<RawData_t> out2_fifo { "out2_fifo", FIFO_DEPTH };
};
#endif/*DUPLICATOR_HPP*/