1)A 13 bit address 8 bit parallelism processor has a 1KB EPROM at address 4K and it is sure that no address in the 5K-6K is used. What is the simplest.

Slides:



Advertisements
Similar presentations
Page Table Implementation
Advertisements

Cache Memory Exercises. Questions I Given: –memory is little-endian and byte addressable; memory size; –number of cache blocks, size of cache block –An.
1 Memory hierarchy and paging Electronic Computers M.
1 Lecture 13: Cache and Virtual Memroy Review Cache optimization approaches, cache miss classification, Adapted from UCB CS252 S01.
Quiz 4 Solution. n Frequency = 2.5GHz, CLK = 0.4ns n CPI = 0.4, 30% loads and stores, n L1 hit =0, n L1-ICACHE : 2% miss rate, 32-byte blocks n L1-DCACHE.
University of Amsterdam Computer Systems – cache characteristics Arnoud Visser 1 Computer Systems Cache characteristics.
Virtual Memory. Hierarchy Cache Memory : Provide invisible speedup to main memory.
Virtual Memory main memory can act as a cache for secondary storage motivation: Allow programs to use more memory that there is available transparent to.
CSE 490/590, Spring 2011 CSE 490/590 Computer Architecture Virtual Memory I Steve Ko Computer Sciences and Engineering University at Buffalo.
Homework 2 Review Cornell CS Calling Conventions int gcd(int x, int y) { int t, a = x, b = y; while(b != 0) { t = b; b = mod(a, b); a = t; } return.
CS Lecture 10 Improving Direct-Mapped Cache Performance by the Addition of a Small Fully-Associative Cache and Prefetch Buffers N.P. Jouppi Proceedings.
6/12/2015Page 1 Exploiting Memory Hierarchy Chapter 7 B.Ramamurthy.
CS 333 Introduction to Operating Systems Class 11 – Virtual Memory (1)
The Memory Hierarchy II CPSC 321 Andreas Klappenecker.
Virtual Memory. Why do we need VM? Program address space: 0 – 2^32 bytes –4GB of space Physical memory available –256MB or so Multiprogramming systems.
Sarah Diesburg Operating Systems CS 3430
1  1998 Morgan Kaufmann Publishers Chapter Seven Large and Fast: Exploiting Memory Hierarchy (Part II)
©UCB CS 161 Ch 7: Memory Hierarchy LECTURE 24 Instructor: L.N. Bhuyan
Cache Organization of Pentium
CMPE 421 Parallel Computer Architecture
Lecture 19: Virtual Memory
The Memory Hierarchy 21/05/2009Lecture 32_CA&O_Engr Umbreen Sabir.
IT253: Computer Organization
Caches in Systems COMP25212 Cache 4. Learning Objectives To understand: –“3 x C’s” model of cache performance –Time penalties for starting with empty.
Virtual Memory Expanding Memory Multiple Concurrent Processes.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
Chapter 91 Logical Address in Paging  Page size always chosen as a power of 2.  Example: if 16 bit addresses are used and page size = 1K, we need 10.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
1  2004 Morgan Kaufmann Publishers Chapter Seven Memory Hierarchy-3 by Patterson.
Memory Hierarchy How to improve memory access. Outline Locality Structure of memory hierarchy Cache Virtual memory.
Processor Memory Processor-memory bus I/O Device Bus Adapter I/O Device I/O Device Bus Adapter I/O Device I/O Device Expansion bus I/O Bus.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 5:
Page Table Implementation. Readings r Silbershatz et al:
Memory Hierarchies Sonish Shrestha October 3, 2013.
Virtual Memory Review Goal: give illusion of a large memory Allow many processes to share single memory Strategy Break physical memory up into blocks (pages)
Exam 2 Review Two’s Complement Arithmetic Ripple carry ALU logic and performance Look-ahead techniques, performance and equations Basic multiplication.
Memory Hierarchy and Cache Design (4). Reducing Hit Time 1. Small and Simple Caches 2. Avoiding Address Translation During Indexing of the Cache –Using.
3/1/2002CSE Virtual Memory Virtual Memory CPU On-chip cache Off-chip cache DRAM memory Disk memory Note: Some of the material in this lecture are.
COMP SYSTEM ARCHITECTURE CACHES IN SYSTEMS Sergio Davies Feb/Mar 2014COMP25212 – Lecture 4.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 33 Paging Read Ch. 9.4.
Memory Management & Virtual Memory. Hierarchy Cache Memory : Provide invisible speedup to main memory.
Memory: Page Table Structure
CS 704 Advanced Computer Architecture
Address – 32 bits WRITE Write Cache Write Main Byte Offset Tag Index Valid Tag Data 16K entries 16.
Cache Organization of Pentium
Tutorial Nine Cache CompSci Semester One 2016.
Memory COMPUTER ARCHITECTURE
COMP SYSTEM ARCHITECTURE
Caches in Systems Feb 2013 COMP25212 Cache 4.
Virtual Memory Use main memory as a “cache” for secondary (disk) storage Managed jointly by CPU hardware and the operating system (OS) Programs share main.
Sarah Diesburg Operating Systems CS 3430
Memory Hierarchy Virtual Memory, Address Translation
CS-301 Introduction to Computing Lecture 17
CS510 Operating System Foundations
Exploiting Memory Hierarchy Chapter 7
TLC: A Tag-less Cache for reducing dynamic first level Cache Energy
Sarah Diesburg Operating Systems CS 3430
Lecture 22: Cache Hierarchies, Memory
Direct Mapping.
Lecture 29: Virtual Memory-Address Translation
Memory Hierarchy Memory: hierarchy of components of various speeds and capacities Hierarchy driven by cost and performance In early days Primary memory.
Chap. 12 Memory Organization
Lecture 15: Memory Design
Comparisons in advance processors
Computer System Design Lecture 11
Cache - Optimization.
Sarah Diesburg Operating Systems CS 3430
4.3 Virtual Memory.
Memory Management & Virtual Memory
CS703 - Advanced Operating Systems
Presentation transcript:

1)A 13 bit address 8 bit parallelism processor has a 1KB EPROM at address 4K and it is sure that no address in the 5K-6K is used. What is the simplest CS of the EPROM? 2)If a processor uses a rectangular clock whose frequency is 2 GHz and the duty cycle of the clock is 33% how long is each one of the two half periods? 3)A full associative cache (without validity and other status bits) contains 64 slots and its lines are 8 bytes. If the size of the cache in bits is 4928, how many are the address bits of the processor? 4)The TLB (set associative – 4 ways) of a paged 32 bit address processor (4KB pages) has 32 slots: what is the size in bits of the TLB?

