source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_declaration.cpp @ 88

Last change on this file since 88 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 873 bytes
Line 
1#ifdef VHDL
2/*
3 * $Id: RegisterFile_Monolithic_vhdl_declaration.cpp 81 2008-04-15 18:40:01Z 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"
12namespace morpheo                    {
13namespace behavioural                {
14namespace generic                    {
15namespace registerfile               {
16namespace registerfile_monolithic    {
17
18  void RegisterFile_Monolithic::vhdl_declaration (Vhdl * & vhdl)
19  {
20    vhdl->set_type ("Tregfile", "array (" + toString(_param->_nb_word-1) + " downto 0) of " + std_logic(_param->_size_word));
21
22    vhdl->set_signal ("reg_DATA", "Tregfile");
23  };
24
25}; // end namespace registerfile_monolithic
26}; // end namespace registerfile
27}; // end namespace generic
28}; // end namespace behavioural         
29}; // end namespace morpheo             
30#endif
Note: See TracBrowser for help on using the repository browser.