Last change
on this file since 136 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
845 bytes
|
Rev | Line | |
---|
[42] | 1 | /* |
---|
| 2 | * $Id: Signal_get_size.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Signal.h" |
---|
[113] | 9 | #include "Common/include/Environment.h" |
---|
[42] | 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
[43] | 14 | #undef FUNCTION |
---|
| 15 | #define FUNCTION "Signal::get_size" |
---|
[42] | 16 | uint32_t Signal::get_size (void) |
---|
| 17 | { |
---|
[43] | 18 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 19 | uint32_t _return = _size; |
---|
[113] | 20 | |
---|
| 21 | #ifdef MODELSIM_COSIMULATION |
---|
| 22 | switch (_type_info) |
---|
| 23 | { |
---|
| 24 | case BOOL : _return = 1; break; |
---|
| 25 | case UINT8_T : _return = 8; break; |
---|
| 26 | case UINT16_T : _return = 16; break; |
---|
| 27 | case UINT32_T : _return = 32; break; |
---|
| 28 | case UINT64_T : _return = 64; break; |
---|
| 29 | default : break; |
---|
| 30 | } |
---|
| 31 | #endif |
---|
| 32 | |
---|
[43] | 33 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 34 | |
---|
| 35 | return _return; |
---|
[42] | 36 | }; |
---|
| 37 | |
---|
| 38 | }; // end namespace behavioural |
---|
| 39 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.