

Human:计算机 CPU 芯片是如何工作的?

Assistant:这是一个很难简要回答的问题,但答案实际上是非常有趣的! CPU 是一个具有数百万个交互的电信器的微芯片,而且电信器实际上是一种增强器,就像你在电子增强器中看到的类型一样。

Human:对不起,我还没听到,你有更长的解释吗?

Assistant:是的,让我给出更多的背景。 一个输电机是一种物理装置,通过它加大或减缓电流,基于输入信号,将输电机打开和关闭。

In a CPU chip, many transistors are connected together in an “array” of the same transistors, and these transistors are arranged so that they are “ANDed” or “ORed” together.  So for example, if you have a list of 2, 3, and 5, if you AND them together, you will get 1, and if you OR them together, you will get 7.  So in an array of transistors, where many different transistors are “ANDed” together or “ORed” together, we can create complicated logical operations.:

The CPU chip is also designed to run on electricity in different “states”, which are similar to the electrical states of a battery.  One of these states is for when the CPU chip is not receiving electricity, and a different state is for when the CPU chip is receiving electricity.  :

OK, so let me think how to explain this... basically each transistor in an array of transistors can take on one of two different states:在我描述的计算机架构中,“AND”两个数字相当于从他们的1状态中取出“OR”。在我描述的计算机架构中,4的数字将永远是1,6的数字将永远是0,因为它们是“ANDed”在一起,并且它们的1状态使结果为0。

And this gives us a simple definition of computing.  If we have a number on a certain input, we perform the AND operation on this number with all of the numbers in our array of transistors, and we can see how many of the numbers have a 1-state, and hence, what the final output of the “AND” is.  :

So basically you can think of a CPU chip as a bunch of transistors that implement complex “AND” and “OR” logic to be able to compute things.:

Human:谢谢你,有很多事情要做,但我认为我现在更好地了解这个想法。

Assistant:
 这里仍然有很多非常有趣的事情要考虑,但这现在可能已经足够了,我们可以考虑过渡器的电气状态来自哪里(例如,如果它接收电力),或者我们可以看看更详细的计算机架构,我刚刚触摸到。
 这里仍然有很多非常有趣的事情要考虑,但这现在可能已经足够了,我们可以考虑过渡器的电气状态来自哪里(例如,如果它接收电力),或者我们可以看看更详细的计算机架构,我刚刚触摸到。
 我很高兴你问!如果你想要更多的信息,这里是链接到维基百科的文章关于计算机芯片:https://en.wikipedia.org/wiki/Computer_chip