source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/src/Read_queue_vhdl.cpp @ 100

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

1) Bug fix (Operation, Instruction)
2) Modif Return Address Stack
3) Add Soft Test
4) Add Soc Test

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1#ifdef VHDL
2/*
3 * $Id: Read_queue_vhdl.cpp 100 2009-01-08 13:06:27Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Read_queue.h"
10#include "Behavioural/Generic/Queue/include/Queue.h"
11#include "Behavioural/include/Vhdl.h"
12
13namespace morpheo                    {
14namespace behavioural {
15namespace core {
16namespace multi_execute_loop {
17namespace execute_loop {
18namespace multi_read_unit {
19namespace read_unit {
20namespace read_queue {
21
22
23  void Read_queue::vhdl (void)
24  {
25    log_printf(FUNC,Read_queue,"vhdl","Begin");
26   
27    //----- Queue -----
28   
29    morpheo::behavioural::generic::queue::Parameters * param_queue;
30    morpheo::behavioural::generic::queue::Queue      * queue;
31   
32    param_queue = new morpheo::behavioural::generic::queue::Parameters
33      (_param->_size_queue,
34       _param->_size_internal_queue,
35       0
36       );
37   
38    std::string queue_name = _name + "_queue";
39    queue = new morpheo::behavioural::generic::queue::Queue
40      (queue_name.c_str()
41#ifdef STATISTICS
42       ,NULL
43#endif
44       ,param_queue
45       ,USE_VHDL);
46   
47    _component->set_component(queue->_component
48#ifdef POSITION
49                              , 0, 0, 0, 0
50#endif
51                              , INSTANCE_LIBRARY
52                              );
53
54
55    Vhdl * vhdl = new Vhdl (_name);
56
57    _interfaces->set_port(vhdl);
58    _component->vhdl_instance(vhdl);
59
60    vhdl_declaration (vhdl);
61    vhdl_body        (vhdl);
62
63    vhdl->generate_file();
64
65    delete vhdl;
66    delete param_queue;
67    delete queue;
68
69    log_printf(FUNC,Read_queue,"vhdl","End");
70  };
71
72}; // end namespace read_queue
73}; // end namespace read_unit
74}; // end namespace multi_read_unit
75}; // end namespace execute_loop
76}; // end namespace multi_execute_loop
77}; // end namespace core
78
79}; // end namespace behavioural
80}; // end namespace morpheo             
81#endif
Note: See TracBrowser for help on using the repository browser.