Changes between Version 2 and Version 3 of Component/Vci Multi Ram


Ignore:
Timestamp:
May 16, 2007, 4:19:22 PM (17 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/Vci Multi Ram

    v2 v3  
    3838     sc_module_name name,                     // Instance name
    3939     const soclib::common::IntTab &index,     //  Target index
    40      const soclib::common::MappingTable &mt,  // Mapping Table
    41      soclib::common::ElfLoader &loader);
     40     const soclib::common::MappingTable &mt)  // Mapping Table
    4241}}}
    4342
     
    4746 * sc_in<bool> '''p_clk''' : Global system clock
    4847 * soclib::common::!VciTarget<vci_param> '''p_vci''' : The VCI port
     48
     49== Usage ==
     50
     51{{{
     52    // You may create a loader, loading "a.out"
     53    soclib::common::ElfLoader loader( "a.out" );
     54
     55    // You may create a MultiRam, using the loaded object
     56    soclib::caba::VciMultiRam ram0( "ram0", soclib::common::IntTab(2), mapping_table, loader );
     57}}}
     58
     59On reset, any loadable segment in ELF file will be loaded at matched location.