This is a small block of my project. I need design a 7-bit counter which clocks rising edges of signal fvco(range: 4Mhz to 100Mhz,variable). A reference frequency fref =1Mhz asynchronous reset the counter at the rising edge of fref signal(it reset the counter output to 0 very 1us). Just prior to asynchronous reset, the counter give output.
It is simple to write a verilog code with two always @(posedge fref) and always@(posedge fvco). But this kind of code can't be synthesis.
Please help to write a synthesisable verilog code.
Thanks a lot
It is simple to write a verilog code with two always @(posedge fref) and always@(posedge fvco). But this kind of code can't be synthesis.
Please help to write a synthesisable verilog code.
Thanks a lot