Changes between Version 5 and Version 6 of MjpegCourse/ClusteredNoirqMulti
- Timestamp:
- Mar 17, 2009, 9:08:22 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MjpegCourse/ClusteredNoirqMulti
v5 v6 7 7 8 8 def _cluster(arch, no, 9 with_gdb,10 9 ncpu, nram, 11 10 icache_lines, icache_words, 12 dcache_lines, dcache_words): 11 dcache_lines, dcache_words, 12 with_gdb = False ): 13 13 crossbar = arch.create('caba:vci_local_crossbar', 'lc%d'%no) 14 14 … … 17 17 arch.cpu_num += 1 18 18 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' ) 20 20 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, 24 25 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 ) 29 31 30 crossbar.to_initiator.new() // xcache.vci32 crossbar.to_initiator.new() // cpu.vci 31 33 32 34 for i in range(nram): … … 42 44 43 45 def ClusteredNoirqMulti( 44 nbcpu= [1],45 nbram= [1],46 cpu_count = [1], 47 ram_count = [1], 46 48 min_latency = 10, 47 49 with_gdb = False, … … 52 54 arch = soclib.Architecture( 53 55 cell_size = 4, 54 plen_size = 1,56 plen_size = 9, 55 57 addr_size = 32, 56 58 rerror_size = 1, … … 69 71 srcid_bits = [4,4], 70 72 cacheability_mask = 0xc00000) 71 arch.create('common: elf_loader', 'loader')73 arch.create('common:loader', 'loader') 72 74 73 75 vgmn = arch.create('caba:vci_vgmn', 'vgmn0', min_latency = min_latency, fifo_depth = 8) 74 76 75 for no, ncpu, nram in zip(range(len(nbcpu)), nbcpu, nbram):77 for no, (ncpu, nram) in enumerate(zip(cpu_count, ram_count)): 76 78 lc = _cluster( 77 79 arch, no,