本文介绍了2 个连续的非阻塞赋值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能解释一下在一个连续的 always 块中分配两个连续的非阻塞赋值是什么意思吗?

Can someone explain what it means to assign two consecutive nonblocking assignments in a sequential always block?

例如:

always @(posedge clk) begin
    a <= b <= c;
end

推荐答案

可以更清楚地编码为:

a <= (c >= b);

a 被赋予表达式c 大于或等于 b"的值.

a is assigned the value of the expression "c is greater than or equal to b".

第一个 是非阻塞赋值运算符,而第二个是比较运算符.

The 1st <= is the nonblocking assignment operator, whereas, the 2nd is the comparison operator.

这篇关于2 个连续的非阻塞赋值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 18:49