In reply to dave_59:
I have code like below
realtime clk_period1;
realtime clk_period2;
realtime clk_time_t;
@posedge(input_clk);
clk_period1 = $realtime;
@posedge(input_clk);
clk_period2 = $realtime;
clk_time_t = clk_period2 - clk_period1;
// Now i need to generate twice the frequency of first clock clk_time_t
fast_clk_time_t = clk_time_t /2 ;
//to generate clock , for posedge time and negedge time i again had to divide the fast_clk_time_t
// Now if fast_clk_time_t is odd value , I cannot generate accurate clock , So i wanted to know if there is any way to find odd or even value of realtime variable
let me know if you have any suggestion on this
Any way i can generate the faster clock accurately
Regards,
Sunanda