D
Davy
Guest
Hi Ajeetha,
Thanks a lot!
Do you mean if I don't use clocking block. I have to do something like
below:
@(posedge clk)
#1 data_out = data_in;
And if I use clocking block, I just define #1 in clocking block?
Best regards,
Davy
Ajeetha wrote:
Thanks a lot!
Do you mean if I don't use clocking block. I have to do something like
below:
@(posedge clk)
#1 data_out = data_in;
And if I use clocking block, I just define #1 in clocking block?
Best regards,
Davy
Ajeetha wrote:
Clocking block is recommended usage in testbench to avoid race
conditions. WIthout it, all your read/write or asynchronous and you are
required to explicitly synchronize them.
HTH
Ajeetha, CVC
www.noveldv.com
Davy wrote:
Hi,
I found in some SystemVerilog examples, people like to add Clocking
Block to driver and monitor. While some other SV examples only use
modport (don't use Clocking Block).
So I am confused with it.
1. Is it recommendation to use Clocking Block?
2. Shall I only use it in testbench component like driver and monitor
(shall I use it in responder)?
Best regards,
Davy