Alexander Milenkovich 1 CPE/EE 421/521 Microcomputers 1 U A H U A H U A H CPE/EE 421 Microcomputers THE 68000 CPU HARDWARE MODEL Instructor: Dr Aleksandar Milenkovic Lecture Notes (S20) CPE/EE 421/521 Microcomputers 2 U A H U A H U A H THE 68000 CPU HARDWARE MODEL Chapter 4 68000 interface Timing diagram Minimal configuration using the 68000 CPE/EE 421/521 Microcomputers 3 U A H U A H U A H Timing Example 68000 clock 8 MHz t CYC = 125 ns 68000 CPU t CLAV = 70 ns 68000 CPU t DICL = 15 ns What is the minimum t acc ? 3t CYC =t CLAV +t acc +t DICL 375 = 70 + t acc + 15 t acc = 290 ns CPE/EE 421/521 Microcomputers 4 U A H U A H U A H Figure 4.14 A 68000 Read Cycle
6
Embed
CPE/EE 421 Microcomputers - UAH - Engineering ...milenka/cpe421-04S/lectures/cpe421-s20p4...Alexander Milenkovich 1 CPE/EE 421/521 Microcomputers 1 U A H CPE/EE 421 Microcomputers
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Alexander Milenkovich 1
CPE/EE 421/521 Microcomputers 1
U
A
HU
A
H
U
A
H
CPE/EE 421Microcomputers
THE 68000 CPU HARDWARE MODEL
Instructor: Dr Aleksandar MilenkovicLecture Notes
(S20)
CPE/EE 421/521 Microcomputers 2
U
A
HU
A
H
U
A
H
THE 68000 CPU HARDWARE MODELChapter 4
Ø 68000 interface
Ø Timing diagram
Ø Minimal configuration using the 68000
CPE/EE 421/521 Microcomputers 3
U
A
HU
A
H
U
A
HTiming Example
Ø 68000 clock 8 MHz tCYC = 125 ns
Ø 68000 CPU tCLAV = 70 ns
Ø 68000 CPU tDICL = 15 ns
Ø What is the minimum tacc?
Ø 3 tCYC = tCLAV + tacc + tDICL
Ø 375 = 70 + tacc + 15
Ø tacc = 290 ns
CPE/EE 421/521 Microcomputers 4
U
A
HU
A
H
U
A
H
Figure 4.14
A 68000 Read Cycle
Alexander Milenkovich 2
CPE/EE 421/521 Microcomputers 5
U
A
HU
A
H
U
A
HFigure 4.15
Extended Read Cycle
DTACK* did not go low at least 20ns before the falling edge of state S4
v Designer has to provide logic to control DTACK*
CPE/EE 421/521 Microcomputers 6
U
A
HU
A
H
U
A
H
Figure 4.18
Memory Timing Diagram
Ø The 6116 static memory componentv 2K x 8bit memory – byte -oriented!
v Two 6116’s configured in parallel to allow word accesses
v Eleven address inputs
CPE/EE 421/521 Microcomputers 7
U
A
HU
A
H
U
A
H
Figure 4.17
Ø Assumptions:v R/W* is high for the duration of the read cyclev OE* is low
Memory Timing Diagram, cont’d
(min 200ns – address stable)
(max 200ns)
(max 15ns)
Data is floating
(max 50ns)
(usually derived from UDS*/LDS*)
CPE/EE 421/521 Microcomputers 8
U
A
HU
A
H
U
A
HD00
D07
D08
D15
A12
A23
A01
A11
A01
A11
A01
A11
Figure 4.19
Connect
ing T
he 6
116 R
AM
to a
68000 C
PU
No operation111100Lower byte read010100Upper byte read101000
Word read000000No operation11XX1XNo operation11XXX1OperationCS2*CS1*LDS*UDS*RAMCS*AS*
OutputsInputs
Alexander Milenkovich 3
CPE/EE 421/521 Microcomputers 9
U
A
HU
A
H
U
A
H
Figure 4.20
Connect
ing T
he 6
116 R
AM
to a
68000 C
PU
Tim
ing D
iagra
m
Turnoff time70+10+60 =
140ns
70ns
10ns
60ns
CPE/EE 421/521 Microcomputers 10
U
A
HU
A
H
U
A
HTiming Example
Ø 68000 clock 8 MHz tCYC = 125 nsv 68000 CPU tCLAV = 70 ns
v 68000 CPU tDICL = 15 nsv What is the minimum tacc?
v 3 × t CYC > tCLAV + tacc + tDICL
v 375 > 70 + tacc + 15v tacc < 290 ns (or t AA from the timing diagram, access time)
Ø For the 12.5MHz version of 68000 tCYC = 80 nsv 68000 CPU tCLAV = 55 ns
v 68000 CPU tDICL = 10 ns
v 3×80 > 55 + tacc + 10v tacc < 175 ns
Ø Remember, maximum tAA for the 6116 RAM was 200 ns
CPE/EE 421/521 Microcomputers 11
U
A
HU
A
H
U
A
H
68000 Write Cycle
Ø 68000 transmits a byte or a word to memory or a peripheral
Ø Essential differences:v The CPU provides data at the beginning of a write cycle
v One of the bus slaves (see later) reads the data
Ø In a read cycle DS* and AS* were asserted concurrentlyThis will be not a case here!
Ø Reason for that: 68000 asserts DS* only when the contents of data bus have stabilizedv Therefore, memory can use UDS*/LDS* to latch data from
the CPU
CPE/EE 421/521 Microcomputers 12
U
A
HU
A
H
U
A
HSimplified write cycle timing diagram
In a write cycle: UDS*/LDS* is asserted
one cycle after AS*
Figure 4.22
Alexander Milenkovich 4
CPE/EE 421/521 Microcomputers 13
U
A
HU
A
H
U
A
HFigure 4.23
Ø Follow this sequence of events in a write cycle:v Address
stablev AS* asserted
v R/W* brought low
v Data validv DS* asserted
CPE/EE 421/521 Microcomputers 14
U
A
HU
A
H
U
A
H
Figure 4.24
Write Cycle Timing Diagram of a 6116 RAM
Address setup time(min 20ns)
Address valid to end of write(min 120ns)
Write pulse width(min 90ns)
Write recovery time(min 10ns)
CPE/EE 421/521 Microcomputers 15
U
A
HU
A
H
U
A
HWrite Cycle Timing Diagram of a 6116 RAM, cont’d
Ø Write cycle ends with either CS* or WE* being negated (CS* and WE* internally combined)
Ø An address must be valid for at least tAS nanoseconds before WE* is asserted
Ø Must remain valid for at least tWR nanoseconds after WE* is negated
Ø Data from the CPU must be valid for at least tDW nanoseconds before WE* is negated
Ø Must remain valid for at least tDH nanoseconds after the end of the cycle
CPE/EE 421/521 Microcomputers 16
U
A
HU
A
H
U
A
HDesigning a Memory Subsystem, an example
Ø Design a M68000 memory subsystem usingv Two 32K × 8 RAM chips residing at address $ 00 8000
v Two 8K × 8 RAM chips residing in the consecutive window
v LS 138 (3 to 8 decoder) and basic logic gates
Ø Solutionv 32K is 4 × 8K
=> Let’s split the address space into 8K modulesv In total, we have five (4+1) 8K windows
v To address each line in 8K window => 13 bits (23*210 = 213 = 8K)
v To address five modules we need 3 bitsv Don’t forget that there is no A0, we will use LDS/UDS