M
Muthu
Guest
Hi,
I have tried the following.
I am expecting 'a', 'b' should be a Clock.
But, only 'a' is asserted high after 2ns. it is not all varying.
Can any one explain why?
---------------------------------------------------------------
`timescale 1ns /10ps
module test;
reg a,b;
initial
begin
a = 0;
b = 0;
end
always @(a)
begin
#2 a = !a;
$display($time,"Change in A");
end
always @(b)
begin
#2 b <= !b;
$display($time,"Change in B");
end
endmodule
---------------------------------------------------------------
I have tried the following.
I am expecting 'a', 'b' should be a Clock.
But, only 'a' is asserted high after 2ns. it is not all varying.
Can any one explain why?
---------------------------------------------------------------
`timescale 1ns /10ps
module test;
reg a,b;
initial
begin
a = 0;
b = 0;
end
always @(a)
begin
#2 a = !a;
$display($time,"Change in A");
end
always @(b)
begin
#2 b <= !b;
$display($time,"Change in B");
end
endmodule
---------------------------------------------------------------