0 votes 0 votes If a 16-way Set Associative cache is made up of 64 bit words , 16 words per line and 8192 sets, How big is the cache in Megabytes ? CO and Architecture co-and-architecture testbook-test-series cache-memory + – Devwritt asked Apr 29, 2017 edited Mar 11, 2019 by Aditi Singh Devwritt 1.8k views answer comment Share Follow See all 4 Comments See all 4 4 Comments reply Prashant. commented Apr 29, 2017 reply Follow Share 8192 $\times$ 16 $\times$ 16 $\times$ 8 Bytes = 213 $\times$ 24 $\times$ 24 $\times$23 = 224 = 16 MB 1 votes 1 votes Devwritt commented Apr 29, 2017 reply Follow Share Thanks for confirmation 1 votes 1 votes elakashi sharma commented Apr 30, 2017 reply Follow Share Why you multiplied with 2^4*2^4*2^3 ? I only did till 8 bytes. 0 votes 0 votes Devwritt commented Apr 30, 2017 reply Follow Share Key point is - 16 words per line. so , we need to multiply by 16 . Correct answer is 16 MB. 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Cache size = [(Number of sets) x (lines per set) x (words per line) x (bits per word) ] /8 bytes = (8192 × 16 × 16 × 64 )/8 Bytes = 213 × 24 × 24 ×23 Bytes = 224 = 16 MB (Divide by 8 because asked in bytes) Devwritt answered Apr 30, 2017 Devwritt comment Share Follow See all 0 reply Please log in or register to add a comment.