ECE 485/585 Midterm Exam

Similar documents
ECE 485/585 Midterm Exam

Introduction to memory system :from device to system

COSC 6385 Computer Architecture - Memory Hierarchies (II)

Basics DRAM ORGANIZATION. Storage element (capacitor) Data In/Out Buffers. Word Line. Bit Line. Switching element HIGH-SPEED MEMORY SYSTEMS

Computer Systems Laboratory Sungkyunkwan University

COSC 6385 Computer Architecture - Memory Hierarchies (III)

Contents. Main Memory Memory access time Memory cycle time. Types of Memory Unit RAM ROM

ECE 485/585 Microprocessor System Design

Chapter 5A. Large and Fast: Exploiting Memory Hierarchy

Caches. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

Computer Architecture A Quantitative Approach, Fifth Edition. Chapter 2. Memory Hierarchy Design. Copyright 2012, Elsevier Inc. All rights reserved.

Copyright 2012, Elsevier Inc. All rights reserved.

Computer Architecture. A Quantitative Approach, Fifth Edition. Chapter 2. Memory Hierarchy Design. Copyright 2012, Elsevier Inc. All rights reserved.

Spring 2018 :: CSE 502. Main Memory & DRAM. Nima Honarmand

Memory hierarchy and cache

Copyright 2012, Elsevier Inc. All rights reserved.

A+3 A+2 A+1 A. The data bus 16-bit mode is shown in the figure below: msb. Figure bit wide data on 16-bit mode data bus

CSE502: Computer Architecture CSE 502: Computer Architecture

Lecture 15: DRAM Main Memory Systems. Today: DRAM basics and innovations (Section 2.3)

COMPUTER ARCHITECTURES

LECTURE 5: MEMORY HIERARCHY DESIGN

Adapted from David Patterson s slides on graduate computer architecture

The Memory Hierarchy. Cache, Main Memory, and Virtual Memory (Part 2)

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

ELEC 5200/6200 Computer Architecture and Design Spring 2017 Lecture 7: Memory Organization Part II

The DRAM Cell. EEC 581 Computer Architecture. Memory Hierarchy Design (III) 1T1C DRAM cell

ECE 3055: Final Exam

The University of Adelaide, School of Computer Science 13 September 2018

Internal Memory. Computer Architecture. Outline. Memory Hierarchy. Semiconductor Memory Types. Copyright 2000 N. AYDIN. All rights reserved.

CS650 Computer Architecture. Lecture 9 Memory Hierarchy - Main Memory

Chapter Seven. Memories: Review. Exploiting Memory Hierarchy CACHE MEMORY AND VIRTUAL MEMORY

ECE 341 Midterm Exam

Read and Write Cycles

Lecture 14: Cache Innovations and DRAM. Today: cache access basics and innovations, DRAM (Sections )

EI338: Computer Systems and Engineering (Computer Architecture & Operating Systems)

Chapter 5 Large and Fast: Exploiting Memory Hierarchy (Part 1)

EEM 486: Computer Architecture. Lecture 9. Memory

Mainstream Computer System Components CPU Core 2 GHz GHz 4-way Superscaler (RISC or RISC-core (x86): Dynamic scheduling, Hardware speculation

Mainstream Computer System Components

Topic 21: Memory Technology

Topic 21: Memory Technology

Memory systems. Memory technology. Memory technology Memory hierarchy Virtual memory

DDR2 SDRAM UDIMM MT8HTF12864AZ 1GB

Advanced Parallel Architecture Lesson 4 bis. Annalisa Massini /2015

Computer Organization. 8th Edition. Chapter 5 Internal Memory

COMPUTER ORGANIZATION AND DESIGN The Hardware/Software Interface. 5 th. Edition. Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Lecture 18: DRAM Technologies

a) Memory management unit b) CPU c) PCI d) None of the mentioned

CSE502: Computer Architecture CSE 502: Computer Architecture

Memory. Lecture 22 CS301

EECS150 - Digital Design Lecture 17 Memory 2

Mark Redekopp, All rights reserved. EE 352 Unit 10. Memory System Overview SRAM vs. DRAM DMA & Endian-ness

Chapter Seven. Large & Fast: Exploring Memory Hierarchy

