Altera Software Tutorial and Use | ![]() ![]() |
The purpose of this lab is to learn the basics of the Altera design software: design entry, simulation and compilation. It will also introduce a large-scale programmable logic device, and show you how to download a circuit into the device.
You are to design two functions, f1 and f2, with four inputs named x1, x0, y1, and y0. Consider X = x1 x0 to be a number. The four possible patterns of x1 x0, namely 00, 01, 10, and 11 represent the four numbers 0, 1, 2, and 3, respectively. Similarly, consider Y = y1 y0 to be another number with the same four possible values. The function f1should be 1 when the two numbers represented by X and Y are equal (i.e., X = Y). Otherwise, f1 should be 0. The function f2 should be 1 when the number represented by X is less than the number represented by Y (i.e., X < Y).
Show truth tables for functions f1 and f2. Derive a Boolean expression in canonical form for each function. Use algebraic manipulation to simplify the Boolean expressions. Enter the simplified Boolean expressions into maxplus2 in two different ways:
Your preparation, to be marked, should consist of the VHDL code, the schematic and the simulator output all circuits, including that from Tutorial #1. YOUR PREPARATION MUST BE PRINTED ON PAPER BEFORE THE LAB BEGINS.
Be sure to place all your design files on your home directory on the ECE ugsparcs. Your login name and password for ECE ugsparcs is the same as your ECF account. If you don't have either an ECF account or an ECE account, request one from ECF (in GB 154) and then send a request to tim@eecg to make sure one is created on ECE ugsparcs. The ECE ugsparc machines are named ugsparc1.eecg.toronto.edu up to ugsparc27.eecg.toronto.edu, and are located at the south-west corner of the Galbraith building, second floor, room GB 251. Later in the term more of these machines will be available in GB 243. You can also bring files from home on a floppy disk, and use them directly on the PCs in the lab.
You will need the information contained in Section 4, below.
The PCs in the lab are new, and we have only just got the networking functioning. I'm afraid that there are a few weird things you'll have to do at the moment, to make it all work. Hopefully, this will be smoothed out soon.
max your_login_name
You will be prompted to answer two questions - first asking which year you are in (which is likely 2nd year), and then if you should run the software from the local drive. Answer Y to the second question (indicating that maxplus2 is to be run from the local drive; this is much faster). This command installs a copy of the file maxplus2.ini in the directory max2work, (it creates this directory if you haven't done this already) and sets an environment variable that tells maxplus2 to look for the maxplus2.ini file at that location, and then starts the maxplus2 software running.
Notice that the cable can only plug into the header one particular way, because the headers have "keys" which prevent incorrect insertion. The header itself is numbered as follows, as viewed from the top:
Be sure that the power to the Altera board is off and the power to protoboard is off. Using diagram above and Table 1 do the following:
|