Changes between Version 29 and Version 30 of MjpegCourse/Coproc


Ignore:
Timestamp:
Mar 25, 2009, 1:37:39 AM (15 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • MjpegCourse/Coproc

    v29 v30  
    107107 * La valeur du paramètre  EXEC_TIME doit être définie au moment où on instancie la tâche {{{idct}}} dans le TCG.
    108108{{{
    109 Task( 'idct0', 'idct',
    110       portmap = { 'output':idct_libu,
    111                   'input' :iqzz_idct },
    112       defines = { 'WIDTH':'48', 'HEIGHT':'48', 'EXEC_TIME':'64' }
    113     )
     109        idct = dsx.TaskModel.getByName('idct').getImpl(soclib.HwTask)
     110        ctrl, coproc = tg.instanciate(arch, 'idct0', 'idct0_ctrl', defines = {"EXEC_TIME":"1024",'WIDTH':"48",'HEIGHT':"48"})
     111        ctrl.addSegment('idct_ctrl', 0x73400000, 0x100, False)
     112        ctrl.vci_initiator // vgmn.to_initiator.new()
     113        ctrl.vci_target // vgmn.to_target.new()
    114114}}}
    115115 * Dans la partie déploiement, il faut déployer la tâche {{{idct}}} comme une tâche matérielle
    116116   (comme on l'a fait pour les tâches {{{ramdac}}} ou {{{tg}}}).
    117117{{{
    118 mapper.map( mapper.tcg['idct'],
    119             vci = mapper.hard['vgmn0'],
    120             address = 0x73000000 )
     118mapper.map( 'idct',
     119                       ... )
    121120}}}
    122121
     
    184183from soclib.hwtask import HwTask, MwmrCoproc, SyntheticTask
    185184
    186 hw_idct = MwmrCoproc(
    187     module = 'caba:fifo_idct',
    188     from_coproc = [ 'output:to_ctrl' ],
    189     to_coproc = [ 'input:from_ctrl' ],
    190     config = [],
    191     status = [],
    192     latency = 160, # or 576, 704, 1856
    193     word_t = 'uint32_t' )
    194185
    195186TaskModel(
    196     'idct',
    197     ports = {'input':MwmrInput(64*4),
    198              'output':MwmrOutput(64),
    199              },
    200     impls = [ SwTask( 'idct',
    201                      stack_size = 4096,
    202                      sources = [ 'idct.c' ],
    203                      defines = [ 'WIDTH', 'HEIGHT' ] ),
    204               HwTask( hw_idct ),
    205              ] )
     187        'idct',
     188        ports = {'input':MwmrInput(64*4),
     189                         'output':MwmrOutput(64),
     190                         },
     191        impls = [ SwTask( 'idct',
     192                                         stack_size = 4096,
     193                                         sources = [ 'idct.c' ],
     194                                         defines = [ 'WIDTH', 'HEIGHT' ] ),
     195#                         SyntheticTask(),
     196                          MwmrCoproc(
     197                                        module = 'caba:fifo_idct',
     198                                        from_coproc = [ 'output:to_ctrl' ],
     199                                        to_coproc = [ 'input:from_ctrl' ],
     200                                        config = [],
     201                                        status = [],
     202                                        latency = 128,
     203                                        word_t = 'uint32_t' )
     204                         ] )
    206205}}}
    207206
     
    231230}}}
    232231
    233 Cette archive devra être livrée avant le mardi 18 mars 2008, 18h00 à [MailAsim:nipo Nicolas Pouillon]
     232Cette archive devra être livrée avant le mardi 31 mars 2008, 18h00 CEST à [MailAsim:nipo Nicolas Pouillon]
    234233
    235234= Suite =