Changes between Version 17 and Version 18 of Component/Vci Block Device


Ignore:
Timestamp:
Nov 21, 2009, 2:28:59 PM (14 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/Vci Block Device

    v17 v18  
    55== 1) Functional Description ==
    66
    7 This VCI component is both a target and an initiator.
     7This component emulate a -simplified - disk controller, that can perform data
     8transfers between a file belonging to the host system and a buffer in the memory
     9of the virtual system. The file name is an argument of the constructor,
     10as well as the block sie (in bytes), and the simulated access latency (in cycles).
     11As most block devices, this VCI component has a DMA capability, and is both a target and an initiator.
    812 * It is addressed as a target to be configured for a transfer.
    913 * It is acting as an initiator to do the transfer
    1014
    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.
     15There is only one block device handled by this component. Both read and write
     16transfers are supported.
     17An IRQ is optionally asserted when transfer is completed.
    1318
    1419This hardware component checks for segmentation violation, and can be used
     
    8590     const soclib::common::IntTab &tgtid,    // Target index
    8691     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)
    8894}}}
    8995
    9096=== CABA Ports ===
    9197
    92  * sc_in<bool> '''p_resetn''' : Global system reset
    93  * sc_in<bool> '''p_clk''' : Global system clock
    94  * soclib::caba::!VciTarget<vci_param> '''p_vci_target''' : The VCI target port
    95  * soclib::caba::!VciInitiator<vci_param> '''p_vci_initiator''' : The VCI initiator port
    96  * sc_out<bool> '''p_irq''' : Interrupt port
     98 * '''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
    97103
    98104== 4) TLM-DT Implementation ==