This second laboratory assignment continues the introduction to the prototyping breadboard and Aldec's Active HDL We will be using Aldec's Active-HDL as our primary design tool this quarter - both for schematic entry (drawing circuits) and simulating them (verifying that they will operate correctly when we wire them up). In this assignment you will learn how to do both these things for some basic circuits. As you gain more practice with Active-HDL, we will expect you to use this tool to do a large part of your written assignments throughout the quarter.
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. The overall goal for this lab will be to realize a Boolean expression that you will derive for the "Queen of Hearts" using simple Boolean logic gates included in your laboratory kit. By the end of this lab you should know how to construct and verify the operation of a small circuit (3-6 logic gates) in both Active-HDL and on your prototyping board using switches and LEDs as I/O devices.
Each student should complete this lab individually.
1.3) Encoding for a deck of cards:
Observe that the cards come in groups of 13 (4 suits). Therefore each card has 2 values that distinguish it: suit (Hearts,Clubs,Diamonds,Spades) and value (Ace,2,...,King). Since the suit can be one of four values, we need 2 bits to encode the suit (0, 1, 2, 3 assigned to clubs, diamonds, hearts, spades, respectively). The value ranges from 1 to 13 (1=ace, 2, 3, ... , 10, 11=jack, 12=queen, 13=king).
Encoding values of 0, 14, and 15 are unused. Note that this encoding requires 6 bits:
V3 V2 V1 V0 S1 S0
In general, note that the higher-numbered subscripts denote higher-order (more significant) bits. By convention, bits progress, left to right, from most significant to least significant.
1.4) As an example of using the encoding scheme above, here is the derivation of an expression for recognizing the jack of diamonds.
The diamond suit is numbered 1 and the jack is the card with value 11 . Its encoding with this scheme is 1011 concatenated with 01 to yield 101101 or:
V3 and V2' and V1 and V0 and S1' and S0
To design a circuit to detect the "queen of hearts" you will need to choose the appropriate gates to implement this logic as the lab kit does not include AND gates. You will want your circuit to be as small as possible.
Lab Demonstration/Turn-in Requirements: A TA will "check you off" after you