Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

OpScramnet Write Block

OpScramnet Write block


Block

Mask

Description

The OpScramnet Write block is used in a Master or Slave subsystem, along with the OpScramnet Ctrl block, to write the reflective memory buffer of a Curtiss-Wright SCRAMNet+ device. At each calculation step, it takes the signals from its Data input and places the values at the memory location starting at the address specified by the sum of the Base Address parameter and the Offset input. Each signal from the Data input corresponds to one memory unit, whose size is determined by the Memory access size parameter (one byte in this case).

Parameters

Controller and Node ID: ID of the OpScramnet Ctrl block to which the current block is associated.

Base Address: Specifies the memory offset in the global Shared Memory at which the first consecutive write is performed. This address is always in bytes.

Memory access size: Specifies the type (and size) of each memory access. The values presented on the Data input will be converted to the specified format. The following formats are supported:

byte

8 bits unsigned integer data

word

16 bits unsigned integer data

long word

32 bits unsigned integer data

float

single precision, 32 bits float data

double

double precision, 64 bits float data

Note: For the byte, word and long word memory access sizes, the values written in the reflective are rounded to the closest integer.
Note: The type of the Data input is always doubles.

Write enable: Creates an additional block input that can be used to enable or disable writings to the reflective memory buffer.

Use external offset: Creates an additional block input that can be used to specify an additional offset for the write memory address. If this option is not selected, memory is always read starting at the base address. The base address and the offset are always expressed in bytes.


Inputs

Data: Data in the shared memory will be written using the address specified in the base address plus the offset if applicable. The width of this input determines the number of values placed in the shared memory. For example, for a mux with a width of 3 and the starting address is at 0xd4000 and the memory access size is in word format with an offset of 0x00:

Mux input

Offset

1

0x00

2

0x02

3

0x04

Memory access size is in long word format:

Mux input

Offset

1

0x00

2

0x04

3

0x08

Note: For the byte, word and long word memory access sizes, the values written in the reflective are rounded to the closest integer.

Enable: Enables the write process to the shared memory. The write process is active on values equal to or greater than 1, and disabled on 0. This input is only active if the Write enable option is selected in the block parameters.

Offset: This input is available if the Use external offset checkbox is checked. This is an address offset, in bytes, added to the Base Address parameter which allows changing the writing start address.

Outputs

This block has no outputs.

Characteristics and limitations

This block has no special characteristics.

Direct Feedthrough

No

Discrete sample time

Inherited

XHP support

No

Work offline

No

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323