clock_freq_p;
time prev_time;
@(posedge clk)(1,prev_time=$realtime) |=> ($realtime-prev_time ==100ns);
endproperty
a: assert property(clock_freq_p);
This property checks if the clock is running at 10MHz by checking if the time between two positive edges is 100ns (period of a 10MHz clock). It uses $realtime to get the current simulation time and saves the previous time in prev_time. On every positive edge, it checks if the difference between current and previous time is 100ns.