|
发表于 2010-2-10 13:19:18
|
显示全部楼层
Delay in verilog is for simualtion.
Usually, it is used in 2 ways:
1. Testbench:
Use delay to how data is sent to design.
2. Gate behavior:
Due to difference between simulator engine,how signal's value is calculated
is different, especially your syntax is combined Flip-Flop and relative cone
logic. So, usually , we will ad delay like this :
always @(*) begin
A <= #1 B+C;
end
The purpose of this "#1" is: we want to make A and "B+C" 's value
calculation time different to avoid simulator 's difference.
( simulator: for ex, verilog-xl, ncverilog, modelsim)
( Actually, some behavior in verilog-xl simulator is wrong.) |
|