actually i thought of that but the problem is that the op of the divide by 2 circuit will be high for whole cycle till next posedge of clock, but here it goes low whenever a negedge of same cycle, so i need a more optimized circuit rather than just divide by 2
Can you use microcontroller to generate the output for your clock or do you have to use only digital logic circuit? What I am saying is you can count the frequency of your input clock and generate the output frequency as needed. See image. You will get something like that. Will your clock be synchronized with some other circuit also?