Last change
on this file since 114 was
98,
checked in by rosiere, 16 years ago
|
1) Fix bug (read unit, RAT -> write in R0, SPR desallocation ...)
2) Change VHDL Execute_queue -> use Generic/Queue?
3) Complete document on VHDL generation
4) Add soc test
|
-
Property svn:keywords set to
Id
|
File size:
673 bytes
|
Line | |
---|
1 | #include "Behavioural/include/SPR_access_mode.h" |
---|
2 | |
---|
3 | namespace morpheo { |
---|
4 | namespace behavioural { |
---|
5 | |
---|
6 | SPR_access_mode::SPR_access_mode() |
---|
7 | { |
---|
8 | |
---|
9 | _max_register_by_group = new uint32_t [NB_GROUP]; |
---|
10 | |
---|
11 | _spr_generic = new spr_access_mode_t * [NB_GROUP]; |
---|
12 | |
---|
13 | for (uint32_t i=0; i<NB_GROUP; i++) |
---|
14 | { |
---|
15 | _spr_generic [i] = NULL; |
---|
16 | _max_register_by_group [i] = 0; |
---|
17 | } |
---|
18 | } |
---|
19 | |
---|
20 | SPR_access_mode::~SPR_access_mode() |
---|
21 | { |
---|
22 | for (uint32_t i=0; i<NB_GROUP; i++) |
---|
23 | if (_spr_generic [i] != NULL) |
---|
24 | delete [] _spr_generic [i]; |
---|
25 | |
---|
26 | delete [] _spr_generic; |
---|
27 | |
---|
28 | delete [] _max_register_by_group; |
---|
29 | } |
---|
30 | |
---|
31 | }; // end namespace behavioural |
---|
32 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.