Last change
on this file since 123 was
112,
checked in by rosiere, 15 years ago
|
1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone
|
-
Property svn:keywords set to
Id
|
File size:
759 bytes
|
Rev | Line | |
---|
[112] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id: Divider_vhdl.cpp 112 2009-03-18 22:36:26Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Generic/Divider/include/Divider.h" |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | namespace generic { |
---|
| 15 | namespace divider { |
---|
| 16 | |
---|
| 17 | |
---|
| 18 | #undef FUNCTION |
---|
| 19 | #define FUNCTION "Divider::vhdl" |
---|
| 20 | void Divider::vhdl (void) |
---|
| 21 | { |
---|
| 22 | log_begin(Divider,FUNCTION); |
---|
| 23 | |
---|
| 24 | Vhdl * vhdl = new Vhdl (_name); |
---|
| 25 | |
---|
| 26 | _interfaces->set_port(vhdl); |
---|
| 27 | _component->vhdl_instance(vhdl); |
---|
| 28 | |
---|
| 29 | vhdl_declaration (vhdl); |
---|
| 30 | vhdl_body (vhdl); |
---|
| 31 | |
---|
| 32 | vhdl->generate_file(); |
---|
| 33 | |
---|
| 34 | delete vhdl; |
---|
| 35 | |
---|
| 36 | log_end(Divider,FUNCTION); |
---|
| 37 | }; |
---|
| 38 | |
---|
| 39 | }; // end namespace divider |
---|
| 40 | }; // end namespace generic |
---|
| 41 | |
---|
| 42 | }; // end namespace behavioural |
---|
| 43 | }; // end namespace morpheo |
---|
| 44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.