tariq786
Advanced Member level 2
Hi friends,
I want to compare two signals whenever one of them changes using if statement. But i want to do this comparison at the end of the simulation tick as one of them is a register and the other one is a wire.
Any ideas how to do it
always @(b)
//what should i put here to compare them at the end of the time step
begin
if( a == b)
$display("Pass");
else
$display("Fail");
end
Thanks
I want to compare two signals whenever one of them changes using if statement. But i want to do this comparison at the end of the simulation tick as one of them is a register and the other one is a wire.
Any ideas how to do it
always @(b)
//what should i put here to compare them at the end of the time step
begin
if( a == b)
$display("Pass");
else
$display("Fail");
end
Thanks