Last change
on this file since 115 was
113,
checked in by rosiere, 15 years ago
|
1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile
|
-
Property svn:keywords set to
Id
|
File size:
949 bytes
|
Line | |
---|
1 | #ifdef VHDL |
---|
2 | /* |
---|
3 | * $Id: Comparator_vhdl.cpp 113 2009-04-14 18:39:12Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/Generic/Comparator/include/Comparator.h" |
---|
10 | #include "Behavioural/include/Vhdl.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | namespace generic { |
---|
15 | namespace comparator { |
---|
16 | |
---|
17 | |
---|
18 | #undef FUNCTION |
---|
19 | #define FUNCTION "Comparator::vhdl" |
---|
20 | void Comparator::vhdl (void) |
---|
21 | { |
---|
22 | log_begin(Comparator,FUNCTION); |
---|
23 | |
---|
24 | Vhdl * vhdl = new Vhdl (_name); |
---|
25 | |
---|
26 | _interfaces->set_port(vhdl); |
---|
27 | _component->vhdl_instance(vhdl); |
---|
28 | |
---|
29 | // default architecture |
---|
30 | vhdl_declaration (vhdl); |
---|
31 | vhdl_body (vhdl); |
---|
32 | |
---|
33 | // Xilinx architecture |
---|
34 | vhdl->set_architecture("xilinx"); |
---|
35 | vhdl_xilinx_declaration (vhdl); |
---|
36 | vhdl_xilinx_body (vhdl); |
---|
37 | |
---|
38 | vhdl->generate_file(); |
---|
39 | |
---|
40 | delete vhdl; |
---|
41 | |
---|
42 | log_end(Comparator,FUNCTION); |
---|
43 | }; |
---|
44 | |
---|
45 | }; // end namespace comparator |
---|
46 | }; // end namespace generic |
---|
47 | |
---|
48 | }; // end namespace behavioural |
---|
49 | }; // end namespace morpheo |
---|
50 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.