DRAM Main Memory. Dual Inline Memory Module (DIMM)

ECE7995 (4) Basics of Memory Hierarchy. [Adapted from Mary Jane Irwin s slides (PSU)]

ECE 341 Final Exam Solution

Computer Systems Architecture I. CSE 560M Lecture 18 Guest Lecturer: Shakir James

Computer Memory Basic Concepts. Lecture for CPSC 5155 Edward Bosworth, Ph.D. Computer Science Department Columbus State University

Memory Technology. Chapter 5. Principle of Locality. Chapter 5 Large and Fast: Exploiting Memory Hierarchy 1

Lecture: Memory Technology Innovations

M1U51264DS8HC1G, M1U51264DS8HC3G and M1U25664DS88C3G are unbuffered 184-Pin Double Data Rate (DDR) Synchronous

Memory Technology. Caches 1. Static RAM (SRAM) Dynamic RAM (DRAM) Magnetic disk. Ideal memory. 0.5ns 2.5ns, $2000 $5000 per GB

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

ECE 341 Midterm Exam

M2U1G64DS8HB1G and M2Y1G64DS8HB1G are unbuffered 200-Pin Double Data Rate (DDR) Synchronous DRAM Unbuffered Dual In-Line

15-740/ Computer Architecture, Fall 2011 Midterm Exam II

Chapter 8 Memory Basics

Design with Microprocessors

15-740/ Computer Architecture Lecture 19: Main Memory. Prof. Onur Mutlu Carnegie Mellon University

Donn Morrison Department of Computer Science. TDT4255 Memory hierarchies

William Stallings Computer Organization and Architecture 8th Edition. Chapter 5 Internal Memory

Lecture: DRAM Main Memory. Topics: virtual memory wrap-up, DRAM intro and basics (Section 2.3)

EE414 Embedded Systems Ch 5. Memory Part 2/2

ECEN 449 Microprocessor System Design. Memories. Texas A&M University

Memory Hierarchy and Caches

UNIT-V MEMORY ORGANIZATION

Recap: Machine Organization

ECEN 449 Microprocessor System Design. Memories

14:332:331. Week 13 Basics of Cache

Chapter 5 Internal Memory

k -bit address bus n-bit data bus Control lines ( R W, MFC, etc.)

ECE 341 Midterm Exam

