ece3400-2017

ECE 3400 Intelligent Physical Systems course web page and assignments

This project is maintained by CEI-lab

Cornell, ECE3400, Fall 2017

By Claire Chen, 2017

Brand new to VHDL?

Here’s a nice free introductory text book on VHDL and FPGAs.

FPGA

A field programmable gate array (FPGA) is a reprogrammable semiconductor device that can be configured to implement any logic function specified by the user. Unlike application specific integrated circuits (ASICs), which are manufactured to perform specific functions, FPGAs can be reconfigured into any digital circuit.

For more information and various FPGA applications, check out Altera’s general FPGA information page.

DE0-Nano

In ECE3400, we will be using the DE0-Nano Development and Education Board, which has an Altera Cyclone IV FPGA chip as well as several other peripherals.

User manuals or data sheets are the best resources when working with new hardware. Download the user manual for DE0-Nano here. To familiarize yourself with the board layout, we recommend reading through Chapter 2 (it’s short and mostly contains pictures). Since we will mainly be interacting with the on-board pushbuttons, LEDs, and switches, we also recommend taking a look at Chapter 3.2, which contains details about user input/output including the pinout for the GPIO pins.

Verilog

Verilog is a hardware description language (HDL), which means that all the code you write for the FPGA in Verilog represents combinational or sequential logic in hardware. During compiliation, Quartus must analyze all the logic you’ve written and determine how to best synthesize it onto the FPGA; this is the reason why compile times are so much longer than software compile times. When writing Verilog, it’s important to understand the hardware behind your code, as this will help you to consider important logic errors. For example, signals in Verilog can be one of two data types: a reg (variable data type) or a wire (net data type). Wires can only be used to model combinational logic and they cannot store values. Regs represent data storage elements and can be used to model both combinational and sequential logic in always blocks. For many more details on Verilog syntax, check out the Verilog Quick Reference Guide here.

FPGA FAQ’s

FAQ Page

How to run the FPGA during the final competition?

You may have noticed that some of the FPGAs have old programs that are loaded onto them upon startup. You will need to do this for competition day, as we will NOT have computers for you to program them (we will only have VGA monitors). The DE0-Nano User Manual (download here) provides very good instructions for how to do this. Follow the instructions in Appendix 9.1 “Programming the Serial Configuration Device” to convert the programming file and write it into the serial configuration device.

You will need to follow these instructions exactly - make sure you have specified the exact device numbers it tells you to, otherwise it will not work. Once the program has successfully loaded, you should not have to re-upload your program every time you plug in the device (you might need to power cycle the board to see anything the first time).