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

Last change on this file since 131 was 131, checked in by rosiere, 15 years ago

1) add constant method
2) test with systemc 2.2.0

  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: RegisterFile_Monolithic_constant.cpp 131 2009-07-08 18:40:08Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h"
10
11namespace morpheo                    {
12namespace behavioural                {
13namespace generic                    {
14namespace registerfile               {
15namespace registerfile_monolithic    {
16
17#undef  FUNCTION
18#define FUNCTION "RegisterFile_Monolithic::constant"
19  void RegisterFile_Monolithic::constant (void)
20  {
21    log_begin(RegisterFile_Monolithic,FUNCTION);
22    log_function(RegisterFile_Monolithic,FUNCTION,_name.c_str());
23   
24    for (uint32_t i=0; i<_param->_nb_port_read       ; i++)
25      PORT_WRITE(out_READ_ACK        [i], 1);
26    for (uint32_t i=0; i<_param->_nb_port_write      ; i++)
27      PORT_WRITE(out_WRITE_ACK       [i], 1);
28    for (uint32_t i=0; i<_param->_nb_port_read_write ; i++)
29      PORT_WRITE(out_READ_WRITE_ACK  [i], 1);
30
31    log_end(RegisterFile_Monolithic,FUNCTION);
32  };
33
34}; // end namespace registerfile_monolithic
35}; // end namespace registerfile
36}; // end namespace generic
37}; // end namespace behavioural         
38}; // end namespace morpheo             
39#endif
Note: See TracBrowser for help on using the repository browser.