Logic Values, Combinational and Sequential, Combinational Logic | CS 35101, Study notes of Computer Architecture and Organization

Material Type: Notes; Class: COMPUTER ARCHITECTURE; Subject: Computer Science; University: Kent State University; Term: Fall 2005;

Typology: Study notes

Pre 2010

Uploaded on 08/01/2009

koofers-user-1fd
koofers-user-1fd šŸ‡ŗšŸ‡ø

10 documents

1 / 59

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Computer Architecture
Appendix B
Fall 2005
Department of Computer Science
Kent State University
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b

Partial preview of the text

Download Logic Values, Combinational and Sequential, Combinational Logic | CS 35101 and more Study notes Computer Architecture and Organization in PDF only on Docsity!

Computer Architecture

Appendix B

Fall 2005

Department of Computer Science

Kent State University

Logic Values

  • Logic '0'
    • (^) False, off, deasserted, low
  • Logic '1'
    • True, on, asserted, high

Combinational Logic

  • Built from gates
  • Can be described using a truth table or a

Boolean equation

  • It is possible to translate between all three

representations

AND Gate 1 0 0 1 1 1 0 1 0 0 0 0 A B F F = A ā‹… B

NOT Gate

1 0 0 1 A F

F =

A

Inversion Bubbles

  • (^) Inverters are so commonly used that designers have developed a shorthand notation
  • Instead of using explicit inverters, you can attach bubbles to the inputs or outputs of other gates
B
A A
B

NAND Gate

  • The NAND gate is the combination of an

NOT gate with an AND gate.

The Bubble in front of the gate is an inverter.

Combinational logic

  • How would your describe the output of this

combinational logic circuit?

NAND and NOR gates

  • The NAND and NOR gates are very

popular as they can be connected in more

ways that the simple AND and OR gates.

Exercise 1 – a bit challenging

Complete the Truth Table for the NAND and NOR Gates

1 1 1 0 0 1 0 0 Input Output 1 1 1 0 0 1 0 0 Input Output NAND NOR Hint: Think of the AND and OR truth tables. The outputs for the NAND and NOR are inverted.

Universal Gates

  • Any combinational function can be built

from AND, OR and NOT gates

  • However, there are universal gates that

alone can implement any function

  • NAND and NOR are two such gates
  • NAND and NOR are AND and OR gates

with inverted outputs

Combining Logic Gates

Add the boolean expressions at the output for each AND gate

A B Y C A•B B•C

Combining Logic: Truth Table

Given : Y = (A•B)+(B•C)

1 1 1 1 1 1 0 1 1 0 1 0 1 0 0 0 0 1 1 1 0 1 0 0 0 0 1 0 0 0 0 0 A B C Y

Laws of Boolean Algebra , Babbage (B.3,pB6)

Ā· Identity law: A + 0 = A and A • 1 = A Ā· Zero and One laws: A + 1 = 1 and A • 0 = 0 Ā· Inverse Laws: A + A = 1 and A • A = 0 Ā· Commutative laws: A + B = B + A and A • B = B • A (switch inputs) Ā· Associative laws: A + (B + C) = (A + B) + C and A • (B • C) = (A • B) • C (reorder inputs) Ā· Distributive laws: A • (B + C) = (A • B) + (A • C) and A + (B • C) = (A + B) • (A + C)


Ā· De Morgan’s laws: (A + B) = (A) • (B) and


(A • B) = (A) + (B) (invert inputs)