设备资源分配

Applets and included modules require resources. The required resources differ for each project. Mostly, the FPGA internal resources are used. An explanation of the internal resources is given in 'FPGA Resource Estimation'.

Besides the FPGA internal resources, applets require external frame grabber hardware resources as well as logic resources. Some of these resources are listed and allocated in the Device Resources dialog window, which you can open via Design → Device Resources.

Device Resource Allocation Window

Figure 137. Device Resource Allocation Window


The following table lists all types of resources.

键入 描述 Listed in Device Resources Window
CAM The camera port index 是
RAM Index of frame grabber RAM 是
DMA The DMA channel index. Both, DmaToPC and DmaFromPC operators use this resource. 是
CameraControl For Camera Link frame grabbers: The camera port index of the four camera control outputs. 是
TriggerOut Frame grabber digital outputs 没有
Signal Channel (operators TxSignalLink/RxSignalLink) Used for arbitrary signal links which are not shown in the diagram. 没有
Image Channel (operators TxImageLink/RxImageLink) Used for implementing loops into a design. 没有
Event Logic Event Name (Bit). 没有
EventSource Event source e.g. an operator. 没有

Table 6. List of Device Resources


[注意] Display of Device Resources

Not all of these device resources are listed in the Device Resources window. Some of them are automatically assigned, while others are set in the modules which use the device resource.

Some operators for microEnable 5 marathon designs use resources that are displayed, but cannot be set in the Device Resources dialog since they are controlled by the operator. These resources are grayed-out in the dialog:

Grayed-out resource CameraControl

Figure 138. Grayed-out resource CameraControl


所有资源索引只能使用一次。 此外,某些资源必须按升序排列,从零开始。 如果不满足这些条件,设计规则检查将失败,必须更改分配方案。 Device Resources 窗口会用红色标记冲突。 请修改分配,直到解决所有冲突。 下图为一个示例。

设备资源冲突

图 139. 设备资源冲突


除了手动解决冲突之外,VisualApplets 还可以自动解决冲突。 请在 Device Resources 窗口中单击 OK。 如果仍存在冲突,VisualApplets 将自动解决该冲突。 您可以单击 Apply 以无须确认便接受所有更改并关闭窗口。 或者,您可以单击 Show Details... 以查看已更改的内容(见下图)。 如果您不想接受更改,请单击 Retry 以撤销更改并返回 Device Resources 窗口。

设备资源冲突的自动纠错

图 140. 设备资源冲突的自动纠错


请注意,自动更改可能并不总能产生您想要的结果。 例如,自动更改可能会改变相机的分配。

[提示] 所有受支持硬件设备的设备资源列表

在 Device Resources 中列出了所有受支持硬件设备的可用设备资源详细列表。

[注意]

设备资源用于与 FPGA 环境(相机、DRAM 等)进行接口连接