Last change
on this file since 119 was
116,
checked in by moulu, 15 years ago
|
1) added a generic multiplier (systemC isn't working with 8bits)
2) added a partial functionnal unit vhdl.
|
-
Property svn:keywords set to
Id
|
File size:
678 bytes
|
Rev | Line | |
---|
[116] | 1 | #ifdef SYSTEMC |
---|
| 2 | /* |
---|
| 3 | * $Id: Multiplier_genMealy.cpp 116 2009-04-30 13:51:41Z moulu $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Generic/Multiplier/include/Multiplier.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace multiplier { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Multiplier::genMealy" |
---|
| 19 | void Multiplier::genMealy (void) |
---|
| 20 | { |
---|
| 21 | log_begin(Multiplier,FUNCTION); |
---|
| 22 | |
---|
| 23 | PORT_WRITE(out_MULTIPLIER_DATA_LSB_OUT, _pipeline->at(0).LSB); |
---|
| 24 | PORT_WRITE(out_MULTIPLIER_DATA_MSB_OUT, _pipeline->at(0).MSB); |
---|
| 25 | |
---|
| 26 | log_end(Multiplier,FUNCTION); |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | }; // end namespace multiplier |
---|
| 30 | }; // end namespace generic |
---|
| 31 | |
---|
| 32 | }; // end namespace behavioural |
---|
| 33 | }; // end namespace morpheo |
---|
| 34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.