Probset1 reviewer

Page 1

CS 21 Problem Set 1 University of the Philippines - Diliman College of Engineering Department of Computer Science This problem set is based on previous CS 21 long exams and will serve as a reviewer for the LE1. Answers in this probset will not be submitted.

1

Number Systems

1.1

Problem 1

Convert 55327 to base 2, 8, 10 and 16. (5pts)

1.2

Problem 2

Convert -4306 in 2C. Express your answer in 16 bit hexadecimal. (2pts)

1.3

Problem 3

1. Convert 83245.890625 to IEEE 754 double precision floating-point. (4pts) 2. Convert BEA40000 (in IEEE 754 single precision floating-point) to normalized binary form. (4pts)

2

Memory

2.1

Problem 1

The system depicted in Figure 1 has the following parameters: • transfer time from L1 cache to processor per access: 2ns • search time for L1 cache per access: 2ns • transfer time from L2 cache to L1 cache per access: 3ns • search time for L2 cache per access: 4ns • transfer time from main memory to L2 cache per access: 6 ns • replacement algorithm for L1 cache: FIFO • replacement algorithm for L2 cache: LRU If the program in Code Block 1 is ran 1. What is the hitrate for the L1 cache? (2 pts) 2. What is the hitrate for the L2 cache? (2 pts) 1


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.
Probset1 reviewer by UP CURSOR Library - Issuu