How does a computer chip store data?


How does a computer chip store data?

In: Technology

There are many different ways of storing data.

Different layers of data storage and different types of chip store different types of data in wildly different ways.

computer chips use binary data to store data,

0000000 is 0
0000001 is 1
0000010 is 2
0000011 is 3

that’s just a simplification but that gets the general idea down. now just store those on a series of on or off switches and you got a cpu baby

The chip itself only stores a very limited amount of data in what’s called a “cache” (there are typically multiple “layers” of this cache: L1, L2, and L3). These caches are used for data that needs to be accessed really quickly and frequently. Data can and will be removed from this cache if it’s not being used and new, needed data will be loaded in.

You then have the more spacious reserves for data like RAM and disk. The same concept applies here. RAM is used for data that needs to be accessed quickly (but not as quickly as the data in the cache). Old/unneeded data will be revoked and more important data will be loaded in to replace it. Disk is the lowest layer and stores everything else. The lower down you go in these layers the longer it takes for data to be retrieved but the more space you have to store the data.

The chip manages the finding/loading of data from these different sources and then does the necessary processing on said data.

Hope that makes sense. Happy to answer follow up Qs.