| 1- No food or drink is allowed in the lab. | |
| 2- There are no pre-lab assignments or lab work to complete outside the lab period. | |
| 3- Each week you must bring the book and the red signoff sheet to the lab. | |
| 4- Each week you must view this website to access the lab guide and design files. | |
| 5- Lab work is verified and answers to lab questions are submitted by the end of each lab period. If you submit an incorrect answer, then you must access the blackboard website to see the correct answer. Answers to lab questions are posted in "Lab work" section of blackboard. | |
6- When you see this icon you can click on it to get help with the theory covered in class. To move forward through the presentation you need to press the {SPACE BAR} on the keyboard or click the mouse button. To move backwards you press the {BACKSPACE} key. | |
| 1- You need a folder called "labs" to save files. | |
| 2- Click here for the GDF file for Vending Machine System and place this file in folder "labs". | |
| 3- Run the Altera Program: | |
| 4- Follow the procedure (steps 1 to 17) on the orange laminated summary card to create/save/compile/configure the system onto a FLEX IC. If you wish to view a detail description of steps 1 to 17 you can refer to the procedure in the book on pages 22 to 29 and then 34 to 44. | |
| 5- Demonstrate the operation of the system and get a signature from the instructor. | |
| 6- Save all the files. The files are needed for the next the lab. | |
| 7- Put your name on a separate piece of paper and answer questions 4, 5, and 6 found on pages 45 and 46 of the book. Submit the answers. | |
| 1- You need a folder called "labs" to save files. | |
| 2- Click here for the GDF file for Random # Generator System and place this file in folder "labs". | |
| 3- Right click here BCD counter VHDL file choose "save target as ..." and place this file folder "labs". | |
| 4- Run the Altera Program: | |
| 5- Follow the procedure (steps 1 to 17) on the orange laminated card to create/save/compile/configure the system onto a FLEX IC. Assign "Latch Enable" to a pushbutton. Assign "Oscaillator" to pin 91. Assign pin numbers to the LEDs. Assign pin numbers to the unused LEDs. | |
| 6- Test the operation of the random number generator system and make sure it works. | |
| 7- In this step you will slow down the pulse rate of the system so that you can see the counting on the LEDs. Currently, FD16 is used and it is very fast (192 PPS). You will need change the pulse rate of the BCD counter clock to 3 PPS. Replace the label FD16 with an FD number that will select a pulse rate of 3 PPS. Re-compile and re-program the Altera IC. Test the system. You should now be able to see the count sequence on the LEDs. | |
| 8- On a piece of paper describe the function of each section of the random number generator system. Here is a list of the sections: LPM_counter, CountBCD, LPM_latch and latch enable pushbutton. Demonstrate the operation of the system, get a signature, and submit your answers. | |
| 1- You need to create a folder called "labs". | |
| 2- Click here Lab 5 GDF file and place this file in folder "labs". | |
| 3- Right click here BCD counter VHDL file choose "save target as ..." and place this file in folder "labs". | |
| 4- Right click here Seven segment decoder VHDL file choose "save target as ..." and place this file in folder "labs". | |
5- Use your book: Follow the "Lab Work Procedure" steps described on pages 141 to 144. The work described on page 141 and the top of page 142 will already be complete as a result of downloading the files from the web. Do the work described at the bottom of page 142 for step 2 and continue to page 144. Remember we always use the FLEX IC. The system is ready to test but you must wait until your partner is ready before you procede with the next step. | |
| 6- Both team members must gather around the first system and complete "Lab Exercise 1: Test the display decoder" on page 144. Have the student that owns the station write out the answers to questions a, b, c, and d. Only one answer sheet is submitted per group so make sure you put both your names on the answer sheet. Leave the system constructed it will be inspected later. | |
| 7- Both team members must gather around the second system and complete "Lab Exercise 3: Add digital displays to a 0 to 99 random number generator system". Complete the work described in step "a" only. Have the student that owns the station write out a description of the changes you made to design the new system. Demonstrate both stations (exercise 1 and exercise 3), get a signature, and submit your answers. | |
| 1- You need to create a folder called "labs".. | |
| 2- Click here Lab 7 GDF file and place this file in folder "labs". | |
| 3- Click here Debounce system. and place this file in folder "labs". | |
| 4- Right click here Encoder VHDL file choose "save target as ..." and place this file in "labs". | |
| 5- Use your book to Follow the "Lab Work Procedure" steps described on pages 154 to 155. The work described on page 154 steps 1, 2, and 3 will already be complete as a result of downloading the files from the web. Do the work described near the bottom of page 154 for step 4 and continue to page 155. Remember we always use the FLEX IC. At the bottom of page 154 the section called "Flex IC Design" talks about using "Appendix C: FLEX Header". Instead of using "Appendix C", you must assign "Switch0" to "Switch9" to the pin numbers for the "Niagara College Altera board". These pin numbers are on the back of your red signature page. | |
6- You must connect a wire from Vcc (triple hole) from top left side of Altera board to Vcc (double hole) closest to keypad.
 The system is ready to test but you must wait until your partner is ready before you procede with the next step. | |
