Last change
on this file since 136 was
81,
checked in by rosiere, 16 years ago
|
- Finish Environment (and test)
- Continue predictor_unit
- Add external tools
- svn keyword "Id" set
|
-
Property svn:keywords set to
Id
|
File size:
1.1 KB
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id: Interface_fifo_testbench_test_transaction.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interface_fifo.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | |
---|
14 | std::string Interface_fifo::testbench_test_transaction (Vhdl * & vhdl) |
---|
15 | { |
---|
16 | log_printf(FUNC,Behavioural,"testbench_test_transaction","Begin"); |
---|
17 | |
---|
18 | std::string name = testbench_test_transaction_name(vhdl); |
---|
19 | |
---|
20 | vhdl->set_body(name+" <= '1'"); |
---|
21 | |
---|
22 | // list "val" |
---|
23 | if (_list_signal_val->empty()== false) |
---|
24 | { |
---|
25 | std::list<Signal*>::iterator i = _list_signal_val->begin(); |
---|
26 | |
---|
27 | while (i != _list_signal_val->end()) |
---|
28 | { |
---|
29 | vhdl->set_body("\tand "+(*i)->get_name()); |
---|
30 | ++i; |
---|
31 | } |
---|
32 | } |
---|
33 | |
---|
34 | // list "ack" |
---|
35 | if (_list_signal_ack->empty()== false) |
---|
36 | { |
---|
37 | std::list<Signal*>::iterator i = _list_signal_ack->begin(); |
---|
38 | |
---|
39 | while (i != _list_signal_ack->end()) |
---|
40 | { |
---|
41 | vhdl->set_body("\tand "+(*i)->get_name()); |
---|
42 | ++i; |
---|
43 | } |
---|
44 | } |
---|
45 | |
---|
46 | vhdl->set_body("\t;"); |
---|
47 | vhdl->set_body(""); |
---|
48 | |
---|
49 | log_printf(FUNC,Behavioural,"testbench_test_transaction","End"); |
---|
50 | |
---|
51 | return name; |
---|
52 | }; |
---|
53 | |
---|
54 | }; // end namespace behavioural |
---|
55 | }; // end namespace morpheo |
---|
56 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.