1)A 13 bit address 8 bit parallelism processor has a 1KB EPROM at address 4K and it is sure that no address in the 5K-6K is used. What is the simplest CS of the EPROM? 13 bit address => A12…A00 => 8K address space CS4K = A12 !A11 !A10 but the CS5K = A12 !A11 !A10 is not used so CS4K = A12 !A11 !A10 or A12 !A11 !A10 = A12 !A11 (!A10 or A10) = A12 !A11 1 = A12 !A11 And in fact this would correspond to a 2K device in a 8K address space => only 4 devices! 2)If a processor uses a rectangular clock whose period of 2 GHz and the duty cycle of the clock is 30% how long is each one of the two half periods? 2GHz => 500psec 1/3 2/3 166,6 psec 333,3 psec

3)A full associative cache (without validity and other status bits) contains 64 slots and its lines are 8 bytes. If the size of the cache in bits is 4928, how many are the address bits of the processor? 64 slots x 8bytes/line x 8bits/byte = 4096 bit for the lines 4928 – 4096 = 832 for the tags 64 slots => 832 / 64 = 13 bit/tag 13 bit/tag + 3 bits/line = 16 bit address 4)The TLB (set associative – 4 ways) of a paged 32 bit address processor (4KB pages) has 32 slots: what is the size in bits of the TLB (not considering validity and status bits)? 2x[ 32 slots x 4 ways/slots x (32 address bit -12bit address in page)] = 2 x [32 x4 x20] = 5120 bit Why x2 ? Because TLB tag and data have the same size (the TLB transforms the high part of the virtual address into the high part of the physical address. The in page address is the same)