Docsity

Memory Timing Diagram: Understanding Read and Write Operations in Computer Architecture - , Assignments of Aerospace Engineering

Partial preview of the text

Download Memory Timing Diagram: Understanding Read and Write Operations in Computer Architecture - and more Assignments Aerospace Engineering in PDF only on Docsity!

Andrew H. Fagg: Embedded Real-Time Systems: Computer 1

Implementing A Read/Write

Memory Module

Inputs:

  • 2 Address bits: A0 and A
  • 1 “chip select” (CS) bit
  • 1 read/write bit (1 = read; 0 = write)
  • 1 clock signal (CLK) Input or Output:
  • Data bit (connected to the “data bus”)

Andrew H. Fagg: Embedded Real-Time Systems: Computer 2

Implementing A Read/Write

Memory Module

With 2 address bits, how many memory elements can we address? How could we implement each memory element?

Andrew H. Fagg: Embedded Real-Time Systems: Computer 4

Memory Module Specification

When chip select is low:

  • No memory elements change state
  • The memory does not drive the data bus

Andrew H. Fagg: Embedded Real-Time Systems: Computer 5

Memory Module Specification

When chip select is high:

  • If R/W is high:
    • Drive the data bus with the value that is stored in the element specified by A1, A
  • If R/W is low:
    • Store the value that is on the data bus in the element specified by A1, A

Andrew H. Fagg: Embedded Real-Time Systems: Computer 7

Memory Timing Diagram

Q A A R/W CS CLK D Data bus not driven

Andrew H. Fagg: Embedded Real-Time Systems: Computer 8

Memory Timing Diagram

Q A A R/W CS CLK D Memory element 2 is initially in a high state

Andrew H. Fagg: Embedded Real-Time Systems: Computer 10

Memory Timing Diagram

Q A A R/W CS CLK D Chip is selected

Andrew H. Fagg: Embedded Real-Time Systems: Computer 11

Memory Timing Diagram

Q A A R/W CS CLK D Address memory element 2

Andrew H. Fagg: Embedded Real-Time Systems: Computer 13

Memory Timing Diagram

Q A A R/W CS CLK D Clock goes low

Andrew H. Fagg: Embedded Real-Time Systems: Computer 14

Memory Timing Diagram

Q A A R/W CS CLK D Memory element 2 changes state to low

Andrew H. Fagg: Embedded Real-Time Systems: Computer 16

Memory Timing Diagram

Q A A R/W CS CLK D Hold time : all inputs must continue to be valid

Andrew H. Fagg: Embedded Real-Time Systems: Computer 17

Memory Timing Diagram II

Q A A R/W CS CLK D

Andrew H. Fagg: Embedded Real-Time Systems: Computer 19

Memory Timing Diagram II

Q A A R/W CS CLK D What happens next?

Andrew H. Fagg: Embedded Real-Time Systems: Computer 20

Memory Timing Diagram II

Q A A R/W CS CLK D On chip select – drive data bus from Q