0 votes 0 votes CO and Architecture co-and-architecture cache-memory + – saxena0612 asked Nov 23, 2017 saxena0612 840 views answer comment Share Follow See all 12 Comments See all 12 12 Comments reply Show 9 previous comments Anu007 commented Nov 23, 2017 reply Follow Share No of sets * No of lines/set = number of lines right ? nitish want to say in this form both are same. 1 votes 1 votes Ashwin Kulkarni commented Nov 23, 2017 reply Follow Share Always tag directory size is number of lines * tag bits (Whether it is direct mapped or associative or set associative) Here it is 8 way set associative Hence, Number of lines = Size of cache/Block size = 219/28 = 211 number of sets = 211/8 = 28 hence PAS = 30 = tag bits + set number + block number 14 8 8 Total tag bits = 14+2+1 =17 tag directory size = no of lines * tag bits = 211 * 17 = 34816 = 34KB 0 votes 0 votes Shubhanshu commented Nov 23, 2017 reply Follow Share Don't worry! Both formulas are same:- In direct Mapping it is = No of lines * Tag bits In set associative it is = No of sets * No of Lines per set * Tag bits Now if you see Bolded part of set associative it is nothing but No of lines (Bolded part) in Direct mapping formula. So, both are basically same. 0 votes 0 votes Please log in or register to add a comment.