Hello, I have this project where I have to interact with the PS/2 module (a keyboard) and when I type the letters in the keyboard those must be shown in the LCD of the board. I made a state machine where I tried to said that when I type a letter it must be held in a register until I let the button go and compare the break code with the letter registered and then that data must be gone to a case block where I wanna put all the possible cases of the letters to be shown in the LCD display. But it doesn't work, it is recognizing the letter typed because I connected it to a 6-seg display, but the LCD doesn't show anything, can anyone help me?
This is the whole project, in case anyone wants to help me
More Information please! What kind of Display? Which FPGA Board?
it is a 16x2 LCD display, and the board is a DE0 Terasic Altera, the device is a Cyclone III EP3C16F484C6N
OK, i don't know verilog, sorry. I would look at the Display-Datasheet and at the IO-Connections of Display and FPGA, how is ist connected? Parallel Bus or serial Interface? Which commands must be sent? Are the Voltages correct?. So first try to display any static Character on the Display.
And then I would try to read a key (scancode) from a PS/2 keyboard. And then I would convert the scancode to an ASCII character. And then I would hand over that key to the display component. So the most important process is to split up the "big problem" in several "small problems" that can be solved each one after (and independent from) the other. The debugging on this level is done solely by the simulator. And when each one of that designs is running stand alone (at least in simulation, better if on real hardware also) , then it is fairly simple to connect them together to one big design. This process is called "Divide et impera".