Last change
on this file since 78 was
78,
checked in by rosiere, 16 years ago
|
Add :
- Execute_loop (must be test systemC)
- Prediction
- Direction : predifined scheme
- Branch Target Buffer
- iFetch_unit
- ifetch_queue
- pc management
- Decod_unit
- coming soon : support for custom operation
- Rename_unit
- RAT
- Free_list
- Dependence RAW check
- Load store unit pointer
- New Environnement (hierarchy_memory will remove in a next version)
Modif :
- Manage Custom Operation
- All component in execute_loop to use the new statistics management
Not Finish :
- Return Address Stack
- Environnement
|
File size:
1.6 KB
|
Rev | Line | |
---|
[76] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/@DIRECTORY/include/@COMPONENT.h" |
---|
| 9 | #include "Behavioural/include/Allocation.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | @NAMESPACE_BEGIN |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #undef FUNCTION |
---|
| 17 | #define FUNCTION "@COMPONENT::allocation" |
---|
| 18 | void @COMPONENT::allocation ( |
---|
| 19 | #ifdef STATISTICS |
---|
| 20 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
| 21 | #else |
---|
| 22 | void |
---|
| 23 | #endif |
---|
| 24 | ) |
---|
| 25 | { |
---|
| 26 | log_printf(FUNC,@COMPONENT,FUNCTION,"Begin"); |
---|
| 27 | |
---|
| 28 | _component = new Component (_usage); |
---|
| 29 | |
---|
| 30 | Entity * entity = _component->set_entity (_name |
---|
| 31 | ,"@COMPONENT" |
---|
| 32 | #ifdef POSITION |
---|
| 33 | ,COMBINATORY |
---|
| 34 | #endif |
---|
| 35 | ); |
---|
| 36 | |
---|
| 37 | _interfaces = entity->set_interfaces(); |
---|
[78] | 38 | |
---|
| 39 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 40 | { |
---|
[76] | 41 | Interface * interface = _interfaces->set_interface("" |
---|
| 42 | #ifdef POSITION |
---|
| 43 | ,IN |
---|
| 44 | ,SOUTH, |
---|
| 45 | "Generalist interface" |
---|
| 46 | #endif |
---|
| 47 | ); |
---|
[78] | 48 | |
---|
| 49 | in_CLOCK = interface->set_signal_clk ("clock" ,1, CLOCK_VHDL_YES); |
---|
| 50 | in_NRESET = interface->set_signal_in <Tcontrol_t> ("nreset",1, RESET_VHDL_YES); |
---|
| 51 | } |
---|
| 52 | |
---|
| 53 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 54 | |
---|
| 55 | // ~~~~~[ Instanciation ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 56 | std::string src,dest; |
---|
[76] | 57 | |
---|
| 58 | |
---|
[78] | 59 | // ~~~~~[ Others ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 60 | _component->test_map(); |
---|
[76] | 61 | |
---|
| 62 | #ifdef POSITION |
---|
| 63 | _component->generate_file(); |
---|
| 64 | #endif |
---|
| 65 | |
---|
| 66 | log_printf(FUNC,@COMPONENT,FUNCTION,"End"); |
---|
| 67 | }; |
---|
| 68 | |
---|
| 69 | @NAMESPACE_END |
---|
| 70 | }; // end namespace behavioural |
---|
| 71 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.