Docsity

Digital Circuits - Lab 2: Combinational Design | EE 260, Lab Reports of Microelectronic Circuits

Toggle sidebar
bg1
CEG/EE 260 Lab 1
Dr. Doom
Lab 2: Combinational Design
CEG/EE 260
PURPOSE
The purpose of this laboratory project is to introduce students to the synthesis of a digital device
consisting exclusively of combinational functionality. In this lab, we will start with a natural lan-
guage description of a device for which will then be designed, simulated, tested, and imple-
mented. In week one of this lab, students will implement a simple 2-bit priority selector and im-
plement the device using a multi-level AND-OR-NOT logic implementation. In week two of this
lab, students will implement this same device using a multi-level NAND implementation.
2-BIT PRIORITY SELECTOR
Consider a simple device that takes two 2-bit binary inputs representing two values ranging from
zero to three. The 2-bit value A is represented by two input variables A1 and A0. Values of A1
and A0 will be used to encode numeric values (in binary) as described below. 2-bit values for the
second 2-bit input B and the 2-bit output C are encoded similarly. The 2-bit output C of the de-
vice will be the greater of the two values presented on the 2-bit inputs A and B.
A1A0
B1B0
C1C0 Value
00 Zero
01 One
10 Two
11 Three
Figure 1: The 2-bit priority selector and value encoding table
Consider a case in which the 2-bit value A encoded the value “One” and the 2-bit value B en-
coded the value “Two”. In this case, the 2-bit value C should encode the greater of these two
values “Two”. At the digital level, the value A would be represented by two input variables A1
and A0 which would have the values 0 and 1, respectively. The value B would be represented by
two input variables B1 and B0 which would have the values 1 and 0 respectively. The output
value C would be represented by two output variables C1 and C0 which should have the values 1
and 0 respectively.
WEEK ONE: Two-level implementation
(15 pts.) The goal of the first week is to design a two-level solution for this device, simulate the
device (and test your design), then to physically realize the device using TTL SSI components.
Please document all of your work in your lab notebook.
Design (5 pts)
1) Construct a truth table that demonstrates completely functionality of this device.
2) Construct a set of Boolean equations in SOP form that describe the required behavior of the
output variables C1 and C0 in terms of the inputs variables A1, A0, B1, and B0.
3) Draw a logic diagram for two-level implementation of your SOP equations.
Simulation (5 pts)
4) Simulate your two-level design.
A1
A0
B1
B0
C1
C0
pf2

Partial preview of the text

Download Digital Circuits - Lab 2: Combinational Design | EE 260 and more Lab Reports Microelectronic Circuits in PDF only on Docsity!

CEG/EE 260 Lab 1 Dr. Doom

Lab 2: Combinational Design

CEG/EE 260

PURPOSE

The purpose of this laboratory project is to introduce students to the synthesis of a digital device consisting exclusively of combinational functionality. In this lab, we will start with a natural lan- guage description of a device for which will then be designed, simulated, tested, and imple- mented. In week one of this lab, students will implement a simple 2-bit priority selector and im- plement the device using a multi-level AND-OR-NOT logic implementation. In week two of this lab, students will implement this same device using a multi-level NAND implementation.

2-BIT PRIORITY SELECTOR Consider a simple device that takes two 2-bit binary inputs representing two values ranging from zero to three. The 2-bit value A is represented by two input variables A1 and A0. Values of A and A0 will be used to encode numeric values (in binary) as described below. 2-bit values for the second 2-bit input B and the 2-bit output C are encoded similarly. The 2-bit output C of the de- vice will be the greater of the two values presented on the 2-bit inputs A and B.

A1A B1B C1C0 Value 00 Zero 01 One 10 Two 11 Three

Figure 1: The 2-bit priority selector and value encoding table

Consider a case in which the 2-bit value A encoded the value “One” and the 2-bit value B en- coded the value “Two”. In this case, the 2-bit value C should encode the greater of these two values “Two”. At the digital level, the value A would be represented by two input variables A and A0 which would have the values 0 and 1, respectively. The value B would be represented by two input variables B1 and B0 which would have the values 1 and 0 respectively. The output value C would be represented by two output variables C1 and C0 which should have the values 1 and 0 respectively.

WEEK ONE: Two-level implementation (15 pts.) The goal of the first week is to design a two-level solution for this device, simulate the device (and test your design), then to physically realize the device using TTL SSI components. Please document all of your work in your lab notebook.

Design (5 pts)

  1. Construct a truth table that demonstrates completely functionality of this device.
  2. Construct a set of Boolean equations in SOP form that describe the required behavior of the output variables C1 and C0 in terms of the inputs variables A1, A0, B1, and B0.
  3. Draw a logic diagram for two-level implementation of your SOP equations.

Simulation (5 pts)

  1. Simulate your two-level design.

A A

B B

C C

CEG/EE 260 Lab 1 Dr. Doom

  1. Test your design thoroughly. Include your full test results (as a truthtable or as a waveform) in your lab book.
  2. Demonstrate your simulation to your lab TA.

Implementation (5 pts)

  1. Draw a schematic diagram for a physical realization of your device. This should be similar to the logic diagram but will also clearly indicate which pins of what devices will be used to im- plement the role of each gate in your physical implementation. You may need to modify your initial design based upon the availability of devices. For example, if you use a 4-input AND gate in your two-level simulation, but there are no 4-input AND gates available in the labora- tory, then you may have to construct the functionality of your 4-input AND gate using three 2-input AND gates. Your schematic diagram should show how you intend to build the actual device that you will demonstrate to your lab TA and should be updated as your design is change due to device availability or other real world factors. Note each update (and the rea- son for it) in your lab notebook.
  2. Implement/realize your device using laboratory devices.
  3. Test the device thoroughly. Make note of each test in your lab notebook. A complete test requires one test for each input assignment - your test should basically be a traversal of your truth table!
  4. Demonstrate your correctly functioning device to your lab TA.

WEEK TWO: NAND implementation (15 pts.) The goal of the second week is to implement the device constructed in week one of this lab using only 2-input NAND gates. Your task is to:

Design (5 pts)

  1. Starting from your SOP equations, construct a multi-level logic diagram to implement the equations using only 2-input NAND gates. You may use as many gates as you wish.

Simulation (5 pts)

  1. Simulate your design.
  2. Test your design thoroughly. Include your full test results (as a truthtable or as a waveform) in your lab book.
  3. Demonstrate your simulation to your lab TA.

Implementation (5 pts)

  1. Draw a schematic diagram for a physical realization of your device.
  2. Implement/realize your device using laboratory devices.
  3. Test the device thoroughly. Make note of each test in your lab notebook.
  4. Demonstrate your correctly functioning device to your lab TA.

Note: Lab projects will often take more than 2 hours to complete. During the laboratory your TA will provide you with the tools and help to get you started. You are expected to complete the laboratory at your own pace. Your labbook is due prior to the start of the next laboratory (check with your TA for details). You can demonstrate your laboratory to the TA during the week after the laboratory is assigned without penalty. For example, you may find it necessary to demonstrate your physical implementation of lab2 week 1 at the start of the lab2 week 2 lab pe- riod or the lab2 week 2 implementation at the start of lab 3.