Starting from:
$35

$29

Lab 1 Solution

    • Introduction

This laboratory aims to get you familiar with basic logic gates and combinational circuit design. You will simplify the circuit that is explained below and draw the circuit using Logisim tool with the given gates.


    • IC Pool

74LS04 (Inverter) 74LS08 (AND)

74LS32 (OR)


    • Lab Work

In this assignment, you are expected to perform the operations described in the following section.

3.1    Speci cations

Suppose A and B are 2-bit binary input numbers and X and Y are 1-bit binary output numbers. A and B are represented with A1, A0, B1 and B0 bits respectively where A1 and B1 are the most signi cant bits and A0 and B0 are the least signi cant bits of the relevant number. Your circuit will take A and B as inputs and give the outputs X and Y with the following instructions:










PS:    stands for the XOR operation.

jA    Bj stands for the absolute value of A minus B.

1

You have to use "input pins" and "output pins" for your inputs and outputs, respectively, from the Toolbar at the top of Logisim. Set their labels correctly using the following names. Please, only set \label" property of the \pin" objects, do not add a \label" object onto the Logisim canvas.

Input pins: A1, A0, B1, B0.

Output pins: X, Y.

Each pin corresponds to a digit in a 2-bit binary number. If it is set, then the value of the digit is 1 if reset, then the value of the digit is 0.

3.2    Input Output Examples

    1. Suppose A1A0 = 00 and B1B0 = 10. In this case, A=0 and B=2 in decimal. jA Bj = 2

Since jA  Bj > 1 holds, the output X is 1.

    2. Suppose A1A0 = 10 and B1B0 = 01. In this case, A=2 and B=1 in decimal. jA Bj = 1
Since jA  Bj > 1 does not hold, the output X is 0.

    3. Suppose A1A0 = 01 and B1B0 = 01. In this case, A=1 and B=1 in decimal. (A B)=1

Since (A  B) = 1 is not prime, the output Y is (A0    B0) = (1  1) = 0 .

    4. Suppose A1A0 = 01 and B1B0 = 10. In this case, A=1 and B=2 in decimal. (A B)=2

Since (A  B) = 2 is prime, the output Y is 0.


    • Free Session

There will be a "free session week" after the week which the lab is announced. You will have 2 hours in your free session slot. During the free session, you will try to build your circuit on a breadboard by using IC components, and you will practice how to handle possible problems related to physical circuit.


    • Demo Session

There will be a 2-hour-long "demo session week" following the free session week. In demo session:

You will take a short quiz about the logic concepts that involve the coverage of this lab. You will reconstruct your circuit on your breadboard.

You will show that the circuit drawn in Logisim works as speci ed.


    • Deliverables

        1. Submit the circuit named e1234567.circ prepared in Logisim, which is your preliminary work, until the speci ed deadline. Do not forget to replace e1234567 with your 7-digit student ID. The evaluation of the submission will be a black-box test. You should use CENG version of Logisim which is available on ODTUClass course page. Circuits designed with other Logisim versions, other tools or not named properly will not be graded!


2

    2. In demo session, you will reconstruct and show that the circuit drawn in Logisim works. This part will be graded in lab. Please note that submission of a working circuit is a must to attend DEMO lab sessions.


    • What to Bring in the Lab

Print-out submitted  le of the circuit.

Lab materials and data-sheets of chips. www.alldatasheet.com

Pencil and eraser, as you will have a quiz at the very beginning of the DEMO lab.


    • Cheating Policy

All the lab work should be individual and there is zero tolerance policy for cheating. See the course website for further information about cheating policy.


    • References

CENG Logism Version.










































3

More products