Last change
on this file since 145 was
145,
checked in by rosiere, 14 years ago
|
1) add test with SPECINT2K
2) new config of Selftest
3) modif RAT to support multiple depth_save ... but not finish (need fix Update Prediction Table)
4) add Function_pointer but need fix
|
-
Property svn:keywords set to
Id
|
File size:
1.3 KB
|
Rev | Line | |
---|
[44] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id: RegisterFile_Monolithic_vhdl_declaration.cpp 145 2010-10-13 18:15:51Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h" |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | #include "Common/include/ToString.h" |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace registerfile { |
---|
| 16 | namespace registerfile_monolithic { |
---|
| 17 | |
---|
| 18 | void RegisterFile_Monolithic::vhdl_declaration (Vhdl * & vhdl) |
---|
| 19 | { |
---|
[145] | 20 | #ifndef VHDL_GAISLER |
---|
[97] | 21 | vhdl->set_type ("Tregfile", "array " + _std_logic_range(_param->_nb_word) + " of " + std_logic(_param->_size_word)); |
---|
[44] | 22 | |
---|
| 23 | vhdl->set_signal ("reg_DATA", "Tregfile"); |
---|
[145] | 24 | #else |
---|
| 25 | // for (uint32_t i=0; i<_param->_nb_word; ++i) |
---|
| 26 | // vhdl->set_signal ("reg_DATA_"+toString(i), _param->_size_word); |
---|
| 27 | |
---|
| 28 | vhdl->set_type ("Tregfile", "array " + _std_logic_range(_param->_nb_word) + " of " + std_logic(_param->_size_word)); |
---|
| 29 | vhdl->set_type ("Treg", "record reg : Tregfile; end record"); |
---|
| 30 | |
---|
| 31 | vhdl->set_signal ("reg_DATA" , "Treg"); |
---|
| 32 | vhdl->set_signal ("reg_DATA_next", "Treg"); |
---|
| 33 | #endif |
---|
[44] | 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace registerfile_monolithic |
---|
| 37 | }; // end namespace registerfile |
---|
| 38 | }; // end namespace generic |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
| 41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.