Last change
on this file since 122 was
112,
checked in by rosiere, 15 years ago
|
1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone
|
-
Property svn:keywords set to
Id
|
File size:
1.2 KB
|
Line | |
---|
1 | #ifdef SYSTEMC |
---|
2 | /* |
---|
3 | * $Id: Simulation.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Simulation.h" |
---|
10 | #include "Common/include/ErrorMorpheo.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | static bool simulation_initialized; |
---|
16 | double _simulation_nb_cycle; |
---|
17 | double _simulation_nb_instruction; |
---|
18 | std::vector<double> _simulation_nb_instruction_commited; |
---|
19 | Model _model; |
---|
20 | |
---|
21 | void simulation_init (double nb_cycle, |
---|
22 | double nb_instruction) |
---|
23 | { |
---|
24 | if (not simulation_initialized) |
---|
25 | { |
---|
26 | _simulation_nb_cycle = nb_cycle; |
---|
27 | _simulation_nb_instruction = nb_instruction; |
---|
28 | // _simulation_nb_instruction_commited = new std::vector<double>; |
---|
29 | |
---|
30 | simulation_initialized = true; |
---|
31 | } |
---|
32 | else |
---|
33 | { |
---|
34 | msg_printf(WARNING,_("Multi instance of Morpheo : stop condition, take the highest.")); |
---|
35 | |
---|
36 | if (_simulation_nb_cycle < nb_cycle) |
---|
37 | _simulation_nb_cycle = nb_cycle; |
---|
38 | |
---|
39 | if (_simulation_nb_instruction < nb_instruction) |
---|
40 | _simulation_nb_instruction = nb_instruction; |
---|
41 | } |
---|
42 | } |
---|
43 | |
---|
44 | }; // end namespace behavioural |
---|
45 | }; // end namespace morpheo |
---|
46 | |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.