Last change
on this file since 112 was
82,
checked in by rosiere, 16 years ago
|
- support locale (now must "just" translate)
- update all component with new test format
- update all component with usage
- New component : decod queue and prediction_unit
|
File size:
1.5 KB
|
Line | |
---|
1 | /* |
---|
2 | * $Id$ |
---|
3 | * |
---|
4 | * [ Description ] |
---|
5 | * |
---|
6 | */ |
---|
7 | |
---|
8 | #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" |
---|
9 | #include "Behavioural/include/Allocation.h" |
---|
10 | #include "Common/include/Max.h" |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | @NAMESPACE_BEGIN |
---|
15 | |
---|
16 | |
---|
17 | #undef FUNCTION |
---|
18 | #define FUNCTION "@COMPONENT::allocation" |
---|
19 | void @COMPONENT::allocation ( |
---|
20 | #ifdef STATISTICS |
---|
21 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
22 | #else |
---|
23 | void |
---|
24 | #endif |
---|
25 | ) |
---|
26 | { |
---|
27 | log_begin(@COMPONENT,FUNCTION); |
---|
28 | |
---|
29 | _component = new Component (_usage); |
---|
30 | |
---|
31 | Entity * entity = _component->set_entity (_name |
---|
32 | ,"@COMPONENT" |
---|
33 | #ifdef POSITION |
---|
34 | ,COMBINATORY |
---|
35 | #endif |
---|
36 | ); |
---|
37 | |
---|
38 | _interfaces = entity->set_interfaces(); |
---|
39 | |
---|
40 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
41 | { |
---|
42 | Interface * interface = _interfaces->set_interface("" |
---|
43 | #ifdef POSITION |
---|
44 | ,IN |
---|
45 | ,SOUTH, |
---|
46 | _("Generalist interface") |
---|
47 | #endif |
---|
48 | ); |
---|
49 | |
---|
50 | in_CLOCK = interface->set_signal_clk ("clock" ,1, CLOCK_VHDL_YES); |
---|
51 | in_NRESET = interface->set_signal_in <Tcontrol_t> ("nreset",1, RESET_VHDL_YES); |
---|
52 | } |
---|
53 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
54 | |
---|
55 | #ifdef POSITION |
---|
56 | if (usage_is_set(_usage,USE_POSITION)) |
---|
57 | _component->generate_file(); |
---|
58 | #endif |
---|
59 | |
---|
60 | log_end(@COMPONENT,FUNCTION); |
---|
61 | }; |
---|
62 | |
---|
63 | @NAMESPACE_END |
---|
64 | }; // end namespace behavioural |
---|
65 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.