Last change
on this file since 102 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:
611 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id: Signal_testbench_test_ok.cpp 95 2008-12-16 16:24:26Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Signal.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | |
---|
| 14 | // à optimisé -> pointeur de fonction afin d'éviter le test et le switch |
---|
| 15 | void Signal::testbench_test_ok (Vhdl * & vhdl) |
---|
| 16 | { |
---|
| 17 | log_printf(FUNC,Behavioural,"testbench_test_ok","Begin"); |
---|
| 18 | |
---|
| 19 | if (_direction == OUT) |
---|
[42] | 20 | vhdl->set_body ("\tand "+_name+" = "+_name+"_test"); |
---|
[95] | 21 | |
---|
[41] | 22 | log_printf(FUNC,Behavioural,"testbench_test_ok","End"); |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | }; // end namespace behavioural |
---|
| 26 | }; // end namespace morpheo |
---|
| 27 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.