Line | |
---|
1 | /*------------------------------------------------------------\ |
---|
2 | | | |
---|
3 | | Tool : systemcass | |
---|
4 | | | |
---|
5 | | File : data_field.h | |
---|
6 | | | |
---|
7 | | Author : Buchmann Richard | |
---|
8 | | | |
---|
9 | | Date : 03_05_2006 | |
---|
10 | | | |
---|
11 | \------------------------------------------------------------*/ |
---|
12 | #ifndef __DATA_FIELD_H__ |
---|
13 | #define __DATA_FIELD_H__ |
---|
14 | |
---|
15 | template<int WIDTH, |
---|
16 | int PADDING, |
---|
17 | typename data_type> |
---|
18 | struct val_field { |
---|
19 | data_type valW:WIDTH; |
---|
20 | }; |
---|
21 | |
---|
22 | template<int WIDTH, |
---|
23 | typename data_type> |
---|
24 | struct val_field<WIDTH,0,data_type> { |
---|
25 | data_type valW:WIDTH; |
---|
26 | }; |
---|
27 | |
---|
28 | #endif |
---|
29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.