| 7- Both team members must gather around the first system and complete "Lab Exercise 1" described on page 155. Have the student that owns the station write out the answers to questions a, b, c, d and e. Only one answer sheet is submitted per group so make sure you put both your names on the answer sheet. Leave the system constructed it will be inspected later. | |
| 8- Both team members must gather around the second system and complete "Lab Exercise 2" described on page 156. Have the student that owns the station write out the answers to questions a, b, and c. Leave the system constructed it will be inspected. | |
| 9- Complete "Lab Exercise 3: Design a two-key storage system" described on page 157. Work togeteher and design the system using the station that was used for exercise 2. Demonstrate both stations (exercise 1 and exercise 3), get a signature, and submit your answers. | |
| 1- Use your book:to complete "Lab Exercise 1: Test the MUX/DEMUX Security system" on page 175. Have "Partner #1" write out the answers to questions a, b, and c. Only one answer sheet is submitted per group so make sure you put both your names on the answer sheet. | |
| 2- Complete "Lab Exercise 2: Change the Security system to use Q13 and Q14" on page 176. Have "Partner #2" write out the answer to questions a, b, c, and d. | |
3- Complete "Lab Exercise 4: Expand the security system to monitor eight entry points" on page 176. Demonstrate the new 8 door system along with the Q13/Q14 changes from exercise 2. Submit your answers. This completes the lab. Guide:To change the VHDL code for the mux/demux you must double click the symbol, make your changes and then use "Create Default Symbol" from the "File" menu. If Altera reports errors you will need to use the book information on page 291 (appendix B) to make corrections. If you are error free, you must update the symbol. To update the symbol you must view the the system graphic diagram (gdf file) and from the "Symbol" menu select "Update Symbol". Now save, compile, configure, and test it. | |
| 1- You need to create a folder called "labs". | |
| 2- Click here The GDF file for LCD Random # Generator System and place this file in folder "labs". | |
| 3- Right click here BCD counter VHDL file choose "save target as ..." and place this file in folder "labs". | |
| 4- Right click here Seven segment decoder VHDL file choose "save target as ..." and place this file in folder "labs". | |
5- You must connect a BACKPLANE jumper wire accross the double holes (east to west). The wire can be as short as = 1 cm in length.
| |
| 6- Use your book to complete "Lab Exercise 3" on page 267. | |
7- Create a light sequencer system. The system will move a dark LCD segment around the display in a "figure 8" pattern. To make the sequencer work you don't need a ROM. You can do it by changing the VHDL code of the seven segment decoder. You can also make the lighting sequence symmetrical by changing the counter.
To change the VHDL code for the decoder you must double click the symbol, make your changes and then use "Create Default Symbol" from the "File" menu. If Altera reports errors you will need to use the book information on page 291 (appendix B) to make corrections. If you are error free, you must update the symbol. To update the symbol you must view the the system graphic diagram (gdf file) and from the "Symbol" menu select "Update Symbol". Now save, compile, configure, and test it. | |
| 8- Answer the following question: What is the function of the XOR gates? Hint: View the PowerPoint presentation by clicking on the ICON above or refer to page 242 in the book. | |
| 9- Demonstrate both systems. Put both your name on the paper and submit your answer. | |