Hi Dave,
Below code gives same results with == and <->. I am trying to understand the need/application for ↔ operator in constraints.
class test;
rand bit a,b;
constraint c1 {
//a==b;
a<->b;
}
endclass
module tb;
test t_h;
initial begin
t_h=new;
repeat(10) begin
assert(t_h.randomize);
$display("%p",t_h);
end
end
endmodule