Last change
on this file since 122 was
95,
checked in by rosiere, 16 years ago
|
1) Update Prediction Table - New architecture (systemC) done (and tested) -> need change interface in top level
2) Change documentation on VHDL generation
3) Change VHDL constant (case std_logic and std_logic_vector)
|
-
Property svn:keywords set to
Id
|
File size:
887 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id: Interface_testbench_test.cpp 95 2008-12-16 16:24:26Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interface.h" |
---|
| 10 | #include "Behavioural/include/Entity.h" |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
[75] | 15 | std::string Interface::testbench_test (Vhdl * & vhdl, |
---|
| 16 | std::string counter_name, |
---|
| 17 | std::string reset_name ) |
---|
[41] | 18 | { |
---|
| 19 | log_printf(FUNC,Behavioural,"testbench_test","Begin"); |
---|
| 20 | |
---|
| 21 | vhdl->set_body(""); |
---|
| 22 | vhdl->set_body("-- Test exhaustive"); |
---|
| 23 | vhdl->set_body(""); |
---|
| 24 | |
---|
[75] | 25 | std::string test_name = testbench_test_name(vhdl); |
---|
[95] | 26 | std::string test_name_ok = testbench_test_ok (vhdl); |
---|
[41] | 27 | |
---|
[42] | 28 | vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_ok+";"); |
---|
[41] | 29 | |
---|
| 30 | log_printf(FUNC,Behavioural,"testbench_test","End"); |
---|
| 31 | |
---|
| 32 | return test_name; |
---|
| 33 | }; |
---|
| 34 | |
---|
| 35 | }; // end namespace behavioural |
---|
| 36 | }; // end namespace morpheo |
---|
| 37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.