source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_Testbench_set_clock.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 672 bytes
Line 
1#ifdef VHDL_TESTBENCH
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 * must be call after all add port
8 */
9
10#include "Behavioural/include/Vhdl_Testbench.h"
11
12#include <sstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
18  void Vhdl_Testbench::set_clock (string name,
19                                  bool   model_have_clock)
20  {
21    _clock_name = name;
22    _vhdl->set_signal (name,std_logic(1),"'0'");
23
24    if (model_have_clock == true)
25      _list_port.push_back(name);
26
27    _num_input   = _list_input_size .begin();
28    _num_output  = _list_output_size.begin();
29  };
30 
31}; // end namespace behavioural         
32}; // end namespace morpheo             
33
34#endif
Note: See TracBrowser for help on using the repository browser.