Memory addressing Purpose
Memory consists of a block of space (storage unit), in order to facilitate the search for each piece of space, we need to identify each space-memory address.
Memory Addressing overview
Chip
The memory is composed of several chips.
Memory capacity
The size of the memory. Memory capacity = number of chips per chip capacity *.
Capacity per chip = The total number of capacity * addresses represented by an address.
Data bus
When the computer processes n-bit data at a time, the bus length is n. Note: The length of the data bus does not necessarily represent the length of an address.
Word
is closely related to the data bus. There are several data bus, then a word is composed of how many bits. such as a 64-bit computer, which indicates that 64-bit data can be processed at one time, 1 words are 64 bits.
Address bus
If an n-bit binary number is required to represent all addresses, the number of address bus is n.
Basic applications for memory addressing
If a memory has only one chip (8*4bit), the capacity of the chip is 32bit (bit), the computer processing 4bit (BITS) of data, memory in 4bit (bit) to address, the chip has the number of addresses, the length of the data bus and the number of address bus respectively?
Analysis:
1. How many addresses does the chip have?
Memory capacity = capacity represented by an address * total number of addresses
Total address = memory capacity/capacity represented by an address
Tip: An address represents the capacity to find "press ..." from the title. The word ", if there is no default as" byte-in-bytes addressing "
Answer: 32bit/4bit=8 an address
2. Length of the data bus
Tip: Find "one-time processing/reading" from the title ... Data "or the length of a word.
Answer: 4bit
3. Number of Address bus
Tip: First to find out the total number of addresses, and then see the need for several 2 decimal notation, then the number of address bus is a few.
Answer: 8 address, need 3 binary number representation. Because 2^3=8, so is 3.
:
Extrapolate
Answer: (1) C. (2) B.
Analysis:
1. Solve main memory capacity (in bytes):
Total number of addresses first: cbfffh-a4000h+1=28000h (hex)
(16^4) +8* (16^3) =2^17+2^15=2^10 (2^7+2^5)
=160*1024 (a) =160k (one)
Then find the main memory capacity: 160K*1B=160KB, that is, 160K bytes.
2. Solve the number of chips
First find the capacity of a chip
8bit=1b
32k*1b=32kb
and find out the number of chips
160kb/32kb=5 (one)
Summarize
In the analysis of memory address problems, we have to start with the problem, according to the dry analysis of what is known, which content is unknown. Through the above analysis, we understand the issue of the way people give information, so even if the topic has changed, it is difficult to fail us.
Memory addressing of computer fundamentals