- Timestamp:
- Sep 18, 2010, 5:04:46 PM (14 years ago)
- Location:
- trunk/platforms/dsx/v1_1cluster_phys_dma
- Files:
-
- 3 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/dsx/v1_1cluster_phys_dma/cluster.py
r93 r95 46 46 wti_count = 4, 47 47 irq_count = 4) 48 dma = self.create_dma( addr = 0xd1200000, burst_size = 16) 48 dma = self.create_dma( addr = 0xd1200000, burst_size = 64) 49 fb = self.create_fb( addr = 0xe2200000, width = 320, 50 height = 200, 51 subsampling = 422) 49 52 50 53 tty.irq[0] // xicu.hwi[0] … … 52 55 self.cpu[i].irq[0] // xicu.irq[i] 53 56 dma.irq // xicu.hwi[1] 57 54 58 55 59 def create_dma(self, addr, burst_size): … … 61 65 return dma 62 66 67 def create_fb(self, addr, width, height, subsampling): 68 name = 'fb%d'%self.cluster_no 69 fb = self.pf.create('caba:vci_framebuffer', name, width = width, 70 height = height, 71 subsampling = subsampling) 72 self.ringp.to_target.new() // fb.vci 73 fb.addSegment(name, address = addr, size = width * height * 2, cacheable = False) 74 return fb 63 75 64 76 def create_tty(self, addr, tty_count = 1): -
trunk/platforms/dsx/v1_1cluster_phys_dma/v1_1cluster_phys.py
r93 r95 12 12 self.pf = soclib.Architecture(cell_size = 4, 13 13 plen_size = 8, 14 addr_size = 64,14 addr_size = 32, 15 15 rerror_size = 1, 16 16 clen_size = 1, … … 102 102 if __name__ == '__main__': 103 103 import sys 104 cpus = 4104 cpus = 1 105 105 if len(sys.argv) > 1: 106 106 cpus = int(sys.argv[1])
Note: See TracChangeset
for help on using the changeset viewer.