How transistors work Gokul J. Krishnan

Modern computers
are revolutionizing our lives,

performing tasks unimaginable
only decades ago.

This was made possible by a long series
of innovations,

but there’s one foundational invention
that almost everything else relies upon:

the transistor.

So what is that,

and how does such a device enable
all the amazing things computers can do?

Well, at their core, all computers
are just what the name implies,

machines that perform
mathematical operations.

The earliest computers were manual
counting devices,

like the abacus,

while later ones used mechanical parts.

What made them computers was having
a way to represent numbers

and a system for manipulating them.

Electronic computers work the same way,

but instead of physical arrangements,

the numbers are represented
by electric voltages.

Most such computers use a type of math
called Boolean logic

that has only two possible values,

the logical conditions true and false,

denoted by binary digits one and zero.

They are represented by high
and low voltages.

Equations are implemented
via logic gate circuits

that produce an output of one or zero

based on whether the inputs satisfy
a certain logical statement.

These circuits perform three fundamental
logical operations,

conjunction, disjunction, and negation.

The way conjunction works is an “and gate”
provides a high-voltage output

only if it receives
two high-voltage inputs,

and the other gates work
by similar principles.

Circuits can be combined to perform
complex operations,

like addition and subtraction.

And computer programs
consist of instructions

for electronically performing
these operations.

This kind of system needs a reliable
and accurate method

for controlling electric current.

Early electronic computers,
like the ENIAC,

used a device called the vacuum tube.

Its early form, the diode,

consisted of two electrodes
in an evacuated glass container.

Applying a voltage to the cathode
makes it heat up and release electrons.

If the anode is at a slightly
higher positive potential,

the electrons are attracted to it,

completing the circuit.

This unidirectional
current flow could be controlled

by varying the voltage to the cathode,

which makes it release more
or less electrons.

The next stage was the triode,

which uses a third electrode
called the grid.

This is a wire screen
between the cathode and anode

through which electrons could pass.

Varying its voltage makes it either repel

or attract the electrons
emitted by the cathode,

thus, enabling fast current-switching.

The ability to amplify signals
also made the triode crucial for radio

and long distance communication.

But despite these advancements,
vacuum tubes were unreliable and bulky.

With 18,000 triodes, ENIAC was nearly
the size of a tennis court

and weighed 30 tons.

Tubes failed every other day,

and in one hour, it consumed the amount
of electricity used by 15 homes in a day.

The solution was the transistor.

Instead of electrodes,
it uses a semiconductor,

like silicon treated
with different elements

to create an electron-emitting N-type,

and an electron absorbing P-type.

These are arranged in three
alternating layers

with a terminal at each.

The emitter, the base, and the collector.

In this typical NPN transistor,

due to certain phenomena
at the P-N interface,

a special region called a P-N junction
forms between the emitter and base.

It only conducts electricity

when a voltage exceeding
a certain threshold is applied.

Otherwise, it remains switched off.

In this way, small variations
in the input voltage

can be used to quickly switch between
high and low-output currents.

The advantage of the transistor lies
in its efficiency and compactness.

Because they don’t require heating,
they’re more durable and use less power.

ENIAC’s functionality can now be surpassed
by a single fingernail-sized microchip

containing billions of transistors.

At trillions of calculations per second,

today’s computers may seem like
they’re performing miracles,

but underneath it all,

each individual operation is still
as simple as the flick of a switch.

现代计算机
正在彻底改变我们的生活,

完成了几十年前无法想象的任务

这是通过
一系列创新实现的,

但有一个基本
发明几乎所有其他事物都依赖于

:晶体管。

那么那是什么,

以及这样的设备是如何实现
计算机可以做的所有惊人事情的呢?

好吧,从本质上讲,所有计算机
都顾名思义,

就是执行
数学运算的机器。

最早的计算机是手动
计数设备,

如算盘,

而后来的计算机则使用机械部件。

使他们成为计算机的原因是有
一种表示数字的方法

和一个操纵它们的系统。

电子计算机的工作方式相同,

但数字不是物理排列,而是

由电压表示。

大多数这样的计算机使用一种称为布尔逻辑的数学类型

,它只有两个可能的值

,逻辑条件真和假,

用二进制数字 1 和 0 表示。

它们以高
电压和低电压为代表。

方程是
通过逻辑门电路实现的,逻辑门电路

根据输入是否满足
某个逻辑语句产生输出 1 或 0。

这些电路执行三种基本的
逻辑运算

:合取、析取和取反。

联合的工作方式是“和门”

只有在接收
两个高压输入时才提供高压输出,

而其他门的
工作原理类似。

可以组合电路来执行
复杂的运算,

例如加法和减法。

计算机程序

以电子方式执行
这些操作的指令组成。

这种系统需要一种可靠
且准确的

电流控制方法。

早期的电子计算机,
如 ENIAC,

使用一种称为真空管的设备。

它的早期形式是二极管,


真空玻璃容器中的两个电极组成。

向阴极施加电压
使其升温并释放电子。

如果阳极处于稍高的
正电势

,电子就会被吸引到阳极上,从而

完成电路。

这种单向
电流可以

通过改变阴极的电压来控制,

从而使其释放
或多或少的电子。

下一个阶段是三极管,

它使用称为栅极的第三个电极

这是
阴极和阳极之间的金属丝网

,电子可以通过它。

改变其电压使其排斥

或吸引
阴极发射的电子,

从而实现快速电流切换。

放大信号的能力
也使得三极管对于无线电

和长距离通信至关重要。

但尽管取得了这些进步,
真空管仍然不可靠且体积庞大。

ENIAC 拥有 18,000 个三极管,
几乎有网球场那么大

,重达 30 吨。

管子每隔一天就坏一次

,在一个小时内,它
消耗了 15 个家庭一天的用电量。

解决方案是晶体管。

它不使用电极,而是使用半导体,

例如
用不同元素处理的硅,

以产生发射电子的 N 型

和吸收电子的 P 型。

它们排列在三个
交替的层中

,每个层都有一个端子。

发射极、基极和集电极。

在这种典型的 NPN 晶体管中,

由于
P-N 界面的某些现象,在发射极和基极之间形成

了一个称为 P-N 结的特殊区域

它仅

在施加超过
一定阈值的电压时才导电。

否则,它保持关闭状态。

通过这种方式,
输入电压的微小变化

可用于在
高输出电流和低输出电流之间快速切换。

晶体管的优势
在于其效率和紧凑性。

因为它们不需要加热,
所以它们更耐用且耗电量更少。

ENIAC 的功能现在可以
被一个

包含数十亿个晶体管的指甲大小的微芯片所超越。

以每秒数万亿次计算,

今天的计算机
似乎正在创造奇迹,

但在这一切之下,

每个单独的操作仍然
像轻按开关一样简单。