[2] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | |
---|
| 3 | #ifndef morpheo_behavioural_Vhdl_Testbench_h |
---|
| 4 | #define morpheo_behavioural_Vhdl_Testbench_h |
---|
| 5 | |
---|
| 6 | /* |
---|
| 7 | * $Id$ |
---|
| 8 | * |
---|
| 9 | * [ Description ] |
---|
| 10 | * |
---|
| 11 | */ |
---|
| 12 | |
---|
[40] | 13 | #include "Behavioural/include/Environnement.h" |
---|
[2] | 14 | #include "Behavioural/include/Vhdl.h" |
---|
| 15 | #include "Include/ToString.h" |
---|
| 16 | #include "Include/ToBase2.h" |
---|
| 17 | #include <stdint.h> |
---|
| 18 | #include <iostream> |
---|
| 19 | #include <list> |
---|
| 20 | |
---|
| 21 | using namespace std; |
---|
| 22 | |
---|
| 23 | namespace morpheo { |
---|
| 24 | namespace behavioural { |
---|
| 25 | |
---|
| 26 | class Vhdl_Testbench |
---|
| 27 | { |
---|
| 28 | class label_t |
---|
| 29 | { |
---|
| 30 | public : const uint32_t _cycle; |
---|
| 31 | public : const string _label; |
---|
| 32 | |
---|
| 33 | label_t (uint32_t cycle, |
---|
| 34 | string label) : |
---|
| 35 | _cycle (cycle), |
---|
| 36 | _label (label) |
---|
| 37 | {}; |
---|
| 38 | }; |
---|
| 39 | |
---|
[41] | 40 | // // -----[ fields ]---------------------------------------------------- |
---|
| 41 | // private : const string _name ; |
---|
| 42 | // private : const bool _exhaustive ; |
---|
[40] | 43 | |
---|
[41] | 44 | // private : string _clock_name ; |
---|
| 45 | // private : uint32_t _num_cycle ; |
---|
[2] | 46 | |
---|
[41] | 47 | // private : uint32_t _size_input ; |
---|
| 48 | // private : uint32_t _size_output; |
---|
[2] | 49 | |
---|
[41] | 50 | // private : list<string> _list_input ; |
---|
| 51 | // private : list<string> _list_input_cycle; |
---|
| 52 | // private : list<uint32_t> _list_input_size ; |
---|
[40] | 53 | |
---|
[41] | 54 | // private : list<string> _list_output; |
---|
| 55 | // private : list<string> _list_output_cycle; |
---|
| 56 | // private : list<uint32_t> _list_output_size ; |
---|
[40] | 57 | |
---|
[41] | 58 | // private : list<bool> _list_test; |
---|
| 59 | // private : list<string> _list_port; |
---|
| 60 | // private : list<label_t> _list_label; |
---|
[2] | 61 | |
---|
[41] | 62 | // private : list<uint32_t>::iterator _num_input ; |
---|
| 63 | // private : list<uint32_t>::iterator _num_output; |
---|
[2] | 64 | |
---|
[41] | 65 | // private : Vhdl * _vhdl; |
---|
[2] | 66 | |
---|
| 67 | // -----[ methods ]--------------------------------------------------- |
---|
[40] | 68 | public : Vhdl_Testbench (string name, |
---|
[41] | 69 | bool exhaustive=true){}; |
---|
| 70 | public : ~Vhdl_Testbench (){}; |
---|
[2] | 71 | |
---|
[41] | 72 | public : void generate_file (void){}; |
---|
[2] | 73 | |
---|
| 74 | public : void set_port (string name , |
---|
| 75 | direction_t direction , |
---|
[41] | 76 | uint32_t size ){}; |
---|
[2] | 77 | public : void set_clock (string name , |
---|
[41] | 78 | bool model_have_clock){}; |
---|
| 79 | public : void new_cycle (void){}; |
---|
[2] | 80 | |
---|
[41] | 81 | private : uint32_t get_input (void){return 0;}; |
---|
| 82 | private : void set_input (void){}; |
---|
| 83 | public : void add_input (uint32_t value ){}; |
---|
[2] | 84 | |
---|
[41] | 85 | private : uint32_t get_output (void){return 0;}; |
---|
| 86 | private : void set_output (void){}; |
---|
| 87 | public : void add_output (uint32_t value ){}; |
---|
[2] | 88 | |
---|
[41] | 89 | private : uint32_t get_test (void){return 0;}; |
---|
| 90 | public : void add_test (bool must_test ){}; |
---|
[2] | 91 | |
---|
[41] | 92 | private : void get_label (void){}; |
---|
| 93 | public : void add_label (string label ){}; |
---|
[2] | 94 | |
---|
[41] | 95 | private : void generate_process_clock (uint32_t counter ){}; |
---|
| 96 | private : void generate_instance (void){}; |
---|
[2] | 97 | }; |
---|
| 98 | |
---|
| 99 | }; // end namespace behavioural |
---|
| 100 | }; // end namespace morpheo |
---|
| 101 | |
---|
| 102 | #endif |
---|
| 103 | #endif |
---|