Frequency Divider by 2
Problem Description
Write a verilog code for frequency divider by 2. Duty cycle of output clock should be 50%.
Circuit should have input for the input clock and output should be clock frequency divided by "2".
On reset=0, circuit should get initialized and output should be 0. (asynchronous active low reset)
Example:
rst=0 clock_input=0 clock_output=0
rst=0 clock_input=1 clock_output=0
rst=0 clock_input=0 clock_output=0
rst=1 clock_input=0 clock_output=0
rst=1 clock_input=1 clock_output=1
rst=1 clock_input=0 clock_output=1
rst=1 clock_input=1 clock_output=0
rst=1 clock_input=0 clock_output=0Verilog
Code Editor Access
Log in to write, run and submit your solution to this interview question. It's free.
Output
Output goes here...
