add test case focusing on simulation kernel performance
This commit is contained in:
29
tests/sim_performance/top.h
Normal file
29
tests/sim_performance/top.h
Normal file
@ -0,0 +1,29 @@
|
||||
/*
|
||||
* top.h
|
||||
*
|
||||
* Created on: 04.05.2020
|
||||
* Author: eyck
|
||||
*/
|
||||
|
||||
#ifndef _SIM_PERFORMANCE_TOP_H_
|
||||
#define _SIM_PERFORMANCE_TOP_H_
|
||||
|
||||
#include <systemc>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
#include "pkt_sender.h"
|
||||
#include "pkt_switch.h"
|
||||
#include "types.h"
|
||||
|
||||
class top: public sc_core::sc_module {
|
||||
public:
|
||||
top(sc_core::sc_module_name const&, unsigned);
|
||||
virtual ~top() = default;
|
||||
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_ */
|
Reference in New Issue
Block a user