Changes between Version 2 and Version 3 of Component/Vci Multi Ram
- Timestamp:
- May 16, 2007, 4:19:22 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Component/Vci Multi Ram
v2 v3 38 38 sc_module_name name, // Instance name 39 39 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 42 41 }}} 43 42 … … 47 46 * sc_in<bool> '''p_clk''' : Global system clock 48 47 * 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 59 On reset, any loadable segment in ELF file will be loaded at matched location.