Forum Discussion
Altera_Forum
Honored Contributor
8 years agoMod5 Counter
I need to do a VHDL program and I need to replace the use of 74191 IC and with the aid of the the FPGA I need use the toogle switches to start the count in mod5. Till now this is the program that I'v...
Altera_Forum
Honored Contributor
8 years agoplease use code tags and indentations for easier reading, as for the pin planner search the forum, there are posts that might help you, if you still have problems, please start a separate thread for that.
As you talk about VHDL program, I assume you are new to fpga's. So a few tips: Try using signals instead of variables, this will help you with debugging and will make the behavior more predicitve. vhdl has an elseif statement: if condition then dosometing elsif condition dosomethingelse else doanotherthingelse end if; as for your counter I do not quite understand what you want. Apart from that, try thinking of the hardware you want to create. (and try to avoid using buffers instead of in, out,inout, as far as I know this is considered bad practise, use a internak signal instead.)