next up previous
Next: 3 Supplementary Material Up: Lab 2: Introduction to Previous: 1 Prelab

2 Lab

  1. Write a gate-level Verilog program to implement the half adder circuit.

    Figure 1: Half Adder
    \begin{figure}\begin{center}
%
\input{half_adder.pstex_t}
\end{center} \end{figure}

  2. Assign your two inputs to two of the push buttons and your two outputs to two of the LEDs. Before you continue, ask the TA to check your assignment.

  3. Simulate your designed circuit, perform both functional and timing simulations. Print your waveforms. Are the two waveforms the same? Discuss.

  4. Write a Verilog program to implement the same half adder circuit using dataflow modeling and resimulate your cicuit. Note: you don't have to respecify your waveforms as you have already saved them in a file.

  5. Program your CPLD to implement your circuit and verify that it works. Ask the TA to initial your labbook once you have it working.
  6. Use vectors to describe your inputs and outputs. Send signals to all of the LEDs to have them off when you send them a logic 0 and turn on when you send them a logic 1, and similarly, the input to be logic 1 into your cicuit when to press the button and zero otherwise.

next up previous
Next: 3 Supplementary Material Up: Lab 2: Introduction to Previous: 1 Prelab
Copyright © 2008, Electrical Engineering Department, New Mexico Tech
Last Modified 2008-09-16