Warmup Approximately what is the largest number that can be - - PowerPoint PPT Presentation

warmup
SMART_READER_LITE
LIVE PREVIEW

Warmup Approximately what is the largest number that can be - - PowerPoint PPT Presentation

Warmup Approximately what is the largest number that can be represented with a signed 32-bit integer? Respond at pollev.com/stevenbell699 EE 201: Boolean equations and logic gates Steven Bell 22 January 2019 By the end of class today, you


slide-1
SLIDE 1

Warmup

Approximately what is the largest number that can be represented with a signed 32-bit integer? Respond at pollev.com/stevenbell699

slide-2
SLIDE 2
slide-3
SLIDE 3

EE 201: Boolean equations and logic gates

Steven Bell 22 January 2019

slide-4
SLIDE 4

By the end of class today, you should be able to:

Write a boolean equation from an English description and vice-versa Write truth tables for AND, OR, XOR, NOT, NAND, NOR, XNOR Draw a logic diagram from a boolean equation and vice-versa Write a truth table from a boolean equation and vice-versa

slide-5
SLIDE 5

Key representations

Logic diagram Boolean equation Truth table AB + C

A B C A B C

0 0 0 1 0 0 1 1 0 1 0 1

Y

slide-6
SLIDE 6

Key representations

Logic diagram Boolean equation Truth table AB + C

A B C A B C

0 0 0 1 0 0 1 1 0 1 0 1

Y

Code

!(A&&B) || C

Circuit diagram English description

Not both apples and bananas...

A B C

Vdd Vdd

slide-7
SLIDE 7

Boolean or boolean?

George Boole

(1815-1864)

(Photo from Wikimedia)

slide-8
SLIDE 8

Buffer AND OR XOR Inverter NAND NOR XNOR

A AB A+B A⊕B A AB A+B A⊕B

A A&&B A||B A!=B !A !(A&&B) !(A||B) A==B 7407 7408 7432 7486 7404 7400 7402 various

A

0 0 1 1

Y A

0 1 1 0

Y B

0 0 1 0

Y A

0 0 1 1 1 1

B

0 0 1 1

Y A

0 1 1 1 1 1

B

0 0 1 1

Y A

0 1 1 0 1 1

B

0 1 1 1

Y A

0 1 1 0 1 1

B

0 1 1 0

Y A

0 0 1 0 1 1

B

0 1 1 0

Y A

0 0 1 1 1 1 Name Logic symbol Logic equation Truth table C++ equivalent 74-series IC

slide-9
SLIDE 9

Why is NAND a big deal?

slide-10
SLIDE 10

For the purposes of this course,

MOS transistors are electrically-controlled switches. They come in two types: They have one terminal that controls the "switch", called the gate. When the transistor is on, current can flow between the other terminals, called the source and drain.

NMOS PMOS

gate gate source drain source drain

Vdd

slide-11
SLIDE 11

Vdd A simple gate

A Y

PMOS: "closed" when gate is low. NMOS: "closed" when gate is high.

slide-12
SLIDE 12

A more complex gate Vdd

A Y A B B

slide-13
SLIDE 13

Bigger equations

We'll use a bar to indicate inversion: You might also see "¬" for inversion: AND takes precedence over OR:

A+B ¬(A+B) AB + C = (AB) + C

(Think multiplication over addition)

slide-14
SLIDE 14

Combining gates

Elements are objects: Nodes are the interconnections: Wires are connected if there's a dot:

slide-15
SLIDE 15

What is combinational?

A circuit is combinational if:

  • 1. It is a discrete logic gate, or
  • 2. It is composed of combinational elements such that:

There are no cycles, and Every node (wire) is only driven by one gate

slide-16
SLIDE 16

Who cares, anyway?

In a combinational circuit,

  • utputs are a function of only the current inputs

Feedback loops can break this! Driving one wire with multiple gates breaks the digital abstraction!

slide-17
SLIDE 17

Translating representations

Logic diagram Boolean equation Truth table AB + C

A B C A B C

0 0 0 1 0 0 1 1 0 1 0 1

Y

slide-18
SLIDE 18

Boolean equation to logic diagram

slide-19
SLIDE 19

Translating representations

Logic diagram Boolean equation Truth table AB + C

A B C A B C

0 0 0 1 0 0 1 1 0 1 0 1

Y

Evaluate

slide-20
SLIDE 20

Translating representations

Logic diagram Boolean equation Truth table AB + C

A B C A B C

0 0 0 1 0 0 1 1 0 1 0 1

Y

Evaluate Standard forms

slide-21
SLIDE 21

Translating representations

Logic diagram Boolean equation Truth table AB + C

A B C A B C

0 0 0 1 0 0 1 1 0 1 0 1

Y

Evaluate Standard forms

Code

!(A&&B) || C

Circuit diagram English description

Not both apples and bananas...

A B C

Vdd Vdd

Next week! Prelab #1!

Self-explanatory (hopefully!)

slide-22
SLIDE 22
  • 1. Read the book (2.3-2.7) and complete the pre-class quiz

For Thursday

Quiz is due at 9AM the day of class, so I can review it cp /ee/201/public_html/quizzes/quiz_02.txt ./ provide ee201 q2 quiz_02.txt www.ece.tufts.edu/ee/201/