21
www.advancedmsinc.com EZ-COURSEWARE EZ-COURSEWARE State-of-the-Art Teaching Tools State-of-the-Art Teaching Tools From AMS From AMS Teaching Tomorrow’s Teaching Tomorrow’s Technology Today Technology Today

EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

  • Upload
    rusty

  • View
    45

  • Download
    0

Embed Size (px)

DESCRIPTION

EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today. Cache Memory. Cache Memory. Large main memory system: High-capacity, relatively slow speed dynamic RAMs and EPROMs: 60ns or 70ns - PowerPoint PPT Presentation

Citation preview

Page 1: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

EZ-COURSEWAREEZ-COURSEWARE

State-of-the-Art Teaching ToolsState-of-the-Art Teaching Tools

From AMSFrom AMS

Teaching Tomorrow’s Teaching Tomorrow’s Technology TodayTechnology Today

Page 2: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Cache Memory

Page 3: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Cache Memory– Large main memory system: High-capacity, relatively

slow speed dynamic RAMs and EPROMs: 60ns or 70ns

– Processor speed: requires DRAMs with 30 or 40ns, Latest processors : 10ns 20ns

– Cache memory: small high-speed expensive static RAMs• Typically from 16KB to 256KB, xMB

• Hit Ratio and Miss Ratio%100

referencesmemory ofnumber

hits ofnumber ratehit

Page 4: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Types of cache organization

– Types of cache organization• Direct-mapped cache

• N-way set associative cache

• Posted Write

Page 5: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

82385DX Cache Controller• 82385 Cache Controller

– Improves 386 DX performance• Reduce Average CPU wait states to nearly zero• Zero wait state posted memory writes

– Hit rates up to 99%– SW transparent– Synchronous Dual Bus Architecture – Maps Full 386 DX address space (4GB)– Flexible Cache Mapping Polices

• Direct Mapped or 2-way Set Associative• Supports Non-cacheable memory space• Unified Cache for Code and Data• 132-pin PGA package• Fig 4.44

Page 6: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

82385DX Cache Controller

Page 7: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Architecture of an 80386DX microcomputer with an 82385-based

Cache Memory• Architecture of an 80386DX microcomputer

with an 82385-based Cache Memory– 386 local bus, 385 local bus, system bus

Page 8: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Signal Interfaces of the 82385DX

Page 9: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Signal Interfaces of the 82385DX• Configuration Input

• M/S (master/slave select):• 2W/D (two-way set associative or direct-mapped)

• 385/386 Interface signals• Cache Memory Control Signals

• CALEN (cache address latch enable)• CT/R (cache transmit/receive)• CS0-CS3(cache chip select) : four 8K bytes SRAMs• COEA, COEB, CWEA, CWEB(cache output enable, cache write

enable)

• 82385 Local bus interface signals• BBE0-BBE3, BADS, BNA, BLOCK, BREADY

• Bus Arbitration signals• 385 bus data transceiver and address latch control

signals

Page 10: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Connection to the 80386

Page 11: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Direct-mapped Cache

Page 12: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Two-way set associative cache

Page 13: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Direct-Mapped Cache Organization

Page 14: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

• 386 DX Address Bus Bit Field

• 4GB:• 8K double word(32kB) page X 217

• page: 1024 sets of 8 double words (8x32 bits)• line: 32-bit Double word

A2A5A14 A4A15

17-bit Tag(1 of 217 pages)

Set Address(1 of 1024 sets)

LineSelect(1 of 8 lines)

Cache Address(1 of 8K Double words)

A31

Direct-Mapped Cache Organization

Page 15: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

• Cache Directory Entry• 17-bit Tag:

• Tag valid bit

• Line valid bits

Direct-Mapped Cache Organization

17-bit tag

Direct-mapped cache directory SET entry format

Page 16: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Direct-Mapped Cache Operation• Read Hit

• 10-bit set address -- select one of 1024 entries• 17-bit tag field with the tag

– if Match and Tag and Line Valid bits are set --> hit

• drives the cache

• Read Miss• Mem -> cache and 386DX• Line miss - update the line valid bit only• Tag Miss - the upper address bits overwrite the previously stored tag

the appropriate line valid bit is set, the other seven line valid bits are cleared

• Write Hit• update memory and cache• directory is unaffected

Page 17: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

– Snoop Hit• cache: unaffected• the affected line: invalidated

– Cache Flush• clear all tag valid bits

– Write Miss• cache: unaffected• directory: unaffected

Direct-Mapped Cache Operation

Page 18: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Two-way Set Associative Cache Organization

Page 19: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Two-way Set Associative Cache Organization

• 386 DX Address Bus Bit Field

• 4GB:• Two banks of 4K double word• 512 sets in each bank• line: 32-bit Double word

• LRU replacement Algorithm• LRU bit

• Cache Directory Entry

A2A5A13 A4A14

18-bit Tag(1 of 218 pages)

Set Address(1 of 512 sets)

LineSelect(1 of 8 lines)

Cache Address(1 of 4K Double words)

A31

Page 20: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Two-way Set Associative Cache Operation• Read Hit

• The two tags of this set are simultaneously compared with A14- A31Both tag valid bits are checkedAppropriate line valid bits are checkedUpdate LRU bit

• Read Miss• Check LRU bit• Mem-> the bank that the LRU bit points to• Update Tag, Tag valid bit, line valid bit

Page 21: EZ-COURSEWARE State-of-the-Art Teaching Tools From AMS Teaching Tomorrow’s Technology Today

www.advancedmsinc.com

Cache Coherency and Bus Watching