Home > Common Problem > Does the memory work by reading and writing by address?

Does the memory work by reading and writing by address?

青灯夜游
Release: 2022-07-29 10:58:32
Original
2921 people have browsed it

Yes. The working mode of memory is to store or read various types of information according to the address of the storage unit, collectively referred to as access memory. The carrier that collects storage units in the main memory is called a memory bank. Each unit in the memory bank can store a string of information represented by a binary code. The total number of bits of the information is called the word length of a storage unit; the address of the storage unit is the same as the storage unit. The information in it is in one-to-one correspondence, there is only one unit address, which is fixed, and the information stored in it can be replaced.

Does the memory work by reading and writing by address?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

Yes, the storage works by reading and writing by address.

Memory is a memory component used to store programs and various data information. Memory can be divided into two categories: main memory (referred to as main memory or memory) and auxiliary memory (referred to as auxiliary memory or external memory). It is the main memory that directly exchanges information with the CPU.

The working method of memory is to store or read various types of information according to the address of the storage unit, collectively referred to as access memory. The carrier that collects storage units in the main memory is called a memory bank. Each unit in the memory bank can store information represented by a string of binary codes. The total number of bits of this information is called the word length of a storage unit. There is a one-to-one correspondence between the address of the storage unit and the information stored in it. There is only one unit address, which is fixed, but the information stored in it can be replaced.

The binary code indicating each unit is called the address code. When looking for a certain unit, first give its address code. The register that temporarily stores this address code is called the memory address register (MAR). In order to store information taken out from the storage unit of the main memory or information to be stored in a certain storage unit, a memory data register (MDR) is also set up.

Memory structure

Memory structure In the MCS-51 series microcontroller, the program memory and data memory are independent of each other and have different physical structures. The program memory is read-only memory and the data memory is random access memory. From the perspective of physical address space, there are four storage address spaces, namely on-chip program memory, off-chip program memory, on-chip data memory and off-chip data memory. The I/O interface and external data memory are uniformly addressed.

The purpose of storage management

The purpose of storage management is to provide users with convenient, safe and sufficiently large storage space.

Convenience refers to separating logical addresses and physical addresses. Users only write programs in their respective logical address spaces without having to worry about the details of physical space and physical addresses. The conversion of addresses is automatically completed by the operating system; security refers to Multiple user processes residing in the memory at the same time will not interfere with each other, nor will they access the space occupied by the operating system; a sufficiently large storage space refers to the use of virtual storage technology to logically expand the memory space. This allows users to run larger programs in smaller memory.

For more related knowledge, please visit the FAQ column!

The above is the detailed content of Does the memory work by reading and writing by address?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template