source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/src/Load_store_unit_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.3 KB
Line 
1#ifdef SYSTEMC
2/*
3 * $Id: Load_store_unit_constant.cpp 131 2009-07-08 18:40:08Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Execute_unit/Execute_unit/Load_store_unit/include/Load_store_unit.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace core {
14namespace multi_execute_loop {
15namespace execute_loop {
16namespace multi_execute_unit {
17namespace execute_unit {
18namespace load_store_unit {
19
20
21#undef  FUNCTION
22#define FUNCTION "Load_store_unit::constant"
23  void Load_store_unit::constant (void)
24  {
25    log_printf(FUNC,Load_store_unit,FUNCTION,"Begin");
26
27    internal_DCACHE_RSP_ACK = 1;
28    PORT_WRITE(out_DCACHE_RSP_ACK [0], internal_DCACHE_RSP_ACK);
29    for (uint32_t i=1; i<_param->_nb_cache_port; ++i)
30      {
31        PORT_WRITE(out_DCACHE_RSP_ACK [i], 0);
32        PORT_WRITE(out_DCACHE_REQ_VAL [i], 0);
33      }
34
35    for (uint32_t i=1; i<_param->_nb_inst_memory; i++)
36      {
37        PORT_WRITE(out_MEMORY_OUT_VAL [i], 0);
38      }
39
40    log_printf(FUNC,Load_store_unit,FUNCTION,"End");
41  };
42
43}; // end namespace load_store_unit
44}; // end namespace execute_unit
45}; // end namespace multi_execute_unit
46}; // end namespace execute_loop
47}; // end namespace multi_execute_loop
48}; // end namespace core
49
50}; // end namespace behavioural
51}; // end namespace morpheo             
52#endif
Note: See TracBrowser for help on using the repository browser.