1. 序列
- 1.1 简单的信号检查序列:
// 序列s1检查信号‘a’在每个时钟上升沿都为高电平:
seuqnce s1;
@(posedge clk) a;
endsequence
- 1.2 边沿定义的序列
// 序列s2检查信号‘a’在每个时钟上升沿为上升沿/下降沿/保持稳定:
seuqnce s2;
@(posedge clk) $rose(a); //当信号/表达式出现上升沿时返回真;
@(posedge clk) $fell(a); //当信号/表达式出现下降沿时返回真;
@(posedge clk) $stable(a); //当信号/表达式保持稳定时返回真;
endsequence
- 1.3 逻辑关系检查序列:
/