| 182 | | une déclaration de coprocesseur matériel `HwTask( IdctCoproc )`, et relancez la simulation |
| 183 | | de cette nouvelle plate-forme, pour les 4 valeurs possibles du paramètre. |
| | 180 | une déclaration de coprocesseur matériel: |
| | 181 | |
| | 182 | {{{ |
| | 183 | from soclib.hwtask import HwTask, MwmrCoproc, SyntheticTask |
| | 184 | |
| | 185 | hw_idct = MwmrCoproc( |
| | 186 | module = 'caba:fifo_idct', |
| | 187 | from_coproc = [ 'output:to_ctrl' ], |
| | 188 | to_coproc = [ 'input:from_ctrl' ], |
| | 189 | config = [], |
| | 190 | status = [], |
| | 191 | latency = 160, # or 576, 704, 1856 |
| | 192 | word_t = 'uint32_t' ) |
| | 193 | |
| | 194 | TaskModel( |
| | 195 | 'idct', |
| | 196 | ports = {'input':MwmrInput(64*4), |
| | 197 | 'output':MwmrOutput(64), |
| | 198 | }, |
| | 199 | impls = [ SwTask( 'idct', |
| | 200 | stack_size = 4096, |
| | 201 | sources = [ 'idct.c' ], |
| | 202 | defines = [ 'WIDTH', 'HEIGHT' ] ), |
| | 203 | HwTask( hw_idct ), |
| | 204 | ] ) |
| | 205 | }}} |
| | 206 | |
| | 207 | Relancez la simulation de cette nouvelle plate-forme, pour les 4 valeurs possibles du paramètre. |