2020-07-14 10:49:06 +02:00
|
|
|
/*
|
|
|
|
* top.h
|
|
|
|
*
|
|
|
|
* Created on: 04.05.2020
|
|
|
|
* Author: eyck
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _SIM_PERFORMANCE_TOP_H_
|
|
|
|
#define _SIM_PERFORMANCE_TOP_H_
|
|
|
|
|
|
|
|
#include "pkt_sender.h"
|
|
|
|
#include "pkt_switch.h"
|
|
|
|
#include "types.h"
|
2023-12-22 20:42:21 +01:00
|
|
|
#include <memory>
|
|
|
|
#include <systemc>
|
|
|
|
#include <vector>
|
2020-07-14 10:49:06 +02:00
|
|
|
|
2023-12-22 20:42:21 +01:00
|
|
|
class top : public sc_core::sc_module {
|
2020-07-14 10:49:06 +02:00
|
|
|
public:
|
2020-07-14 11:32:22 +02:00
|
|
|
top(sc_core::sc_module_name const&, uint8_t, unsigned);
|
2020-07-14 10:49:06 +02:00
|
|
|
virtual ~top() = default;
|
2023-12-22 20:42:21 +01:00
|
|
|
|
2020-07-14 10:49:06 +02:00
|
|
|
private:
|
|
|
|
void run();
|
|
|
|
sc_core::sc_clock clk;
|
|
|
|
std::array<std::vector<std::unique_ptr<pkt_sender>>, SIDES> senders;
|
|
|
|
std::vector<std::unique_ptr<pkt_switch>> switches;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* TESTS_SIM_PERFORMANCE_TOP_H_ */
|