




Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
this is a research about computer architecture
Typology: Essays (university)
1 / 8
This page cannot be seen from the preview
Don't miss anything!





وزارىلاعلا ميلعتلا ة التعليىلاعلا م العالى األكاديمية الحديثة لعلورتويبمكلا م الكمبيوتر وتكنولوجيا اإلدارىلاعلا ميلعتلا ة بالمعادى Modern Academy For Computer Science and Management Technology In Maadi Academic Year :2019/
وزارىلاعلا ميلعتلا ة التعليىلاعلا م العالى األكاديمية الحديثة لعلورتويبمكلا م الكمبيوتر وتكنولوجيا اإلدارىلاعلا ميلعتلا ة بالمعادى Modern Academy For Computer Science and Management Technology In Maadi
Academic Year 2019/
وزارىلاعلا ميلعتلا ة التعليىلاعلا م العالى األكاديمية الحديثة لعلورتويبمكلا م الكمبيوتر وتكنولوجيا اإلدارىلاعلا ميلعتلا ة بالمعادى Modern Academy For Computer Science and Management Technology In Maadi
-Cache Mapping Technique: - the various Cache mapping technique they're as follows: - (1) Direct Mapping , (2) Associative Mapping, (3) Set Associative Mapping web [1] Consider a cache consisting of 128 blocks of every 16 words, for a total of 2048 works, and assume that the main memory is addressable by 16-bit address. The main memory is 64K which can be viewed as 4K blocks of 16 words each. Direct Mapping: - I. The best way to know the cache locations which keep Memory blocks is by using direct Mapping technique. II. During this block J of the main memory maps on to block J mod 128 of the cache. Therefore, the
وزارىلاعلا ميلعتلا ة التعليىلاعلا م العالى األكاديمية الحديثة لعلورتويبمكلا م الكمبيوتر وتكنولوجيا اإلدارىلاعلا ميلعتلا ة بالمعادى Modern Academy For Computer Science and Management Technology In Maadi main memory blocks 0, 128, 256…. is loaded into the cache is kept at block 0. Block 1, 129, 257…. are kept at block 1 and so on. III. The placement of a block within the cache is decided from the memory address. The memory address is split into three fields, the lower 4-bits selects one among the 16 words in a block. IV. Once the new block enters the cache, the 7-bit cache block field determines the cache positions within which this block should be kept. V. The upper order 5-bits of the memory address of the block are kept in 5 tag bits related to its location in the cache. They determine which one of the 32 blocks that are mapped into this cache position are presently resident within the cache. VI. It's simple to implement, however not flexible. Associative Mapping: - I. This can be a lot of a versatile mapping method, in which the main memory block can be placed into any cache block position. II. In this, 12 tag bits are needed to spot a memory block once it's resident within the cache. III. The tag bits of an address received from the processor are compared to the tag bits of every block of the cache to check if the specified block is there. This can be referred to as Associative Mapping technique. IV. The value of an associated mapped cache is over the price of direct-mapped due to the necessity to look at all 128 tag patterns to see whether or not a block is in the cache. This can be referred to as associative search. Set-Associated Mapping: - I. It's a mix of direct and associative mapping technique. II. Cache blocks are grouped into sets and mapping allows each block of main memory to reside into any block of a selected set. Therefore, the problem of direct mapping is relieved, at a similar time, the hardware value is reduced by decreasing the size of the associative search.
وزارىلاعلا ميلعتلا ة التعليىلاعلا م العالى األكاديمية الحديثة لعلورتويبمكلا م الكمبيوتر وتكنولوجيا اإلدارىلاعلا ميلعتلا ة بالمعادى Modern Academy For Computer Science and Management Technology In Maadi Random Replacement )RR(: -
وزارىلاعلا ميلعتلا ة التعليىلاعلا م العالى األكاديمية الحديثة لعلورتويبمكلا م الكمبيوتر وتكنولوجيا اإلدارىلاعلا ميلعتلا ة بالمعادى Modern Academy For Computer Science and Management Technology In Maadi Websites: 1- https://www.quora.com/What-are-the-advantages-disadvantages-of-different-Cache- Mapping-architectures-Direct-Mapped-Set-Associative-Fully-Associative, 14/5/