I want to make a programmable counter 1 to 10 (binary).It will be connected to 10 switches.If i switch on the 1st switch then it will skip the number 0,if i switch on and the second witch then it will skip and the number 1 etc...
I want to make it with PLD (xilinx xc95000).
Any ideas? i dont want a solution but rather some basic steps i could begin from.
Latch inputs from the 10 switches and decode it to integer value.
Have two concurrent blocks ( 2 process if VHDL or 2 always if verilog).
Increment the counter in the first block. (cnt <= cnt1+1)
In the second block check wether the count value has reached the decoded switch value. If reached increment cnt1.
When this is passed to the previous block automatically that particular value will be skipped.
This is just an idea... U have to check in simulation....
I am sorry the counter should count from 0 to 15.It was just an example,the one i posted before.
I am supposed to do it with Ic-logical gates only.I was thinking of going with multiplexer logic. Having a logic cirquit that gives each input of the multiplexers the appropraite value and then having a normal counter that increases the num. of input line the multiplexers