Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize memory in computer principle

2025-03-14 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces you how to implement the memory in the computer principle, the content is very detailed, interested friends can refer to, hope to be helpful to you.

The memory mentioned here is mainly the memory that the data will be lost after the power off, and a core logic gate "or not gate" will be used.

Or non-door also said earlier, that is, the or door is reversed (or the door is if and only if both are 0, the final result is 0, the rest of the combination is 1; after the reverse, that is, when both are 0, the final result is 1, the rest of the combination is 0).

When two or no doors are connected in the following ways:

It produces the ability to remember:

1. By default, when both switches are turned off, the light bulb is off. Because the left OR gate output is 1, the right OR gate output is 0.

2. Suppose the switch above is closed first and the light bulb will be on. Because the left OR gate output is 0, the right OR gate output is 1. Then the light bulb is still on even after the above developer is turned off.

3. Under the condition of 2 (after the upper switch is turned off), as long as the lower switch is closed, the light bulb will go out. Then the switch below is turned off again, and the light bulb is still off.

4. Suppose the switch below is closed first, and the light bulb is still off.

5. So now the circuit has the ability to remember. As long as the light bulb is on, you will know that the last closed switch is the upper switch; when the light bulb is off, you will know that the last closed switch is the lower switch.

Here can be a visual analogy, for example, there is an electric remote control car, it can only forward and backward can not turn. When the forward button is pressed and released, the car goes straight forward; when the back button is pressed and released, the car begins to fall back. So we can judge which button is pressed according to the current driving state of the remote control car.

Note that both switches cannot be turned off at the same time. Suppose the upper switch is closed (the light bulb is on) and then the lower switch is closed (the light bulb is off), and then the upper switch is closed (the light bulb is still off), so when the switch is turned off at the same time, the light bulb is always off, but we can't tell which of the two cases it is.

On the computer principle of how to implement the memory is shared here, I hope that the above content can be of some help to everyone, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report