Digital Systems II:

Web Guide For Completing Lab Work.


Week 1 Guide:
Introduction To the Digital Lab and Lab #1 Vending Machine System

Introduction To the Digital Lab

  • 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.
  • Lab #1 Vending Machine System

     

    Use your student network drive "U:" or a memory stick (jump drive/flash drive) to complete the lab.

  • 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.

  •   

    Week #2 Guide:
    The ALTERA Simulator and Lab #5: Random Number Generator Lab.

     

    Use The ALTERA Simulator To Test The Vending Machine System.

  • 1- You need the vending machine files for Lab #1 from week #1.
  • 2- Use "Appendix F" of your book and follow steps 1 to 8 on pages 309 to 318.
  • 3- After step 8, demonstrate the simulation and get a signature.
  • Lab 5: Random # Generator.

    You need to understand the random number generator system for next week's lab.

  • 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.

  •   

    TEAM WORK LABS BEGIN NEXT WEEK!
    All remaining digital labs will be completed by teams of 2 students. Find a partner that will work with you each week for the remainder of the year.

      

    Week #3 Guide:
    Lab 6: Add a display decoder to the random number generator system.

    Your design team will simultaneously build 2 identical "lab 6" random number generator systems. Once the systems are configured both team members will gather around the first system and complete exercise 1. After that you will gather around the second system and complete exercise 3.

    Use web guide steps 1 to 5 to build your own random number generator system. Use web guide steps 6 and 7 to complete the team work exercises.
  • 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.

  •   

    Week #4 Guide:
    Lab 7: Design a keypad encoder system.

    Your design team will simultaneously build 2 identical "lab 7" keypad systems. Once the systems are configured both team members will gather around the first system and complete exercise 1. After that you will gather around the second system and complete exercise 2.

    Use web guide steps 1 to 6 to build your own keypad system. Use web guide steps 7 to 9 to complete the team work exercises.
  • 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.

  •   

    Week #5 Guide:
    Lab 8: Mux/Demux Security System.

    Your design team will build a security system. The system is made up of two Altera stations. One station is the MUX and the other station is the DEMUX. Sit at 2 Altera stations that are physically next to each other. This will keep the length of the wires to a minimum. Decide which partner builds the the MUX system (partner #1) and which partner builds the DEMUX system (partner #2). There is a separate set of instructions for each team member.
    Mux Procedure for Partner #1.
  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 8 GDF file for the "Door Interface Multiplexer" and place this file in folder "labs".
  • 3- Right click here 4-Channel MUX VHDL file choose "save target as ..." and place this file in folder "labs".
  • 4- Use your book to follow the "Lab Work Procedure" steps described on pages 172 and 173. The work described on page 172 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 172 for step 4 and continue to page 173. Remember we always use the FLEX IC.
  • 5- You must use "Appendix C" to assign pins that will allow you to connect wires from this UP board to your partner's UP board.
  • Demux Procedure for Partner #2.
  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 8 GDF file for the "LED Panel Demultiplexer" and place this file in folder "labs".
  • 3- Right click here 4-Channel DEMUX VHDL file choose "save target as ..." and place this file in folder "labs".
  • 4- Use your book to follow the "Lab Work Procedure" steps described at the bottom of page 173 and on page 174. The work described at the bottom of page 173 steps 1, and 2, and page 174 step 3 will already be complete as a result of downloading the files from the web. Do the work described on page 174 starting with step 4. Remember we always use the FLEX IC.
  • 5- You must use "Appendix C" to assign pins that will allow you to connect wires from this UP board to your partner's UP board.
  • WORK as a TEAM and link up the MUX and DEMUX systems.
  • 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.

  •   

    Week #6 Guide:
    Lab 9: Matrix Keypad Encoder System.

    You can work alone on this lab or you can team up and work with your partner.

  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 9 GDF file for Matrix Keypad Encoder System and place this file in folder "labs".
  • 3- Click here Debounce system. 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- Pick up a "Lab 9 Guide" worksheet from the instructor. Follow the instructions on the worksheet. Each student must write out their own set of answers!

  •   

    Week #7 Guide:
    Lab 10: Arithmetic System.

    Your design team will simultaneously build two lab 10 adder systems. One system will be used to complete exercise 1 and the other to complete exercise 3. Decide which partner builds the the adder system for exercise 1 (partner #1) and which partner builds the adder system (partner #2) for exercise 3. There is a separate set of instructions for each team member.
    Exercise 1 Adder system (Partner #1).
  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 10 Exercise 1 GDF file for Adder/Subtractor System and place this file in folder "labs".
    Right click here Seven segment decoder VHDL file choose "save target as ..." and place this file in folder "labs".
  • 3- Use the laminated orange card and complete steps 11 to 17.
    The system is ready to test but you must wait until your partner is ready before you procede.
  • Exercise 3 Adder system (Partner #2).
  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 10 Exercise 3 GDF file for Adder/Subtractor System and place this file in folder "labs".
    Right click here Seven segment decoder VHDL file choose "save target as ..." and place this file in folder "labs".
  • 3- Use the laminated orange card and complete steps 11 to 17.
    The system is ready to test but you must wait until your partner is ready before you procede.
  • WORK as a TEAM to record observations for exercises 1 and 3.
  • 1- Both team members must gather around the first system and complete "Lab Exercise 1" described on page 203. Have "Partner #1" 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. .
  • 2- Both team members must gather around the second system and complete "Lab Exercise 3" described on page 204. Have "Partner #2" fill in the table shown in figure 10-29. Demonstrate the adder/subtractor system and get SIGNATURE #1.
  • Exercise 4 Adder system.

    Your design team will work on exercise 4 using one Altera station.

  • 1- Complete "Lab Exercise 4: Design a system to display negative numbers in a readable format" on page 204. Instead of designing the system yourself, you will be given the system diagram. The diagram does require that you figure out many connections. Just like lab #9 you must replace "?" on the diagram. To help you do this, log onto Blackboard and review the answer for the last question on tutorial #5. Click here Lab 10 Exercise 4 GDF file and place this file in folder "labs". Assign all the input and output flex numbers, configure the flex. Test the system operation and make sure it works for positive and negative answers.
  • 2- Write an explanation of how the system works. Demonstrate the new adder/subtractor system, get SIGNATURE #2, and submit your answers.

  •   

    Week #8 Guide:
    Lab 11 RAM and ROM.

    Your design team will simultaneously build 2 digital systems. One person will complete the work to test a RAM system while the other person completes the work to test a ROM system. Once the work is complete get the first signature. You will then switch stations and complete the work for the other system and get a second signature. Decide who does what and begin.
    Lab 11 Part 1: Store Today's Date in a 8x4 RAM.
  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 11 GDF file for 8x4 RAM System and place this file in folder "labs".
  • 3- Use your book to follow the "Lab Work Procedure" steps 1 through 7 described on pages 226 to 228. Some of the work described will already be completed as a result of downloading the file from the web.
  • 4- Answer questions "a" and "b" on a piece of paper. Demonstrate the RAM memory system and get a signature.
  • Lab 11 Part 2: Design a ROM Light Sequencer.
  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 11B GDF file for ROM Light Sequencer System and place this file in folder "labs".
  • 3- Use your book to follow the "Lab Work Procedure" steps described on pages 228 to 232. Some of the work described will already be completed as a result of downloading the file from the web.
  • 4- Be sure to answer question "h" at the bottom of page 230 on a piece of paper. Demonstrate the ROM Light Sequencer system and get a signature.
  • Submit the answers once the team has completed all the lab work. Don't forget to put both names on the paper.

      

    Week #9 Lab 12 "Add an LCD to Random # Generator".

    Soon you will be working alone on the final project. With the help of your partner work on two separate Altera stations to complete your own Lab 12 system.

  • 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.

  •   

    Week #10 Guide:
    ROM Light Sequencer and DMD Project.

    ROM Light Sequencer Challenge.

    You will work alone on this lab.

  • Read exercise 1 described on pages 232 and 233.
  • You have 1 hour to design the most creative looking light sequencer.
  • The instructor will choose the 3 best systems and the students will crown a class champion. Good luck.
  • DMD Project

    The DMD project web guide is shown below. Get the first signature for the project today. There are no teams for the project. You must work alone.

      
      
      

    Week #11, #12, #13, and #14 Guide:
    The DMD Electronic Billboard Project.

  • 1- You need to create a folder called "labs".
  • 2- Click here Lab 12 GDF file for the DMD Electronic Billboard Project. and place this file in folder "labs".
  • 3- Click here DMD Editor file for the DMD Electronic Billboard Project. and place this file in folder "labs".
  • 4- You must connect a wire from Vcc (triple hole) from top left side of Altera board to Vcc (double hole) closest to the DMD.

  • 5- Complete the work described on the "DMD Project Deadlines" signature form.
  • Click here For a blank programming form .
  • Click here For a CGRAM Helper form .


  • Niagara College Altera Board.