Last change
on this file since 139 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:
1.2 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id: RegisterFile_Multi_Banked_address_xxx.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/RegisterFile_Multi_Banked.h" |
---|
9 | #include "Common/include/BitManipulation.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace registerfile { |
---|
15 | namespace registerfile_multi_banked { |
---|
16 | |
---|
17 | |
---|
18 | Taddress_t RegisterFile_Multi_Banked::address_bank (Taddress_t address) |
---|
19 | { |
---|
20 | log_printf(FUNC,RegisterFile_Multi_Banked,"address_bank","Begin"); |
---|
21 | |
---|
22 | Taddress_t _return = _param->_bank_mask & (address >> _param->_bank_shift); |
---|
23 | |
---|
24 | log_printf(FUNC,RegisterFile_Multi_Banked,"address_bank","End"); |
---|
25 | |
---|
26 | return _return; |
---|
27 | }; |
---|
28 | |
---|
29 | Taddress_t RegisterFile_Multi_Banked::address_num_reg (Taddress_t address) |
---|
30 | { |
---|
31 | log_printf(FUNC,RegisterFile_Multi_Banked,"address_num_reg","Begin"); |
---|
32 | |
---|
33 | Taddress_t _return = _param->_num_reg_mask & (address >> _param->_num_reg_shift); |
---|
34 | |
---|
35 | log_printf(FUNC,RegisterFile_Multi_Banked,"address_num_reg","End"); |
---|
36 | |
---|
37 | return _return; |
---|
38 | }; |
---|
39 | |
---|
40 | |
---|
41 | |
---|
42 | }; // end namespace registerfile_multi_banked |
---|
43 | }; // end namespace registerfile |
---|
44 | }; // end namespace generic |
---|
45 | |
---|
46 | }; // end namespace behavioural |
---|
47 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.