Doujin CPU Chan
Doujin CPU Chan
Ayumi
Bang!
Bang!
Clack
Strong as
ever, I see.
le
Ratt
Cr Take a
pu ow break already.
ll d
er You’re ridiculous.
See you
around!
Unbeatable,
huh?
She’s right!
I am strong!
Or actually,
everyone else
is so weak it’s
boring me to Knock
tears.... knock
Excuse me.
Oh, sure!
Do you...
have time
for a game?
I’d love to!
I see...
well then...
FUHAHAHAHAHAHA!
Behold! Unleashed from
The Chasm of darkness!
k
un
Th
What’s he so
excited about?!
It’s just a black
computer!!
What? It’s
just a shogi
board...?
Indeed...
I’m a
busy person,
you know...
h
This laptop, the Cras
Shooting Star, is
y
r
running a program
Fu
of my own design.
Crac
k
ble
R um
And...
it’s stronger I just have to win, right?
I hope you’re ready to
than you! be destroyed...
I lost...?
No way!
stands no chance
against my
Shooting Star!
Even the
national champion
Ayumi Katsuragi...
Be swallowed in
its dark depths and
taste utter defeat!
FUHAHAHAHAHAHAHAHAHA!
I... I can’t
believe it...
I lost to
someone Like what?
like this...?
it also means
that yours truly,
Yuu Kano, the genius huh?
programmer who
brought that CPU to
life, possesses an
equal—
CPU?
No! An even
more impressive
intellect!
9
But why would you
Isn’t a CPU Like this? say that the CPU is
some kind of your computer’s
computer chip? intellect?
What does
a CPU do
anyway?
Only meteorites
crash to earth!
9 times 9
is 81! But We
can all agree it’s
much more practical
Whoa, take to do large
it easy! calculations on
calculators, right?
Ngh... yeah...
Yup, but modern
so computers...
computers are...
Hmm...
Well, digitizing
But what’s information made a
so great lot of new things
about that? possible.
Digital technology
is really important
to many aspects of
modern life.
g and il
Editin Ema
g!
essin
proc
Transfer!
l
Digita
ra
ca me
what are
Whaaaaaaaat! Operations?!! operations?
calculations using
only 1s and 0s.
Plus Not
Min us Or
And
Wait a second...
don’t jump to
conclusions.
Here
comes the You need more
important components than
part! just the CPU!
Fi
st
You have a pretty
Wouldn’t you be a twisted mind, do
little confused? you know that?
The keyboard
and mouse for
your home
computer are
great examples.
The name is
kind of self-
explanatory.
The memory
But here comes an
system?
extremely important The control
point! unit?
Primary memory
ry,” It looks
When we say “memo
we generally mean like this.
primary memory.
Operate on
memory?
Arithmetic
unit
input data
output data
Depending on Program
the operation, data may (instructions)
be retrieved from memory
for input, or the result Primary
of the operation may be Memory
returned back into memory
for storage.*
* The CPU may use either registers or cache memory.
Instructions about
what data to use, and
which operations I see. Programs
to run and in what are directions that
order. tell the computer
what to do.
Please do
it like th is.
Okay!
Program
(instructions) Computer
Human
All those
instructions
are written in
programs.
Control unit
tion
r uc
Inst
Input Output
Arithmetic
Memory
unit
on
The control unit cti Get data from
g ra
m
n stru over there!
reads the program Pro from I
d
instructions from rea mory
me
memory and interprets Then add these two!
them.
Memory
Arith-
metic
n- Unit
Co ol
tr it
Un
t Input
Outpu
the program’s
instructions are
processed!
To understand
Yeah! Now I know what
how the CPU
all the things in the
works, data and
diagram are!
instruction flow
seem really
important...
FUHAHAHAHA!
It pleases me
Wow, he’s all kinds
that you are
of energetic...
grasping the
basics!!
HA HA
HA HA
HA
HA
HA
Well then!
Let us move
on to the He must really
next topic!! like CPUs.
Arithmetic Unit
(ALU)
It performs the
arithmetic and logic
operations we talked
about before.
22 Chapter 1 What Does the CPU Do?
And this is what ALUs
look like.
Input A Input B
F S
Command Status
input/ output
opcode
Y
Output
to produce some
output Y.
Exactly!
F S
Command Status
input/ output
opcode
Output
like addition or
subtraction, for example.
Status
output
This could be
information on So in the case of 5 – 3 = 2,
since the result of the
whether our output
calculation is 2, the status
value was positive or output should say it’s a
negative, for example. positive value, right?
Decisions?
Conditions?
Let’s use a
concrete
example. I use ATMs
sometimes.
Let’s assume that this
computer controls an ATM.
Cash Deposit
Account Account
History balance
Account
statement
So depressing...
The operation result was positive. The operation result was negative.
Please Insufficie
take nt
your m ba la nce
oney.
Ack...
Heh
heh
heh
a a !
Ug a
Of course, I was a
little frustrated that
I lost at shogi...
...?
Heh ehe...
Don’t take it
hostage!!
Information technology (IT) became an everyday phrase back in the 20th century. The
term is frequently heard when people talk about the internet and other computer tech-
nology, but it’s worth noting that this term predates the use of computers.
First off, what does the word information actually mean?To put it simply, information
is everything in our environment that can be registered with any of our five senses.
five Nature
The es
s
se n
h ,
touc
ring,
n, h ea d smell
Visio , a n
taste
News
Art
In the past,
different media
were used computer Another device
for each.
Computers that are connected to the same network can exchange digitized informa-
tion. By using computers to match and analyze large sets of data instead of analyzing
each instance or type of data individually, people can discover otherwise hidden trends or
implications of the information.
Like the storage of data, information transmission has made incredible advances,
thanks to important discoveries in electronics and electrical engineering. Commercial
applications of this technology in devices such as telephones, radio, and television have
played a role in accelerating this development. Today, almost all of Japan enjoys digital
television, which uses digital transmission and compression technologies. CPUs play a
central part in these applications by performing countless operations and coordinating
the transfer of information.
We have been talking about digitizing data into 1s and 0s so that information can be
processed by a CPU. But before they are digitized, text, audio, video, and so on exist as
analog data.
What is the difference between these two types of data? An example that illustrates
the difference is thermometers. Analog thermometers contain a liquid that expands as
it heats up, such as mercury or alcohol, in a gradated capillary tube that is marked with
lines indicating the temperature. To determine the temperature, we look at the level of
the liquid in the tube and compare it to the markings on the tube. We say that the analog
thermometer has a continuous output because the temperature reading can fall any-
where between the marks on the tube.
Digital thermometers use a sensor to convert temperature into voltage* and then
estimate the corresponding temperature. Because the temperature is represented numeri-
cally, the temperature changes in steps (that is, the values “jump”). For instance, if the
initial temperature reading is 21.8 degrees Celsius and then the temperature increases,
the next possible reading is 21.9 degrees Celsius. Because 0.1 is the smallest quantity
that can be shown by this thermometer, changes in temperature can only be represented
in steps of 0.1 and the value could never be between 21.8 and 21.9 degrees. Thus, digital
output is said to be discrete.
Attention!
Beep!
I see...
The word digital comes from the act of counting off numbers using our fingers—or
digits. This tends to lead people to believe that digital computers can only work with data
comprised of integers (whole numbers), which is not necessarily true.
In the digital world, everything is expressed in 1s and 0s. Indeed, they are not
even what the CPU works with. Note that these are not actually numbers in this context.
Instead, a 1 and a 0 are merely symbols. The CPU consists of transistors that transmit or
inhibit electrical signals and consequently output either low or high voltages. It is these
voltages that we represent as 1 or 0. A high voltage is represented with a 1, since the
transistor’s state is “on,” and a low voltage, or an “off” transistor, is represented with a 0.
In text, you could illustrate this by using the symbols and . The 1s and 0s are called
primitives, meaning they are basic data types. Computers can work with decimal numbers
as long as the value has a finite number of digits. Values such as these are also digital.
The important thing to remember is that for any digital number, you can never add or
remove a quantity smaller than the smallest possible value expressible.
Let’s compare some analog data and its digitized version to better understand how
they are alike and how they differ by looking at the figure on the next page. The first pair
of images shows audio data, and the second pair shows image data.
As you can see, every time we translate analog data into digital data, some informa-
tion is lost. But as you’ve undoubtedly experienced, most modern digitization processes
are so good that humans can’t tell the difference between the original and the digital
copy, even when they are presented side by side.
To store and transmit digital data of a quality such that our senses can’t detect any
loss of information, we use special compression techniques. These techniques always
involve trade-offs among how much space is used, how much information is lost during
compression, and how much processing time is needed to compress and decompress
the data.
Graphic or Video
When color information is translated into digital form, it is split into
three base component colors, most often red, green, and blue (known
as RGB). These colors are combined to create a composite color on a
screen. Each component color can be represented by a number, with
larger numbers indicating there’s more of that color.
When heavily compressing audio or video data, we often use lossy techniques that
change and simplify the data in such a way that we usually do not notice a difference.
While this approach saves a lot of space, as the name implies, reconstructing the original
data perfectly is impossible since vital information is missing. Other techniques—most
notably all text compression techniques—use lossless compression, which guarantees that
the original data can be completely reconstructed.
In any case, with the appropriate arithmetic and logic operations, as long as the data
is digital, a CPU can use any compression technique on any form of information. Although
digitizing data can involve the loss of some information, a major advantage of digital data
over analog data is that it allows us to control noise when transmitting the data.