Docsity

Lecture Notes on Memory Elements I | CSCI 0310, Study notes of Computer Science

Partial preview of the text

Download Lecture Notes on Memory Elements I | CSCI 0310 and more Study notes Computer Science in PDF only on Docsity!

CS031 Lecture 5 (^) Page 1

CS

Pascal Van Hentenryck Memory Elements I

Memory Elements (I)

Combinational devices are good for

  • computing Boolean functions
  • pocket calculator

Computers also need to remember things

  • memory elements

Today’s topic

  • how to make computers remember things

Overview

  • latches
  • transparent latches
  • flip-flops

Abstraction Hierarchy

Programming Language Assembly Language Machine Language Sequential Circuit Combinational Circuit Binary Value Voltage Programming Language Assembly Language Machine Language Sequential Circuit Combinational Circuit Binary Value Voltage

Memory Elements

How to remember things with gates

and wires?

Two stable states

  • X = 1 and X’ = 0
  • X = 0 and X’ = 1

This circuit can store one-bit of

information

What do we need now?

  • How to assign a state?
  • How to change the state?

Initial State: [ Q = 1 and Q’ = 0 ]

What if Q Q’ S=0 & R=

Initial State: [ Q = 1 and Q’ = 0 ]

What if Q Q’ S=0 & R=1 0 1

Initial State: [ Q = 1 and Q’ = 0]

What if Q Q’ S=1 & R=0 1 0

Initial State: Q = 0 and Q’ = 1

What if Q Q’ S=1 & R=

Initial State: Q = 0 and Q’ = 1

What if Q Q’ S=1 & R=

Initial State: Q = 0 and Q’ = 1

What if Q Q’ S=1 & R=1 0 0

Initial State: Q = 0 and Q’ = 0

What if Q Q’ S=0 & R=0 (S 1 st ) 0 1

Initial State: Q = 0 and Q’ = 0

What if Q Q’ S=0 & R=0 (R 1 st )

Initial State: Q = 0 and Q’ = 0

What if Q Q’ S=0 & R=0 (same time)??

Problems with Latches

Race conditions

  • unpredictability of results

Possibilities

  • Q’=0 and Q=
  • Q’=1 and Q=
  • Instability