Changes between Version 10 and Version 11 of SrlApi


Ignore:
Timestamp:
Jan 29, 2008, 10:55:11 AM (16 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SrlApi

    v10 v11  
    1313== Mwmr Communication Channels ==
    1414
    15  * {{{srl_mwmr_t channel = GET_ARG(port_name)}}} defines a local variable associated to a MWMR channel acces port. The {{{port_name}}} argument corresponds to the port name defined in the task model defined in the DSX/L description.
     15 * {{{srl_mwmr_t channel = GET_ARG(port_name)}}} defines a local variable associated to a MWMR channel acces port. The ''port_name'' argument corresponds to the port name defined in the task model defined in the DSX/L description.
    1616
    17  * {{{srl_mwmr_read(channel, local_buffer, size)}}} reads {{{size}}} 32-bit words from the MWMR channel to the local buffer. The {{{local_buffer}}} argument is a {{{void*}}}. The {{{size}}} argument must be a multiple of the channel width.
     17 * {{{srl_mwmr_read(channel, local_buffer, size)}}} reads ''size'' 32-bit words from the MWMR channel to the local buffer. The ''local_buffer'' argument is a void*. The size argument must be a multiple of the channel width,
     18and the the channel width must be a multiple of 4 bytes.
    1819
    19  * {{{srl_mwmr_write(channel, local_buffer, size)}}} writes {{{size}}} 32-bit words from the local buffer to the MWMR channel. The {{{local_buffer}}} argument is a {{{void*}}}. The {{{size}}} argument must be a multiple of the channel width.
     20 * {{{srl_mwmr_write(channel, local_buffer, size)}}} writes ''size'' 32-bit words from the local buffer to the MWMR channel. The ''local_buffer'' argument is a void*. The ''size'' argument must be a multiple of the channel width,
     21and the channel width must be a multiple of 4 bytes.
    2022
    2123== Locks ==
    2224
    23  * {{{srl_lock_t lock = GET_ARG(port_name)}}} defines a local variable associated to a lock. The {{{port_name}}} argument corresponds to the port name defined in the task model defined in the DSX/L description.
     25 * {{{srl_lock_t lock = GET_ARG(port_name)}}} defines a local variable associated to a lock. The ''port_name'' argument corresponds to the port name defined in the task model defined in the DSX/L description.
    2426
    2527 * {{{srl_lock_lock( lock )}}} takes a lock, waiting if necessary
     
    2830== Barriers ==
    2931
    30  * {{{srl_barrier_t barrier = GET_ARG(port_name)}}} defines a local variable associated to a barrier. The {{{port_name}}} argument corresponds to the port name defined in the task model defined in the DSX/L description.
     32 * {{{srl_barrier_t barrier = GET_ARG(port_name)}}} defines a local variable associated to a barrier. The ''port_name'' argument corresponds to the port name defined in the task model defined in the DSX/L description.
    3133
    3234 * {{{srl_barrier_wait( barrier )}}} waits for a barrier-global synchronization
     
    5557
    5658 * {{{srl_busy_cycles( N )}}} tells the simulation environment the simulation should run at least N cycles while in this call. This makes sense only for virtually synthetised tasks, otherwise, this call is a noop.
    57  * {{{srl_mwmr_config( controller_name, reg_n, value )}}} puts value {{{value}}} in config register {{{reg_n}}} of specified controller
    58  * {{{srl_mwmr_status( controller_name, reg_n )}}} reads status register {{{reg_n}}} of specified controller, returns a int32_t
    59  * {{{srl_assert( cond )}}} checks {{{cond}}} is true, fatally fails otherwise
     59 * {{{srl_mwmr_config( controller_name, reg_n, value )}}} puts value ''value'' in the config register ''reg_n'' of specified controller
     60 * {{{srl_mwmr_status( controller_name, reg_n )}}} reads status register ''reg_n'' of specified controller, returns a int32_t
     61 * {{{srl_assert( cond )}}} checks if ''cond'' is true, and fatally fails otherwise