| 1 | #include "../include/Environment.h" | 
|---|
| 2 |  | 
|---|
| 3 | namespace environment { | 
|---|
| 4 |  | 
|---|
| 5 | std::ostream& operator<< (std::ostream& output, Environment &x) | 
|---|
| 6 | { | 
|---|
| 7 | output << "<" << x.name << ">" << std::endl | 
|---|
| 8 | << " * nb_iport : " << x.param->nb_iport << std::endl | 
|---|
| 9 | << " * nb_dport : " << x.param->nb_dport << std::endl | 
|---|
| 10 | ; | 
|---|
| 11 |  | 
|---|
| 12 | for (uint32_t i=0; i<x.param->nb_entity; i++) | 
|---|
| 13 | output << " * iaccess_nb_context       ["<<i<<"] : " << x.param->iaccess_nb_context     [i] << std::endl | 
|---|
| 14 | << " * iaccess_nb_instruction   ["<<i<<"] : " << x.param->iaccess_nb_instruction [i] << std::endl | 
|---|
| 15 | << " * iaccess_nb_packet        ["<<i<<"] : " << x.param->iaccess_nb_packet      [i] << std::endl | 
|---|
| 16 | << " * iaccess_size_address     ["<<i<<"] : " << x.param->iaccess_size_address   [i] << std::endl | 
|---|
| 17 | << " * iaccess_size_instruction ["<<i<<"] : " << x.param->iaccess_size_instruction [i] << std::endl | 
|---|
| 18 | ; | 
|---|
| 19 |  | 
|---|
| 20 | for (uint32_t i=0; i<x.param->nb_entity; i++) | 
|---|
| 21 | output << " * daccess_nb_context       ["<<i<<"] : " << x.param->daccess_nb_context     [i] << std::endl | 
|---|
| 22 | << " * daccess_nb_packet        ["<<i<<"] : " << x.param->daccess_nb_packet      [i] << std::endl | 
|---|
| 23 | << " * daccess_size_address     ["<<i<<"] : " << x.param->daccess_size_address   [i] << std::endl | 
|---|
| 24 | << " * daccess_size_data        ["<<i<<"] : " << x.param->daccess_size_data      [i] << std::endl | 
|---|
| 25 | ; | 
|---|
| 26 |  | 
|---|
| 27 | output << "  -----[ component_data ]-----------------------------------" << std::endl; | 
|---|
| 28 | output << *x.component_data << std::endl; | 
|---|
| 29 |  | 
|---|
| 30 | output << "  -----[ component_cache ]----------------------------------" << std::endl; | 
|---|
| 31 | output << *x.component_cache; | 
|---|
| 32 |  | 
|---|
| 33 | output << "  -----[ component_buffer_irsp ]----------------------------" << std::endl; | 
|---|
| 34 | for (uint32_t i = 0; i < x.param->nb_entity; i++) | 
|---|
| 35 | output << *x.component_buffer_irsp [i]; | 
|---|
| 36 |  | 
|---|
| 37 | output << "  -----[ component_buffer_drsp ]----------------------------" << std::endl; | 
|---|
| 38 | for (uint32_t i = 0; i < x.param->nb_entity; i++) | 
|---|
| 39 | output << *x.component_buffer_drsp [i]; | 
|---|
| 40 |  | 
|---|
| 41 | output << "  -----[ component_ramlock ]--------------------------------" << std::endl; | 
|---|
| 42 | output << "  * nb_component_ramlock : " << x.param->nb_component_ramlock << std::endl; | 
|---|
| 43 | for (uint32_t it = 0; it < x.param->nb_component_ramlock; it++) | 
|---|
| 44 | output << *x.component_ramlock [it]; | 
|---|
| 45 |  | 
|---|
| 46 | output << "  -----[ component_tty ]------------------------------------" << std::endl; | 
|---|
| 47 | output << "  * nb_component_tty     : " << x.param->nb_component_tty     << std::endl; | 
|---|
| 48 | for (uint32_t it = 0; it < x.param->nb_component_tty    ; it++) | 
|---|
| 49 | output << *x.component_tty     [it]; | 
|---|
| 50 |  | 
|---|
| 51 | output << *x.component_sim2os; | 
|---|
| 52 |  | 
|---|
| 53 | return output; | 
|---|
| 54 |  | 
|---|
| 55 | } | 
|---|
| 56 | }; | 
|---|