Frequency Divider by 6

Qualcomm

Problem Description

Write a verilog code for frequency divider by 6. Duty cycle of output clock should be 50%.

  • Circuit should have input for the input clock and output should be clock frequency divided by "6".

  • On reset=0, circuit should get initialized and output should be 0.

Example:

  • input_clk=1 output_clk=0

  • input_clk=0 output_clk=0

  • input_clk=1 output_clk=0

  • input_clk=0 output_clk=0

  • input_clk=1 output_clk=0

  • input_clk=0 output_clk=0

  • input_clk=1 output_clk=1

  • input_clk=0 output_clk=1

Verilog

Code Editor Access

Log in to write, run and submit your solution to this interview question. It's free.

Output

Output goes here...