CSE370 Laboratory Assignment 2

Computer Aided Design Tools for Digital Design

Distributed: October 9, 2006
Due: By the end of lab section


In this laboratory assignment you will continue to learn how to use Active-HDL to enter basic schematic diagrams and simulate them. We will expect you to use this tool to do a large part of your written assignments. By the end of this lab you should feel comfortable entering a schematic for a design, setting up simulation stimuli, and verifying that your circuit is correct.

Each student should complete this lab individually.


1.      Complete the entire Tutorial #1 for Aldec Active-HDL.  You can get a head start on the tutorial before your lab session so you will have plenty of time to complete the lab. 

1.      Design the following IF-THEN-ELSE circuit. It has three inputs, S, A and B, and one output, ‘out’. This circuit acts like a data switch: If S = 1, then it “connects” the output to A; if S = 0, it “connects” the output to B.  In pseudo code this might look like:

if (S) then out = A;
else out = B;

Draw a schematic for this circuit using Active-HDL and the chip parts from the lib370 library (e.g. c7400).  Try to use as few chips as possible. Using overlapping clock stimulators, simulate this circuit for all possible input values and show that your circuit computes the right values.  If you are unsure about how to setup and use a clock stimulator, check the Using Stimulators part of Tutorial #1.  Show the result of the simulation to a TA and have him/her check off this part of the lab before you go on to part 3.

2.      Using the schematic from part 2, construct a circuit for this function on the prototyping board, connecting the inputs to switches, and the output to an LED.  Demonstrate your circuit to a TA and have them check you off as having completed this laboratory assignment. They may ask you to show them your work and explain your circuit.