Operator SignalEdge

Operator Library: Signal

当算子 SignalEdge 检测到输入信号电平发生变化时,它会生成一个设计时钟周期的脉冲。 参数 Edge 用于指定要检测的边沿类型。 有三种可用设置:

  • Rising:

    为输入的每个上升沿生成一个脉冲。

  • Falling:

    为输入的每个下降沿生成一个脉冲。

  • Both:

    为输入的上升沿和下降沿均生成一个脉冲。

此算子不包含在 VisualApplets 功能仿真中。

I/O Property

Property 值
Operator Type O
Input Link I,信号数据输入
Output Link O,信号数据输出

Supported Link Format

Link Parameter Input Link I Output Link O
Bit Width 1 as I
Arithmetic unsigned as I
Parallelism 1 as I
Kernel Columns 1 as I
Kernel Rows 1 as I
Img Protocol VALT_SIGNAL as I
Color Format VAF_GRAY as I
Color Flavor FL_NONE as I
Max. Img Width any as I
Max. Img Height any as I

参数

Edge
键入 static 参数
默认 RisingEdge
范围 {RisingEdge, FallingEdge, BothEdges}

该参数定义了算子检测的边沿类型。

使用示例

以下示例展示了算子 SignalEdge 的用法: