The memory device used in computers to store programs and data is storage.
Computer memory is divided into two categories. One is the internal memory located in the host computer, also called main memory. It is used to store the currently running program and the data used by the program. It is a temporary memory, such as memory. strip. Internal memory is used frequently by the computer during program execution and is directly accessible during an instruction cycle.
The second is memory belonging to computer external devices, called external memory, referred to as external storage, also called auxiliary storage (referred to as auxiliary storage) such as hard disks, U disks, etc. External memory stores temporarily unused data and programs and is a permanent memory. When needed, external memory requires the computer to read information from an external storage device such as a tape or disk.
How memory works:
Memory is a collection of many storage units, arranged in order of unit numbers. Each unit is composed of a number of binary bits to represent the value stored in the storage unit. This structure is very similar to the structure of an array, so in the VHDL language, an array is usually used to describe the memory. Main memory is the direct exchange of information between memory and CPU.
The working method of main 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.
The address of the storage unit corresponds to the information stored in it. There is only one unit address, which is fixed, but the information stored in it can be replaced.
Reference for the above content: Baidu Encyclopedia—Storage