Last change
on this file since 124 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:
701 bytes
|
Rev | Line | |
---|
[116] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id: Multiplier_vhdl_xilinx_declaration.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 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "Multiplier::vhdl_xilinx_declaration" |
---|
| 18 | void Multiplier::vhdl_xilinx_declaration (Vhdl * & vhdl) |
---|
| 19 | { |
---|
| 20 | log_begin(Multiplier,FUNCTION); |
---|
| 21 | |
---|
| 22 | vhdl->set_library("XilinxCoreLib","mult_gen_v9_0_comp","all"); |
---|
| 23 | |
---|
| 24 | vhdl->set_signal ("sig_MULTIPLIER_DATA_OUT", _param->_size_data*2); |
---|
| 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.