Changes between Version 17 and Version 18 of Component/Vci Block Device
- Timestamp:
- Nov 21, 2009, 2:28:59 PM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Component/Vci Block Device
v17 v18 5 5 == 1) Functional Description == 6 6 7 This VCI component is both a target and an initiator. 7 This component emulate a -simplified - disk controller, that can perform data 8 transfers between a file belonging to the host system and a buffer in the memory 9 of the virtual system. The file name is an argument of the constructor, 10 as well as the block sie (in bytes), and the simulated access latency (in cycles). 11 As most block devices, this VCI component has a DMA capability, and is both a target and an initiator. 8 12 * It is addressed as a target to be configured for a transfer. 9 13 * It is acting as an initiator to do the transfer 10 14 11 There is only one block device handled by this component. It can be seen as one single ''file'', that has a storage capacity limited to 2^41^ bytes. 12 An IRQ is optionally asserted when transfer is finished. 15 There is only one block device handled by this component. Both read and write 16 transfers are supported. 17 An IRQ is optionally asserted when transfer is completed. 13 18 14 19 This hardware component checks for segmentation violation, and can be used … … 85 90 const soclib::common::IntTab &tgtid, // Target index 86 91 const std::string &filename, // mapped file, may be a host block device 87 const uint32_t block_size = 512 ); // one-block size 92 const uint32_t block_size = 512, // block size in bytes 93 const uint32_t latency = 0); // initial access time (number of cycles) 88 94 }}} 89 95 90 96 === CABA Ports === 91 97 92 * sc_in<bool>'''p_resetn''' : Global system reset93 * sc_in<bool>'''p_clk''' : Global system clock94 * soclib::caba::!VciTarget<vci_param>'''p_vci_target''' : The VCI target port95 * soclib::caba::!VciInitiator<vci_param>'''p_vci_initiator''' : The VCI initiator port96 * sc_out<bool>'''p_irq''' : Interrupt port98 * '''p_resetn''' : Global system reset 99 * '''p_clk''' : Global system clock 100 * '''p_vci_target''' : The VCI target port 101 * '''p_vci_initiator''' : The VCI initiator port 102 * '''p_irq''' : Interrupt port 97 103 98 104 == 4) TLM-DT Implementation ==