[Soft test site analysis] Software designer--main memory and cache address mapping method

1. Title

In the address mapping method between main memory and Cache, the ____ method can realize that any piece of any main memory can be loaded into any position in the Cache, and only needs to be replaced when it is full.
A Fully connected
B Direct mapping
C Group connected
D Series and parallel

2. Theory

There are three address mapping methods, direct mapping, full associative mapping, and group associative mapping.

2.1 Direct image

The blocks in the main memory correspond to the blocks in the Cache, and the blocks in the main memory can only be placed in the same block number of the Cache memory.
Advantages: simple address conversion.
Disadvantages: poor flexibility.

2.2 Fully connected

Allow any block of main memory to be transferred to any block of Cache.
Advantages: very flexible.
Disadvantages: complex changes and slow speed.

2.3 Group associative mapping

It is a compromise between the first two methods. The Cache blocks are divided into groups, the group number is determined by direct mapping, and the block number is determined by full associativity within the group.

3. Analysis

According to the theoretical part, D is definitely wrong. If you see any word, choose A.

Guess you like

Origin blog.csdn.net/woshisangsang/article/details/108554677