Changes between Version 23 and Version 24 of DsxDocumentation
- Timestamp:
- Feb 29, 2008, 6:42:54 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DsxDocumentation
v23 v24 115 115 1. update the status of the MWMR and release the lock (4-words WRITE access). 116 116 117 Any data transfer to or from a MWMR channel mut be an integer number of items. The item width is an118 intrinsic property of the channel. It is defined as a number of bytes, and itdefines the channel ''width''.117 Any data transfer to or from a MWMR channel mut be an integer number of items. The item is a number 118 of bytes, and defines the channel ''width''. 119 119 The channel ''depth'' is a number of items, and defines the total channel capacity. 120 For performances reasons the channel ''width'' itselfmust be a multiple of 4 bytes.120 For performances reasons the channel ''width'' must be a multiple of 4 bytes. 121 121 {{{ 122 122 my_channel = Mwmr( 'channel_name', width, depth ) … … 343 343 # For a MWMR channel, 4 software elements must be placed 344 344 my_mapper.map( my_channel, 345 status = 'data0', # The channel status is placed in segment seg_data346 desc = 'data1', # The channel descriptor is placed in segment seg_readonly347 buffer = 'data 1' ) # The channel buffer is placed in segment seg_data345 status = 'data0', # The channel status is placed in segment data0 346 desc = 'data1', # The channel descriptor is placed in segment data1 347 buffer = 'data2' ) # The channel buffer is placed in segment data2 348 348 349 349 # for a software task, 4 software objects must be placed 350 350 my_mappe.map( my_task, 351 desc = 'data0', # The task descriptor is placed in segment seg_readonly352 status = 'data1', # The task state is placed in segment seg_data353 stack = 'data 0', # The private task stack is placed in segment seg_stack354 run = 'proc0' ) # task will be running on processor no0351 desc = 'data0', # The task descriptor is placed in segment data0 352 status = 'data1', # The task state is placed in segment data1 353 stack = 'data2', # The private task stack is placed in segment data2 354 run = 'proc0' ) # task will be running on processor proc0 355 355 }}} 356 356