rettylee
Newbie level 6

Hi,guys:
when I wrote a simple alway block,the 0 width pulse problem came out..
always@(posedge clk) begin
a = $random;
end
always@(negedge clk) begin
b = $random;
end
But saw the waveform ,I found that the sometimes a and b changed at the same time.There is a "0" width pulse in "clk".Anyone can tell me how to remove the "0" width pulse from the "clk" signal ?
Thanks for your help....
when I wrote a simple alway block,the 0 width pulse problem came out..
always@(posedge clk) begin
a = $random;
end
always@(negedge clk) begin
b = $random;
end
But saw the waveform ,I found that the sometimes a and b changed at the same time.There is a "0" width pulse in "clk".Anyone can tell me how to remove the "0" width pulse from the "clk" signal ?
Thanks for your help....