source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_set_port.cpp @ 113

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

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1/*
2 * $Id: Signal_set_port.cpp 113 2009-04-14 18:39:12Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Signal.h"
9
10
11namespace morpheo              {
12namespace behavioural          {
13
14#ifdef VHDL
15  void Signal::set_port (Vhdl * & vhdl)
16  {
17    log_printf(FUNC,Behavioural,"set_port (Vhdl)","Begin");
18
19    if ((_presence_port == PORT_VHDL_YES_TESTBENCH_YES) or
20        (_presence_port == PORT_VHDL_YES_TESTBENCH_NO ) or
21        (_presence_port == CLOCK_VHDL_YES)              or
22        (_presence_port == RESET_VHDL_YES))
23      vhdl->set_port (_name,_direction,get_size());
24
25    log_printf(FUNC,Behavioural,"set_port (Vhdl)","End");
26  };
27
28#ifdef VHDL_TESTBENCH
29  void Signal::set_signal (Vhdl * & vhdl)
30  {
31    log_printf(FUNC,Behavioural,"set_signal (Vhdl)","Begin");
32   
33    if (   (_presence_port == PORT_VHDL_YES_TESTBENCH_YES)
34        or (_presence_port == PORT_VHDL_NO_TESTBENCH_YES )
35//      or (_presence_port == CLOCK_VHDL_YES)
36//      or (_presence_port == CLOCK_VHDL_NO )
37//      or (_presence_port == RESET_VHDL_YES)
38//      or (_presence_port == RESET_VHDL_NO )
39        )
40      vhdl->set_signal (_name        ,get_size());
41
42    if (_direction == OUT)
43      vhdl->set_signal (_name+"_test",get_size());
44
45    log_printf(FUNC,Behavioural,"set_signal (Vhdl)","End");
46  };
47#endif
48#endif
49
50}; // end namespace behavioural         
51}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.