tutorial 4 (vga)

I just finished Toni’s VGA tutorial and I had a blast; I’m getting good at converting VHDL to Verilog.  Next I think I’ll find a RAM tutorial and one for sound.  This one didn’t give me too much trouble, but there are a few differences between his tutorial and what I ended up coding.

First, my VGA display has a different resolution than the one used, so I had to find the specifications and adjust them for my monitor.  Second, the DE2 board has more output pins dedicated for VGA use; these differences are slight but you won’t get a picture without them.  The code comments have the specifics.

One more thing: I don’t use VHDL so I had a little hang-up trying to implement the procedure he uses for drawing the squares.  Then I found the ‘task’ keyword for Verilog, which accomplishes the same thing just with slight syntax changes.  All the code works great.  The PLL generated in QSYS will have to be adjusted for your monitor and you may have to use a different clock input (my case was 50Mhz).

Code here: https://github.com/christopherhays/my-modules/tree/master/tutorial-4

Continue reading


tutorial 3 (uart)

Finished the third tutorial from from the Toni T800 YouTube channel.  This one gave me some trouble for a bit because PuTTY was acting a little strange, so I switched to Windows and used the RealTerm serial program that he demonstrates in his video.  In RealTerm you can send a single character by just typing it, while in PuTTY you have to hit Enter; I think hitting Enter sends more info to the board, which was messing up my receiving display. I probably could have messed with PuTTY more, but just went with the software that Toni used.

Anyway, for this one use RealTerm to make it easy: 9600 baud rate, no parity, 1 stop bit.  I also used a USB to RS232 cable to connect to my pc because the DE2 UART output is via RS232 only.

Code here: https://github.com/christopherhays/my-modules

Continue reading