Changeset 95 for trunk/platforms


Ignore:
Timestamp:
Sep 18, 2010, 5:04:46 PM (14 years ago)
Author:
choichil
Message:

Platform with DMA and FB

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  
    4646                                                    wti_count = 4,
    4747                                                    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)
    4952
    5053        tty.irq[0] // xicu.hwi[0]
     
    5255            self.cpu[i].irq[0] // xicu.irq[i]
    5356        dma.irq // xicu.hwi[1]
     57       
    5458
    5559    def create_dma(self, addr, burst_size):
     
    6165        return dma
    6266
     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
    6375
    6476    def create_tty(self, addr, tty_count = 1):
  • trunk/platforms/dsx/v1_1cluster_phys_dma/v1_1cluster_phys.py

    r93 r95  
    1212        self.pf = soclib.Architecture(cell_size = 4,
    1313                                      plen_size = 8,
    14                                       addr_size = 64,
     14                                      addr_size = 32,
    1515                                      rerror_size = 1,
    1616                                      clen_size = 1,
     
    102102if __name__ == '__main__':
    103103    import sys
    104     cpus = 4
     104    cpus = 1
    105105    if len(sys.argv) > 1:
    106106        cpus = int(sys.argv[1])
Note: See TracChangeset for help on using the changeset viewer.