Changes between Version 6 and Version 7 of Component/Vci Multi Ram


Ignore:
Timestamp:
May 27, 2007, 6:29:15 PM (17 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/Vci Multi Ram

    v6 v7  
    3535== Constructor parameters ==
    3636
    37  * Elf-initialized !MultiRam:
    38 {{{
    39 VciMultiRam(
    40      sc_module_name name,                     // Instance name
    41      const soclib::common::IntTab &index,     //  Target index
    42      const soclib::common::MappingTable &mt,  // Mapping Table
    43      soclib::common::ElfLoader &loader);
    44 }}}
    45 
    4637 * Uninitialized !MultiRam:
    4738{{{
     
    5243}}}
    5344
     45 * Elf-Initialized !MultiRam:
     46You may load a ''a.out'' binary file, by creating a loader
     47{{{
     48soclib::common::ElfLoader loader( "a.out" );
     49VciMultiRam(
     50     sc_module_name name,                     // Instance name
     51     const soclib::common::IntTab &index,     //  Target index
     52     const soclib::common::MappingTable &mt,  // Mapping Table
     53     soclib::common::ElfLoader &loader);
     54}}}
     55On reset, any loadable segment in ELF file will be reloaded
     56.
    5457== Ports ==
    5558
    56  * sc_in<bool> '''p_resetn''' : Global system reset
    57  * sc_in<bool> '''p_clk''' : Global system clock
     59 * sc_in<bool> '''p_resetn''' : hardware reset
     60 * sc_in<bool> '''p_clk''' : clock
    5861 * soclib::common::!VciTarget<vci_param> '''p_vci''' : The VCI port
    59 
    60 == Usage ==
    61 
    62 {{{
    63     // You may create a loader, loading "a.out"
    64     soclib::common::ElfLoader loader( "a.out" );
    65 
    66     // You may create a MultiRam, using the loaded object
    67     soclib::caba::VciMultiRam ram0( "ram0", soclib::common::IntTab(2), mapping_table, loader );
    68 }}}
    69 
    70 On reset, any loadable segment in ELF file will be loaded at matched location.