orca-sim
SingleCoreExt.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * This file is part of project ORCA. More information on the project
3  * can be found at the following repositories at GitHub's website.
4  *
5  * http://https://github.com/andersondomingues/orca-sim
6  * http://https://github.com/andersondomingues/orca-software
7  * http://https://github.com/andersondomingues/orca-mpsoc
8  * http://https://github.com/andersondomingues/orca-tools
9  *
10  * Copyright (C) 2018-2020 Anderson Domingues, <ti.andersondomingues@gmail.com>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License along
23  * with this program; if not, write to the Free Software Foundation, Inc.,
24  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 ******************************************************************************/
26 #ifndef PLATFORMS_SINGLE_CORE_EXT_INCLUDE_SINGLECOREEXT_HPP_
27 #define PLATFORMS_SINGLE_CORE_EXT_INCLUDE_SINGLECOREEXT_HPP_
28 
29 #include "Simulator.hpp"
30 
32 
37 
39 
40 class SingleCoreExt : public Simulator {
41  private:
42  // signal list
47 
48  // "big modules"
49  Memory *mem, *mem1, *mem2; // main memory, plus two buffer for the ni
53 
54  public:
55  SingleCoreExt(int argc, char** argv);
56 
57  void Startup(); // model instantiation
58  void Schedule();
59  void Report(); // statistics
60 
62 };
63 
64 } // namespace orcasim::platforms::singlecoreext
65 #endif // PLATFORMS_SINGLE_CORE_EXT_INCLUDE_SINGLECOREEXT_HPP_
The Signal class models a generic bus of width equals to the sizeof(T)
Definition: Signal.hpp:45
This class models a memory module.
Definition: Memory.hpp:55
void Schedule()
In this method, we add hardware models to the simulation queue.
void Startup()
This routine regards the instantiation of hardware for the simulation.