Due 2 October, 2000
The purpose of this lab is to introduce you to Digital Design CAD tools and VHDL.
Setup for this lab involves familiarizing yourself with the Altera Max+Plus II application and creating a directory for yourself on the PCs. Please put your working directory in the max2work directory. Your working directory should be labeled with the last name of someone in your lab group.
You are free to explore the Xilinx Foundation software that comes with
the Wakerly text. It should also contain a graphic design editor,
VHDL, and a simulator. The graphic design files are probably not
compatible with Altera, however, so to program the boards you will
have to move the design to the Max+Plus II software (note,
transferring VHDL is easy since it's just text).
Task one is to build part of a controller for a traffic light. Given a time input between 0-31 your circuit should control which lights are on according to the following table:
| Time range | North-South | East-West |
|---|---|---|
| 0-9 | Green | Red |
| 10-13 | Yellow | Red |
| 14-15 | Red | Red |
| 16-25 | Red | Green |
| 26-29 | Red | Yellow |
| 30-31 | Red | Red |
Give each of the six lights one output. Use negative logic (0 = light is on) to drive the lights.
Your design and implementation process should use the following steps:
For this task, show the professor your working circuit.
Task two is to build the input circuit for a simple 8-button microwave using VHDL. As in lab 1, the buttons on the microwave are: 1 min, 2 min, 3 min, 4 min, 5 min, beverage (2 min), popcorn (5 min), and burrito (3 min). The output of your circuit should be the BCD value indicating the number of minutes the microwave should be on.
For this task you should use only VHDL. Each button will be a separate input to your VHDL function, and you should think about this task as an if statement or a case statement, whichever is more appropriate.
Compile your program and use the simulator to demonstrate that it works correctly by selecting an appropriate number and range of input cases.
Design part of an elevator controller for a building with 4 floors (0-3). The circuit you are designing determines where the elevator should go given that it is not currently busy. The inputs to this circuit are the current location of the elevator (2 bits), and four lines connected to the call buttons from each floor (call buttons are not up/down for this exercise).
The output of the cicuit should be the floor to go to next, designated by a value between -3 and 3. The value -3 means go down three floors, the value 1 means go up 1 floor. Use 2's complement to represent the output.
Use either the graphic design editor or VHDL (or both) for this task. Follow the standard design procedure and show the circuit working in simulation.
As before, if you follow the above steps, you will have the majority of your writeup for this lab completed. Clarity in your writeups is essential. Convey what you have done in a clear and concise manner, and in sufficient detail that someone else could replicate your work.
In addition to the design process steps mentioned above, your lab writeup should include the following: