Changes between Version 5 and Version 6 of MjpegCourse/ClusteredNoirqMulti


Ignore:
Timestamp:
Mar 17, 2009, 9:08:22 AM (15 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MjpegCourse/ClusteredNoirqMulti

    v5 v6  
    77
    88def _cluster(arch, no,
    9                          with_gdb,
    109                         ncpu, nram,
    1110                         icache_lines, icache_words,
    12                          dcache_lines, dcache_words):
     11                         dcache_lines, dcache_words,
     12                         with_gdb = False ):
    1313        crossbar = arch.create('caba:vci_local_crossbar', 'lc%d'%no)
    1414
     
    1717                arch.cpu_num += 1
    1818                if with_gdb:
    19                         mips = arch.create('caba:iss_wrapper', 'mips%d_%d'%(no,i), iss_t='common:gdb_iss', gdb_iss_t = 'common:mipsel', ident = cn)
     19                        proc = dict( iss_t='common:gdb_iss', gdb_iss_t = 'common:mips32el' )
    2020                else:
    21                         mips = arch.create('caba:iss_wrapper', 'mips%d_%d'%(no,i), iss_t='common:mipsel', ident = cn)
    22                 xcache = arch.create('caba:vci_xcache', 'xcache%d_%d'%(no,i),
    23                                                    icache_lines = icache_lines,
     21                        proc = dict( iss_t='common:mips32el' )
     22                cpu = arch.create('caba:vci_xcache_wrapper', 'cpu%d_%d'%(no,i),
     23                                                   ident = cn,
     24                                                   icache_sets = icache_lines,
    2425                                                   icache_words = icache_words,
    25                                                    dcache_lines = dcache_lines,
    26                                                    dcache_words = dcache_words)
    27                 mips.dcache // xcache.dcache
    28                 mips.icache // xcache.icache
     26                                                   icache_ways = 1,
     27                                                   dcache_sets = dcache_lines,
     28                                                   dcache_words = dcache_words,
     29                                                   dcache_ways = 1,
     30                                                   **proc )
    2931
    30                 crossbar.to_initiator.new() // xcache.vci
     32                crossbar.to_initiator.new() // cpu.vci
    3133
    3234        for i in range(nram):
     
    4244
    4345def ClusteredNoirqMulti(
    44         nbcpu = [1],
    45         nbram = [1],
     46        cpu_count = [1],
     47        ram_count = [1],
    4648        min_latency = 10,
    4749        with_gdb = False,
     
    5254        arch = soclib.Architecture(
    5355                                                 cell_size = 4,
    54                                                  plen_size = 1,
     56                                                 plen_size = 9,
    5557                                                 addr_size = 32,
    5658                                                 rerror_size = 1,
     
    6971                          srcid_bits = [4,4],
    7072                          cacheability_mask = 0xc00000)
    71         arch.create('common:elf_loader', 'loader')
     73        arch.create('common:loader', 'loader')
    7274
    7375        vgmn = arch.create('caba:vci_vgmn', 'vgmn0', min_latency = min_latency, fifo_depth = 8)
    7476
    75         for no, ncpu, nram in zip(range(len(nbcpu)), nbcpu, nbram):
     77        for no, (ncpu, nram) in enumerate(zip(cpu_count, ram_count)):
    7678                lc = _cluster(
    7779                        arch, no,