Hello
I am new in writing VHDL code, and i need to write a code for a Counter thats work this way:
1. the counter take as input a number (X) between 0 and 2400
2. the counter has another clk input, and the counter count the Clk pulses
3. the counter check
if (clk pulses < number x)
stay HIGH
if (Clk pulses >= number x)
change to LOW
if (Clk Pulses = 2400)
reset Clk Pulses and change to HIGH
4. The counter should do this action nonstop
one more question: how can i count Clk pulses?
Thanks
Amirster
I am new in writing VHDL code, and i need to write a code for a Counter thats work this way:
1. the counter take as input a number (X) between 0 and 2400
2. the counter has another clk input, and the counter count the Clk pulses
3. the counter check
if (clk pulses < number x)
stay HIGH
if (Clk pulses >= number x)
change to LOW
if (Clk Pulses = 2400)
reset Clk Pulses and change to HIGH
4. The counter should do this action nonstop
one more question: how can i count Clk pulses?
Thanks
Amirster
Last edited: