Chapter 2 (Part 2) -Logic circuits & Number systems

studied byStudied by 1 person
0.0(0)
learn
LearnA personalized and smart learning plan
exam
Practice TestTake a test on your terms and definitions
spaced repetition
Spaced RepetitionScientifically backed study method
heart puzzle
Matching GameHow quick can you match all your cards?
flashcards
FlashcardsStudy terms and definitions

1 / 22

encourage image

There's no tags or description

Looks like no one added any tags here yet for you.

23 Terms

1

Rules for Combinational Circuit

  1. Never combine two input wires.

  2. A single input wire can be split partway and used as input for two separate gates.

  3. An output wire can be used as input.

  4. No output of a gate can eventually feed back into that gate.

New cards
2

Constructing the Input/Output Table for a circuit

To construct the entire input/output table for a circuit, trace through the circuit to find the corresponding output signals for each possible combination of input signals.

<p>To construct the entire input/output table for a circuit, <mark data-color="blue">trace through the circuit to find the corresponding output signals for each possible combination of input signals.</mark></p>
New cards
3

Boolean variable & Boolean Expression Definitions

Any variable, such as a statement variable or an input signal, that can take one of only two values is called a Boolean variable. An expression composed of Boolean variables and the connectives and , or , ~ is called a Boolean expression.

New cards
4

How to find a Boolean expression for a circuit

  1. Trace through the circuit from left to right, indicating the output of each gate.

  2. Combine all of those Boolean expressions into a single one

<ol><li><p>Trace through the circuit from left to right, indicating the output of each gate. </p></li><li><p>Combine all of those Boolean expressions into a single one</p></li></ol>
New cards
5

A recognizer

A recognizer is a circuit that outputs a 1 for exactly one particular combination of input signals and outputs 0’s for all other combinations.(in other words: the circuit only has 1 input in its table)

<p>A recognizer is<mark data-color="blue"> a circuit that outputs a 1 for exactly one particular combination of input signals and outputs 0’s for all other combinations.</mark><em>(in other words: the circuit only has 1 input in its table)</em></p>
New cards
6

DCircuit Corresponding to a Boolean Expression

  1. Write the input variables in a column on the left side of the diagram.

  2. The logical connectives represent the gates.

  3. Logical connectives always correspond to the order of the gates.

<ol><li><p>Write the input variables in a column on the left side of the diagram.</p></li><li><p>The logical connectives represent the gates.</p></li><li><p>Logical connectives always correspond to the order of the gates.</p></li></ol>
New cards
7

finding a Boolean expression corresponding to a given input/output table.

  1. First construct a Boolean expression by identifying each row in the input/output table for which the output is 1.

  2. For each such row, construct an and expression that produces a 1 (or true) for the exact combination of input values for that row and a 0 (or false) for all other combinations of input values.

(page 111-113)

New cards
8

Digital logic circuits equivalency

Two digital logic circuits are equivalent if, and only if, their input/output tables are identical.

Note: Since logically equivalent statement forms have identical truth tables, you can deter-mine that two circuits are equivalent by finding the Boolean expressions corresponding to the circuits and showing that these expressions, regarded as statement forms, are logi-cally equivalent.

New cards
9
<p>Simplifying a digital circuit</p>

Simplifying a digital circuit

In general, you can simplify a combinational circuit by finding the corresponding Boolean expression, using the properties listed in Theorem 2.1.1 to find a Boolean expression that is shorter and logically equivalent to it (when both are regarded as statement forms), and constructing the circuit corresponding to this shorter Boolean expression.

<p>In general, you can simplify a combinational circuit by <mark data-color="blue">finding the corresponding Boolean expression, using the properties listed in Theorem 2.1.1 to find a Boolean expression that is shorter and logically equivalent to it </mark>(when both are regarded as statement forms), and constructing the circuit corresponding to this shorter Boolean expression.</p>
New cards
10

NAND and NOR Gates

  • The output signal of a NAND-gate is 0 when, and only when, both input signals are 1

  • The output signal for a NOR-gate is 1 when, and only when, both input signals are 0.

The logical symbols corresponding to these gates are: (| for NAND) called a Sheffer stroke. And (↓ for NOR) called a Peirce.

<ul><li><p>The output signal of a NAND-gate is 0 when, and only when, both input signals are 1</p></li><li><p>The output signal for a NOR-gate is 1 when, and only when, both input signals are 0. </p></li></ul><p>The logical symbols corresponding to these gates are:<strong><em> (| for NAND) called a Sheffer stroke. And  (↓ for NOR) called a Peirce.</em></strong></p>
New cards
11

Binary notation

Binary notation is a number system that uses only two digits, 0 and 1, to represent numbers. To convert a decimal (base 10) integer to binary, we use a process called repeated division by 2.

New cards
12

Converting a Decimal to a Binary Number

Steps Involved:

  1. Divide the decimal number by 2: Perform integer division and note the remainder.  

  2. Repeat: Divide the quotient obtained in step 1 by 2 again, noting the remainder.  

  3. Continue: Keep repeating this process until the quotient becomes 0.

  4. Read Binary Number: The binary representation is the sequence of remainders read from bottom to top.

<h4 collapsed="false" seolevelmigrated="true">Steps Involved:</h4><ol><li><p><strong>Divide the decimal number by 2:</strong> Perform integer division and note the remainder. &nbsp;</p></li><li><p><strong>Repeat:</strong> Divide the quotient obtained in step 1 by 2 again, noting the remainder. &nbsp;</p></li><li><p><strong>Continue:</strong> Keep repeating this process until the quotient becomes 0.</p></li><li><p><strong>Read Binary Number:</strong> The binary representation is the sequence of remainders read from bottom to top.</p></li></ol>
New cards
13

Converting a Binary to a Decimal Number

Steps Involved:

  1. Assign Powers of 2: Write down the binary number and assign powers of 2 to each digit, starting from 0 on the rightmost digit and increasing by 1 for each subsequent digit to the left.

  2. Multiply and Add: Multiply each binary digit by its corresponding power of 2.

  3. Sum the Products: Add the results of the multiplications to get the decimal equivalent

<p>Steps Involved:</p><ol><li><p><strong>Assign Powers of 2:</strong> Write down the binary number and assign powers of 2 to each digit, <mark data-color="blue">starting from 0 on the rightmost digit and increasing by 1 for each subsequent digit to the left.</mark></p></li><li><p><strong>Multiply and Add:</strong> Multiply each binary digit by its corresponding power of 2.</p></li><li><p><strong>Sum the Products:</strong> Add the results of the multiplications to get the decimal equivalent</p></li></ol>
New cards
14

Addition in Binary Notation

  1. Start from the rightmost digit.

  2. Add the corresponding digits from both numbers.

  3. If the sum is 2 (1 + 1), write down 0 and carry over 1 to the next column.

  4. Continue this process for all digits, including the carry-over.

<ol><li><p>Start from the rightmost digit.</p></li><li><p>Add the corresponding digits from both numbers.</p></li><li><p>If the sum is 2 (1 + 1), write down 0 and carry over 1 to the next column.</p></li><li><p>Continue this process for all digits, including the carry-over.</p></li></ol>
New cards
15

Subtraction in Binary Notation

  1. Align the numbers: Place the larger number on top of the smaller one, ensuring digits in the same positions align.

  2. Preform binary subtraction normally.

  3. If the you encountered 0 - 1, borrow 1 from the next column, replace it with 0, and add two ones (1 and 1) to that 0 you’re solving for.

New cards
16

The carry, sum, and the Half-Adder circuit

Half-Adder Circuit: Understanding the half-adder circuit is fundamental in digital electronics and computer engineering because it forms the basis for building more complex arithmetic circuits.

Outputs:

  • Carry: 1 if both inputs (P and Q) are 1; created using an AND gate.

  • Sum: 1 if either P or Q is 1, but not both; created using an XOR gate.

  • Purpose: Adds two binary digits, producing a sum and a carry.

Circuit Name: Half-adder.

(121-123)

<p><strong>Half-Adder Circuit: </strong>Understanding the half-adder circuit is fundamental in digital electronics and computer engineering because it forms the basis for building more complex arithmetic circuits.</p><p>Outputs:</p><ul><li><p><strong>Carry: </strong>1 if both inputs (P and Q) are 1; created using an AND gate.</p></li><li><p><strong>Sum: </strong>1 if either P or Q is 1, but not both; created using an XOR gate.</p></li><li><p><strong>Purpose:</strong> Adds two binary digits, producing a sum and a carry.</p></li></ul><p><strong>Circuit Name:</strong> Half-adder.</p><p>(121-123)</p>
New cards
17

The 8-bit two’s complement

The 8-bit two's complement system is a method of representing signed integers in binary format. It allows for the representation of both positive and negative numbers within a limited range.

How it works:

  1. Positive numbers:

    • The same as in the unsigned binary representation.

    • The leftmost bit (most significant bit or MSB) is always 0.

  2. Negative numbers: The negation of a positive number is found by:

    • Inverting all the bits (1s become 0s and vice versa).

    • Adding 1 to the result.

    • The leftmost bit (MSB) of a negative number is always 1.

(123-125)

<p>The 8-bit two's complement system is a method of representing signed integers in binary format. It allows for the representation of both positive and negative numbers within a limited range.</p><p><strong>How it works:</strong></p><ol><li><p><strong>Positive numbers:</strong></p><ul><li><p>The same as in the unsigned binary representation.</p></li><li><p>The leftmost bit (most significant bit or MSB) is always 0.</p></li></ul></li><li><p><strong>Negative numbers: </strong>The negation of a positive number is found by:</p><ul><li><p>Inverting all the bits (1s become 0s and vice versa).</p></li><li><p>Adding 1 to the result.</p></li><li><p>The leftmost bit (MSB) of a negative number is always 1.</p></li></ul></li></ol><p>(123-125)</p>
New cards
18