Chapter 2: Memory Hierarchy Design (Part 3) Introduction Caches Main Memory (Section 2.2) Virtual Memory (Section 2.4, Appendix B.4, B.

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

Lecture: DRAM Main Memory. Topics: virtual memory wrap-up, DRAM intro and basics (Section 2.3)

SAE5C Computer Organization and Architecture. Unit : I - V

18-447: Computer Architecture Lecture 25: Main Memory. Prof. Onur Mutlu Carnegie Mellon University Spring 2013, 4/3/2013

ECE 485/585 Microprocessor System Design

Computer System Components

EECS150 - Digital Design Lecture 11 SRAM (II), Caches. Announcements

CSE 431 Computer Architecture Fall Chapter 5A: Exploiting the Memory Hierarchy, Part 1

Read this before starting!

Options. Data Rate (MT/s) CL = 3 CL = 2.5 CL = 2-40B PC PC PC

Chapter 5. Large and Fast: Exploiting Memory Hierarchy

CS698Y: Modern Memory Systems Lecture-16 (DRAM Timing Constraints) Biswabandan Panda

Research Collection. A survey of synchronous RAM architectures. Working Paper. ETH Library. Author(s): Gries, Matthias. Publication Date: 1999

Mainstream Computer System Components

Chapter 5B. Large and Fast: Exploiting Memory Hierarchy

Design with Microprocessors

Performance Evolution of DDR3 SDRAM Controller for Communication Networks

Transcription:

ECE 485/585 Midterm Exam Time allowed: 100 minutes Total Points: 65 Points Scored: Name: Problem No. 1 (12 points) For each of the following statements, indicate whether the statement is TRUE or FALSE: (a) The following is an example of an instruction used in memory-mapped I/O: IN AX, 4 (b) In an architecture that restricts memory operand alignment, a double-word write starting at the following hexadecimal address will result in an un-aligned access: 0x4273fb6a (c) A breakpoint inserted in the code by a debugger will result in a synchronous interrupt (d) If the memory access pattern exhibits high spatial locality, it is better to use high order address interleaving (e) In a burst EDO DRAM, two different column addresses must be specified for accesses to two consecutive columns (f) Increasing the associativity of a cache has no impact on compulsory misses Problem No. 2 (9 points) For each of the following questions, encircle ALL the correct answers: (a) When assigning interrupt priorities among multiple interrupt requests, the following factors need to be considered: i. Relative importance of the I/O device that generated the request ii. Length of the Interrupt Service Routine iii. Ability of I/O device to buffer data iv. All of the above (b) A DDR3-1333 DRAM has the following timing parameters: t RCD = 6 cycles, t RP = 6 cycles, t RAS = 14 cycles, t RRD = 3 cycles. What is the minimum time between activating two rows in two different banks? i. 9 ns ii. 30 ns iii. 4.5 ns iv. None of the above (c) When comparing SRAM with DRAM, which of the following statements are correct? i. SRAM has lower density compared to DRAM ii. SRAM is easier to integrate with logic circuits as compared to DRAM iii. SRAM requires multiplexed address lines whereas DRAM does not iv. All of the above

Problem No. 3 (10 points) (a) (6 points) In this problem, your objective is to design a finite state machine that recognizes the particular pattern 10110. The input to the finite state machine is a sequence of binary bits in series. When the FSM sees the pattern 10110 in its most recent input bits, it should output 1, otherwise it should output 0. Draw the state transition diagram for this FSM? (b) (2 points) State ONE advantage of using DMA as compared to using programmed I/O. (c) (2 points) What is the usage of Minimum/Maximum mode in an 8086 CPU?

Problem No. 4 (14 points) (a) (8 points) The following table shows the cache configuration for three different caches (C1, C2 and C3) in terms of cache size, line size and associativity. For each of the caches, fill in the missing entries in the table: (i) Number of sets, (ii) Number of address bits needed for the Index field, (iii) Number of address bits needed for the Tag field. Assume that the processor is using 32-bit addresses: CACHE CACHE SIZE LINE SIZE ASSOCIATIVITY NUMBER OF SETS C1 64 KB 64 B Direct mapped (1-way) C2 256 KB 64 B 8-way Set Associative C3 16 KB 32 B Fully Associative INDEX BITS TAG BITS (b) (3 points) What is the minimum burst length supported in DDR2? Why do DDRx memories not support a burst length of 1? (c) (3 points) Describe a scenario in which a cache write request sent by the processor results in a memory write followed by a memory read.

Problem No. 5 (20 points) A processor uses a dual-rank DDR4-2400 memory system. The following table shows the relevant memory system parameters. Assume that the memory controller is using an open page policy, such that once a row in a bank has been activated, it is kept open as long as there is no conflicting request to a different row in the same bank. DRAM Parameter Value Number of ranks 2 DRAM channel width 64 bits DRAM chip output width 4 bits DRAM chip capacity 16 Gbits Number of banks 16 Row size 4KBytes Burst length 16 Memory controller policy Open page t RCD t CL t RP Answer the following questions: (a) (3 points) Calculate the total DRAM capacity available in the system. (b) (6 points) Calculate the number of bits needed to specify each of the following fields in the physical address: (i) Rank, (ii) Bank, (iii) Column, and (iv) Row.

(c) (6 points) Consider a memory access sequence which requires the processor to read the ENTIRE contents of a single DRAM row R1 in the bank B1. Before this access sequence could proceed, the currently open row in bank B1 (a row different from R1 ) needs to be closed. In the absence of any other memory requests, how long (in nanoseconds) will it take for the memory controller to complete the access sequence to row R1? (d) (5 points) Assume that each DRAM row must be refreshed once in every 64 milliseconds. For that purpose, refresh commands are being periodically sent to each DRAM rank. Each refresh command triggers a parallel refresh operation in every bank within a rank, resulting in 16 rows to be refreshed in each bank. Assume that each refresh command takes 400ns (t RFC). Calculate the fraction of time for which the memory system is unable to service memory requests due to refresh activity.