source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Decod_unit/Decod_queue/src/Decod_queue_vhdl.cpp @ 135

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

1) Add Vhdl component
2) Inhib VHDL Seltest interface

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