Last change
on this file since 8 was
6,
checked in by rosiere, 17 years ago
|
Banc de registres
- ajout de 2 ports additionnels inutiles (reset et ack) mais nécessaire pour uniformisé les différentes version du banc de registres
|
File size:
1.3 KB
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Generic/RegisterFile/include/RegisterFile.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace behavioural { |
---|
13 | namespace generic { |
---|
14 | namespace registerfile { |
---|
15 | |
---|
16 | void RegisterFile::vhdl_testbench_transition (Vhdl_Testbench & vhdl_testbench) |
---|
17 | { |
---|
18 | #ifndef SYSTEMCASS_SPECIFIC |
---|
19 | sc_cycle(0); |
---|
20 | #endif |
---|
21 | vhdl_testbench.add_input (PORT_READ( in_NRESET)); |
---|
22 | |
---|
23 | for (uint32_t i = 0; i < _param._nb_port_read ; i ++) |
---|
24 | { |
---|
25 | vhdl_testbench.add_input (PORT_READ( in_READ_VAL [i])); |
---|
26 | vhdl_testbench.add_output(PORT_READ(out_READ_ACK [i])); |
---|
27 | vhdl_testbench.add_input (PORT_READ( in_READ_ADDRESS [i])); |
---|
28 | vhdl_testbench.add_output(PORT_READ(out_READ_DATA [i])); |
---|
29 | } |
---|
30 | for (uint32_t i = 0; i < _param._nb_port_write; i ++) |
---|
31 | { |
---|
32 | vhdl_testbench.add_input (PORT_READ( in_WRITE_VAL [i])); |
---|
33 | vhdl_testbench.add_output(PORT_READ(out_WRITE_ACK [i])); |
---|
34 | vhdl_testbench.add_input (PORT_READ( in_WRITE_ADDRESS[i])); |
---|
35 | vhdl_testbench.add_input (PORT_READ( in_WRITE_DATA [i])); |
---|
36 | } |
---|
37 | |
---|
38 | vhdl_testbench.add_test(true); |
---|
39 | |
---|
40 | vhdl_testbench.new_cycle (); // always at the end |
---|
41 | }; |
---|
42 | |
---|
43 | }; // end namespace registerfile |
---|
44 | }; // end namespace generic |
---|
45 | }; // end namespace behavioural |
---|
46 | }; // end namespace morpheo |
---|
47 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.