Operator Library: Memory
This operator facilitates the random read of the buffered data. The frame data is transferred into the operator via link I. The random read of the data can be performed by transferring addresses to ports RColA (read column address) and RRowA (read row address). The operator will use the addresses to read the frame data by the given coordinates. The resulting output frame will have the image dimensions of the address inputs. One VisualApplets resource of type RAM is required. Check 'Allocation of Device Resources' for more information. For information on the latency of the operator, see Table 46, 'Individual Latencies of the Operators in Library Memory'.
The FrameBufferRandomRead (frame buffer random read) operator buffers the image stream in the Frame Grabber RAM (DRAM). One VisualApplets resource of type RAM is required.
该算子有两种状态:
-
Write State: Input images are stored in the buffer. The operator works like a FIFO. If enough memory is available, multiple images can be stored in the buffer.
-
Read State: After an image has been fully stored in the memory, the memory is read-out using the addresses given at the inputs RColA and RRowA. The number of addresses and address link image dimensions define the image output width and height.
The image data input and the address inputs are not synchronous to each other. They may have different image dimensions. Both address inputs RColA and RRowA have to be O-synchronous.
Please note the timing of the input links. The address inputs must not be sourced by the same operator as the data link input I without buffering. This is because while writing the image data into the operator, no addresses to read the current frame can be accepted. Only if the frame is fully stored into the buffer, addresses can be accepted. In many cases, the operator CreateBlankImage is used to generate the images for the addresses.
The operator uses large non-FPGA memory. If only small frames or lines have to be stored consider using operators FrameMemoryRandomRd or LineMemoryRandomRd.
To measure the fill level of the buffer the operator provides 2 parameters: FillLevel and Overflow. FillLevel shows the percentage fill level of the RAM. The Overflow parameter is set to 1 when FillLevel is close to or is 100% and the next image to be stored in the buffer will exceed the RAM capacity. In case of an overflow, input frames are discarded. Users have to poll for the overflow parameter. As the duration of the overflow state can be very short it is possible that it is in between of a polling cycle of the operator.
Parameter InfiniteSource is used to specify if the operator is directly connected to a camera or is sequenced with other memory operators. Check 'Infinite Sources / Connecting Cameras' for more information.
算子限制
-
不支持空帧。
-
不支持具有不同行长的图像。
-
The Parallelism on the address ports has to be set to 2.
-
I.MaxImgWidth * I.MaxImgHeight must not exceed the available RAM size: 2^RamAddressWidth.
通过使用 Frame Grabber RAM (DRAM) 的算子的理论带宽 [bits/second] 根据以下公式计算:

然而,由于 DRAM 效率,实际带宽总是小于理论带宽。
如果 Bit Width 和 Parallelism 的乘积等于内部 RAM Port Width,则达到穿过算子的 maximum bandwidth。
![]() |
平台特定值 |
|---|---|
|
RAM Port Width 和系统时钟是平台特定的。有关您各个平台的详细信息,请参阅 Device Resources。 |
| Property | 值 |
|---|---|
| Operator Type | M |
| 输入链路 | I, image data input RColA, read column address for the pixel at I RRowA, read row address for the pixel at I |
| Output Link | O,数据输入 |
同步和异步输入
- Synchronous Group: RColA and RRowA
- Input I is asynchronous to the group.
|
输入 Bit Width 的范围为:
The input Bit Width must not exceed the native ram data width. Check Device Resources for more information. |
|
|
列地址的 Bit Width 为: ![]() |
|
|
行地址的 Bit Width 为: ![]() |
|
|
The Parallelism on the address ports has to be set to 2 in order to use the operator in an efficient way. |
|
|
I.BitWidth x I.Kernel Columns x I.Kernel Rows <= RamDataWidth. |
|
|
I.MaxImgWidth * I.MaxImgHeight must not exceed the available RAM size: 2^RamAddressWidth. |
| RamDataWidth | |
|---|---|
| 键入 | 静态写参数 |
| 默认 | 不适用 |
| 范围 | 整数 |
|
此参数提供可在 RAM 接口上使用的数据位数。它是输入和输出的最大位数。 |
|
| RamAddressWidth | |
|---|---|
| 键入 | 静态写参数 |
| 默认 | 不适用 |
| 范围 | 整数 |
|
This parameter provides the number of address bits available. This helps to calculate the maximum allowed image dimensions and the maximum address width. |
|
| FillLevel | |
|---|---|
| 键入 | 动态读取参数 |
| 默认 | 0 |
| 范围 | [0%, 100%] |
|
This parameter provides the fill level of RAM. |
|
| Overflow | |
|---|---|
| 键入 | 动态读取参数 |
| 默认 | 0 |
| 范围 | [0, 1] |
|
此参数指示缓冲区溢出。 |
|
| InfiniteSource | |
|---|---|
| 键入 | 静态参数 |
| 默认 | 已启用 |
| 范围 | {ENABLED, DISABLED} |
|
This parameter activates support for infinite source operators like Camera operators. See 'Infinite Sources / Connecting Cameras' for more information. |
|
The use of operator FrameBufferRandomRead is shown in the following examples:
-
'Color Plane Separation Option 5 - Sequential Output with Advances Processing'
关于彩色通道分离的示例。 RGB 输入被拆分为其分量,并通过一个 DMA 通道顺序输出。 拆分操作是通过并行字收集相同分量并使用 FrameBufferRandomRead 读取来完成的。
-
'使用 FrameBufferRandomRead 进行几何变换'
示例 - 使用 FrameBufferRandomRead 进行几何变换
-
'Geometric Transformation and Distortion Correction'
示例 - 使用 PixelReplicator 进行 Geometric Transformation and Distortion Correction
-
示例 - Distortion Correction
-
示例 - Scaling A Line Scan Image
-
示例 - Scaling A Line Scan Image
-
示例 - ExposureFusion

![[注意]](../common/images/admon/note.png)








上一页

