Changes between Version 29 and Version 30 of MjpegCourse/Coproc
- Timestamp:
- Mar 25, 2009, 1:37:39 AM (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MjpegCourse/Coproc
v29 v30 107 107 * La valeur du paramètre EXEC_TIME doit être définie au moment où on instancie la tâche {{{idct}}} dans le TCG. 108 108 {{{ 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() 114 114 }}} 115 115 * Dans la partie déploiement, il faut déployer la tâche {{{idct}}} comme une tâche matérielle 116 116 (comme on l'a fait pour les tâches {{{ramdac}}} ou {{{tg}}}). 117 117 {{{ 118 mapper.map( mapper.tcg['idct'], 119 vci = mapper.hard['vgmn0'], 120 address = 0x73000000 ) 118 mapper.map( 'idct', 119 ... ) 121 120 }}} 122 121 … … 184 183 from soclib.hwtask import HwTask, MwmrCoproc, SyntheticTask 185 184 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, 1856193 word_t = 'uint32_t' )194 185 195 186 TaskModel( 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 ] ) 206 205 }}} 207 206 … … 231 230 }}} 232 231 233 Cette archive devra être livrée avant le mardi 18 mars 2008, 18h00à [MailAsim:nipo Nicolas Pouillon]232 Cette archive devra être livrée avant le mardi 31 mars 2008, 18h00 CEST à [MailAsim:nipo Nicolas Pouillon] 234 233 235 234 = Suite =