阻塞与非阻塞,阻塞赋值与非阻塞赋值

非阻塞赋值:

module nonblockingassignment (clk ,q1,q2);
input clk;
output [2:0] q1,q2;
reg[2:0] q1,q2;
always @ (posedge clk)
begin
q1<=q1+3'b1;
q2<=q1;
end
endmodule
image阻塞赋值与非阻塞赋值阻塞与非阻塞
 

阻塞赋值

module blockingassignment (clk ,q1,q2);
input clk;
output [2:0] q1,q2;
reg[2:0] q1,q2;
always @ (posedge clk)
begin
q1=q1+3'b1;
q2=q1;
end
endmodule
imageimage阻塞赋值与非阻塞赋值阻塞与非阻塞
Tags:  指挥与非指挥 指挥类与非指挥类 与非网 阻塞赋值 阻塞与非阻塞

延伸阅读

最新评论

发表评论