| 1 | [wiki:Component SocLib Components General Index] |
| 2 | |
| 3 | = !VciIcu = |
| 4 | |
| 5 | == 1) Functional Description == |
| 6 | |
| 7 | This VCI target is a memory mapped peripheral implementing |
| 8 | a vectorized interrupt controller, a timer controller, and an Inter-processor interrupt controller. |
| 9 | |
| 10 | It can concentrate up to |
| 11 | * 32 independent interrupt lines |
| 12 | * 32 independent timers |
| 13 | * 32 IPI registers |
| 14 | multiplexing to up to 32 output lines |
| 15 | |
| 16 | |
| 17 | Complete specification is in [attachment:xicu-1.0.pdf]. |
| 18 | |
| 19 | == 2) Component definition & usage == |
| 20 | |
| 21 | source:trunk/soclib/module/infrastructure_component/interrupt_infrastructure/vci_xicu/caba/metadata/vci_xicu.sd |
| 22 | |
| 23 | See [wiki:SoclibCc/VciParameters SoclibCc/VciParameters] |
| 24 | {{{ |
| 25 | Uses( 'vci_xicu', **vci_parameters ) |
| 26 | }}} |
| 27 | |
| 28 | == 3) CABA Implementation == |
| 29 | |
| 30 | === CABA sources === |
| 31 | |
| 32 | * interface : source:trunk/soclib/soclib/module/infrastructure_component/interrupt_infrastructure/vci_xicu/caba/source/include/vci_xicu.h |
| 33 | * implementation : source:trunk/soclib/soclib/module/infrastructure_component/interrupt_infrastructure/vci_xicu/caba/source/src/vci_xicu.cpp |
| 34 | |
| 35 | === CABA Constructor parameters === |
| 36 | {{{ |
| 37 | VciXicu( |
| 38 | sc_module_name name, // Component Name |
| 39 | const soclib::common::InTab &index, // Target index |
| 40 | const soclib::common::MappingTable &mt, // Mapping Table |
| 41 | size_t pti_count, // Number of programmeble timers |
| 42 | size_t hwi_count, // Number of hardware interrupt lines |
| 43 | size_t wti_count, // Number of write-triggerred interrupts (IPI) |
| 44 | size_t irq_count); // Number of output lines |
| 45 | }}} |
| 46 | |
| 47 | === CABA Ports === |
| 48 | |
| 49 | * sc_in<bool> '''p_clk''' : Global system clock |
| 50 | * sc_in<bool> '''p_resetn''' : Global system reset |
| 51 | * soclib::caba::!VciTarget<vci_param> '''p_vci''' : VCI port |
| 52 | * sc_out<bool> *'''p_irq''' : Output interrupt ports (irq_count) |
| 53 | * sc_in<bool> *'''p_hwi''' : Input interrupts ports (hwi_count) |