Changes between Version 18 and Version 19 of DsxDocumentation
- Timestamp:
- Feb 10, 2008, 7:46:49 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DsxDocumentation
v18 v19 96 96 As 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, ...). 97 97 {{{ 98 task_model =TaskModel( 'model_name',98 TaskModel( 'model_name', 99 99 ports = { 'inport' : MwmrInput(32) , 100 100 'ouport' : MwmrOutput(64) , … … 167 167 168 168 A 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. 170 170 {{{ 171 171 my_task = Task( 'task_name', 172 task_model,172 'model_name' , 173 173 portmap = { 'port_name' : my_channel, 'barrier_name' : my_barrier, ... } ) 174 174 }}} … … 185 185 my_tcg = Tcg( 186 186 Task( 'task_name1, 187 Task_Model1,187 'model_name1', 188 188 portmap = { ’in’:input, ’out’:output } ), 189 189 Task( 'task2', 190 Task_Model2,190 'model_name2', 191 191 portmap = { ’in’:input2, ’out’:output2 } ) 192 192 ... )