Operator Library: Debugging
您可以使用此算子来操纵图像链路上的阻塞行为。 您可以压制阻塞状态, 并向输入链路创建阻塞脉冲。
Blocking:您可以使用该算子测试设计对阻塞情况的反应。
Suppressing:当您压制阻塞情况时,您可以测试设计的前端部分, 即使后续部分导致了阻塞情况。 由于数据丢失,管道的这些后续部分通常无法正常工作。 数据丢失由参数 LostDataWords 进行监控。
示例:如果您将该算子直接放置在 DmaToPC 算子前方并压制阻塞, 您可以找出设计的最大速度(因为您仅压制了潜在 DMA 总线 的数据宽度所带来的限制)。
您可以使用外部输入信号来控制阻塞行为。
![]() |
压制阻塞时的数据丢失 |
|---|---|
|
当禁止(阻塞)处于被压制状态时,所有传入数据都会丢失, 因为输出链路未准备好接受新数据。 |
![]() |
谨慎使用 |
|---|---|
|
必须谨慎使用此算子,因为它会干扰算子之间固有的握手协议。 |
![]() |
Runtime Testing |
|---|---|
|
该 operator 专为在运行时测试和分析设计而设计:您需要先构建(综合)设计、将其加载到目标硬件上并启动实际的图像 processing,然后才能使用该 operator 进行调试。 The operator is not intended for design simulation within VisualApplets. |
| Link Parameter | Input Link I | 输入链路 ExtI | Output Link O |
|---|---|---|---|
| Bit Width | [1, 64] | 1 | as I |
| Arithmetic | {unsigned, signed} | 无 | as I |
| Parallelism | any | 无 | as I |
| Kernel Columns | any | 无 | as I |
| Kernel Rows | any | 无 | as I |
| Img Protocol | {VALT_IMAGE2D, VALT_LINE1D} | 信号 | as I |
| Color Format | any | 无 | as I |
| Color Flavor | any | 无 | as I |
| Max. Img Width | any | 无 | as I |
| Max. Img Height | any | 无 | as I |
| ClearMode | |
|---|---|
| 键入 | 动态写入参数 |
| 默认 | ClearWithProcessStart |
| 范围 | {NoClearing, ClearWithProcessStart, ClearWithProcessReset, SendClearPulse} |
|
此参数定义所有 read 参数的重置行为。 NoClearing:保留所有 read 参数的值。 ProcessEnable 和 ProcessReset 对这些值没有影响。 ClearWithProcessStart:仅在 ProcessEnable 的上升沿清除所有 read 参数的值。 ClearWithProcessReset:仅在 ProcessReset 的上升沿清除所有 read 参数的值。 SendClearPulse:按需清除所有 read 参数值。 |
|
| InhibitMode | |
|---|---|
| 键入 | 动态写入参数 |
| 默认 | FlowThrough |
| 范围 | {FlowThrough, OverridePulseHi, OverridePulseLow, OverrideExtHi, OverrideExtLow, PulsHi, PulsLow, StaticHi, StaticLow, Ext} |
|
FlowThrough:禁止(阻塞)从 O 传递到 I。 OverridePulseHi:选中时,向 I 创建一个宽度为一个时钟周期的禁止(阻塞)信号。否则,行为与 FlowThrough 模式相同。 OverridePulseLow:压制禁止(阻塞)信号一个时钟周期。否则,行为与 FlowThrough 模式相同。 OverrideExtHi:仅将来自外部信号输入 ExtI 的高电平输入作为禁止(阻塞)传递给 I。否则,行为 与 FlowThrough 模式相同。 OverrideExtLow:仅使用来自外部信号输入 ExtI 的低电平输入来压制朝向 I 的禁止(阻塞)。否则,行为与 FlowThrough 模式相同。 PulsHi:在禁止(阻塞)被永久设置为零时,恰好创建一个禁止(阻塞)周期。 PulsLow:在禁止(阻塞)被永久设置时,恰好压制一个禁止(阻塞)周期。 StaticHi:强制禁止(阻塞)永久保持激活状态。 StaticLow:永久停用禁止(阻塞)。 Ext:ExtI 输入信号直接设置禁止(阻塞)状态。 |
|
| LostDataWords | |
|---|---|
| 键入 | 动态读取参数 |
| 默认 | 0 |
| 范围 | |
|
对因压制禁止(阻塞)而丢失的图像数据进行计数。 |
|
| GeneratedInhibits | |
|---|---|
| 键入 | 动态读取参数 |
| 默认 | 0 |
| 范围 | |
|
在输出 O 上没有出现 Inhibit(阻塞)的情况下,统计生成的 Inhibit(阻塞)次数。 |
|

![[重要的]](../common/images/admon/important.png)
上一页

