Changes between Version 18 and Version 19 of DsxDocumentation


Ignore:
Timestamp:
Feb 10, 2008, 7:46:49 PM (17 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DsxDocumentation

    v18 v19  
    9696As a software application can have several instances of the same task, we must distinguish the task, and the task model. A task model defines the code associated to the task, and the task interface corresponding to the system resources used by the task (MWMR communications channels, synchronization barriers, locks, memspaces, ...).
    9797{{{
    98 task_model = TaskModel( 'model_name',
     98TaskModel( 'model_name',
    9999                    ports = { 'inport' : MwmrInput(32) ,
    100100                              'ouport'  : MwmrOutput(64) ,
     
    167167
    168168A task is an instance of a task model. The constructor arguments are the task name ''task_name'', the task model
    169 ''Task_Model'' (created by the TaskModel() function), and a list of resources (MWMR channels, synchronization barriers, locks or memspaces), that must be associated to the task ports. DSX performs type checking between the port name and the associated resource.
     169''model_name'', refered by name (created by the TaskModel() function), and a list of resources (MWMR channels, synchronization barriers, locks or memspaces), that must be associated to the task ports. DSX performs type checking between the port name and the associated resource.
    170170{{{
    171171my_task = Task( 'task_name',
    172                          task_model ,
     172                         'model_name' ,
    173173                         portmap = { 'port_name' : my_channel, 'barrier_name' : my_barrier, ... } )
    174174}}}
     
    185185my_tcg = Tcg(
    186186             Task(  'task_name1,
    187                      Task_Model1,
     187                     'model_name1',
    188188                     portmap = { ’in’:input, ’out’:output } ),
    189189             Task(  'task2',
    190                      Task_Model2,
     190                     'model_name2',
    191191                     portmap = { ’in’:input2, ’out’:output2 } )
    192192              ... )