Addition and Subtraction with Integers in Two’s Complement Form

To add two integers in the range 2128 through 127 whose sum is also in the range 2128 through 127:

  • Convert both integers to 8-bit two's complement: This is a way to represent positive and negative numbers using 8 bits.

  • Add the numbers normally: Just add the binary numbers like you would add regular numbers.

  • Ignore any overflow: If the result is too big (more than 8 bits), just keep the last 8 bits.

<p>To add two integers in the range 2128 through 127 whose sum is also in the range 2128 through 127: </p><ul><li><p><strong>Convert both integers to 8-bit two's complement:</strong> This is a way to represent positive and negative numbers using 8 bits.</p></li><li><p><strong>Add the numbers normally:</strong> Just add the binary numbers like you would add regular numbers.</p></li><li><p><strong>Ignore any overflow:</strong> If the result is too big (more than 8 bits), just keep the last 8 bits.</p></li></ul><p></p>
New cards
19

Hexadecimal Notation

hexadecimal notation is also called Base-16 notation. Hexadecimal notation is based on the fact that any integer can be uniquely expressed as a sum of numbers of the form:

d.16n, where each n is a nonnegative integer and each d is one of the integers from 0 to 15.

<p>hexadecimal notation is also called <strong>Base-16 notation.</strong> Hexadecimal notation is based on the fact that any integer can be uniquely expressed as a sum of numbers of the form:</p><p><strong>d.16<sup>n</sup></strong>, where each n is a nonnegative integer and each d is one of the integers from 0 to 15.</p>
New cards
20

Converting from Hexadecimal to Decimal Notation

To convert a hexadecimal number to decimal, follow these steps:

  1. Identify the place values: For each digit in the hexadecimal number, determine its place value. The rightmost digit is in the units place, the second from the right is in the 16s place, and so on.

  2. Multiply each digit by its place value: Multiply each digit in the hexadecimal number by its corresponding place value.

  3. Sum the products: Add up all the products calculated in step 2.

<p>To convert a hexadecimal number to decimal, follow these steps:</p><ol><li><p><strong>Identify the place values:</strong> For each digit in the hexadecimal number, determine its place value. The rightmost digit is in the units place, the second from the right is in the 16s place, and so on.</p></li><li><p><strong>Multiply each digit by its place value:</strong> Multiply each digit in the hexadecimal number by its corresponding place value.</p></li><li><p><strong>Sum the products:</strong> Add up all the products calculated in step 2.</p></li></ol><p></p>
New cards
21

Converting from hexadecimal to binary notation.

1. Break Down the Hexadecimal Number: Divide the hexadecimal number into individual digits.

2. Convert Each Hexadecimal Digit to Binary: Use the Hexadecimal table to find the binary equivalent of each hexadecimal digit.

3. Combine the Binary Equivalents: Join the binary equivalents of each digit together.

(128-129)

<p><strong>1. Break Down the Hexadecimal Number: </strong>Divide the hexadecimal number into individual digits.</p><p><strong>2. Convert Each Hexadecimal Digit to Binary: </strong>Use the Hexadecimal table to find the binary equivalent of each hexadecimal digit.</p><p><strong>3. Combine the Binary Equivalents: </strong>Join the binary equivalents of each digit together.</p><p>(128-129)</p>
New cards
22

Converting from binary to Hexadecimal Notation

To convert an integer from binary to hexadecimal notation:

  • Group the digits of the binary number into sets of four, starting from the right and adding leading zeros as needed.

  • Convert the binary numbers in each set of four into hexadecimal digits. Juxtapose those hexadecimal digits.

<p>To convert an integer from binary to hexadecimal notation:  </p><ul><li><p>Group the digits of the binary number into sets of four, starting from the right and adding leading zeros as needed. </p></li><li><p>Convert the binary numbers in each set of four into hexadecimal digits. Juxtapose those hexadecimal digits.</p></li></ul><p></p>
New cards
23

Reading a Memory Dump

The smallest addressable memory unit on most computers is one byte, or eight bits. In some debugging operations a dump is made of memory contents; that is, the contents of each memory location are displayed or printed out in order.

To save space and make the output easier on the eye, the hexadecimal versions of the memory contents are given, rather than the binary versions.

<p>The smallest addressable memory unit on most computers is one byte, or eight bits. In some debugging operations a dump is made of <span style="color: #000000"><mark data-color="#fffabb" style="background-color: #fffabb; color: inherit">memory contents; that is, the contents of each memory location are displayed or printed out in order.</mark></span></p><p><mark data-color="#feffbf" style="background-color: #feffbf; color: inherit">To save space and make the output easier on the eye, the hexadecimal versions of the memory contents are given, rather than the binary versions.</mark></p>
New cards
robot