Last change
on this file since 136 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
950 bytes
|
Line | |
---|
1 | #include "Behavioural/include/SPR_access_mode.h" |
---|
2 | |
---|
3 | namespace morpheo { |
---|
4 | namespace behavioural { |
---|
5 | |
---|
6 | bool SPR_access_mode::valid (spr_address_t address) |
---|
7 | { |
---|
8 | return valid(address._group, address._register); |
---|
9 | } |
---|
10 | |
---|
11 | bool SPR_access_mode::valid (uint32_t num_group, uint32_t num_reg) |
---|
12 | { |
---|
13 | // std::cout << "<SPR_access_mode::valid>" << std::endl; |
---|
14 | // std::cout << " * num_group : " << num_group << std::endl; |
---|
15 | // std::cout << " * num_reg : " << num_reg << std::endl; |
---|
16 | // std::cout << " * _spr_generic [num_group] : " << _spr_generic[num_group] << std::endl; |
---|
17 | // std::cout << " * _max_register_by_group[num_group] : " << _max_register_by_group[num_group] << std::endl; |
---|
18 | return ((num_group < NB_GROUP) and (_spr_generic[num_group] != NULL) and (num_reg < _max_register_by_group[num_group])); |
---|
19 | } |
---|
20 | |
---|
21 | }; // end namespace behavioural |
---|
22 | }; // end namespace morpheo |
---|
23 | |
---|
Note: See
TracBrowser
for help on using the repository browser.