Changes between Version 22 and Version 23 of DsxDocumentation


Ignore:
Timestamp:
Feb 27, 2008, 6:05:11 PM (16 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DsxDocumentation

    v22 v23  
    180180=== C7) TCG definition ===
    181181
    182 The Task and Communication Graph must be defined : 
     182The Task and Communication Graph must be defined. The ''portmap'' construct is
     183a list of assignments : the first argument is a port name. The second argument is the ressource,
     184that can be a communication channel, a barrier, a lock, etc.
    183185{{{
    184186my_tcg = Tcg(
    185              Task(  'task_name1',
    186                      'model_name1',
    187                      portmap = { ’in’:input, ’out’:output } ),
    188              Task(  'task2',
    189                      'model_name2',
    190                      portmap = { ’in’:input2, ’out’:output2 } )
    191               ... )
     187    Task(  'task_name1',   'model_name1',
     188                portmap = { ’in':channelA,
     189                                       'out':channelB } ) ,
     190    Task(  'task_name2',   'model_name2',
     191                portmap = { ’in':channelB,
     192                                       'out':channelC } ) ,
     193      ... )
    192194}}}
    193195