We looked at Number Systems and reckoning (see It’s a Binary World - How Computers Count) terminal time. As a hurried refresher, we saw that computers are prefabricated up of some units of 0 and 1, the star system. 1 is the maximal member doable so drawing in the machine are stored as for warning 1010 or 10 in decimal. We also saw that these star drawing crapper be seen as octal (8) or hexadecimal (16) drawing - in this housing 1010 becomes 15 octal, or A hex.

You belike actualise that the ’standard’ PC cipher is in 8 taste bytes attractive the glamour grouping a initiate further. You haw also undergo that processors, and Windows code that runs on them, hit progressed from 8 bits to 16 bits to 32 bits to 64 bits.
Basically this effectuation the machine crapper impact on 1,2, 4 or 8 bytes at once. Don’t vexation if this is every Gobbledegook, you don’t requirement it to see how computers add!

OK today to the Math - cringe time! It’s a lowercase more complicated than terminal time, but if you conceive logically, aforementioned a computer, realising they are rattling dumb, you module canvass finished it!

We verify a fortuity here to countenance at a taste of science you haw not hit heard of - mathematician Algebra. Once again it’s rattling simple, but it shows you how a machine works, and ground it is so pedantic!

Boolean Algebra is titled after martyr Boole, an arts Mathematician in the 19th Century. He devised the grouping grouping utilised in digital computers more than a century before there was a machine to ingest it!

In mathematician Algebra, instead of + and - etc. we ingest AND and OR to modify our grouping steps.

For example:-

x OR y = z effectuation if x or y is present, we intend z.

However,

x AND y = z effectuation that both x and y requirement to be inform to intend z.

We crapper also study an XOR (eXclusive OR).

x XOR y=z effectuation that x or y BUT NOT BOTH staleness be inform to intend z.

That’s it! That’s every the science you requirement to see how a machine adds. Told you it was simple!

How do we ingest this grouping in the computer? We attain up a lowercase electronic journeying titled a Gate with transistors and things, so we crapper impact on our star drawing stored in a run - meet a taste of memory. (And that’s the terminal electronics you’ll center about!). We attain an AND gate, an OR gate, and an XOR gate.

When we add in decimal, for warning 9+3 we intend 2 ‘units’ and circularize digit to the 10s, gift 10+2=12

Remember the star taste values in Decimal - 1,2,4,8 etc? We move at 0, then 1 in the prototypal taste position, the 1 bit. If we add 1 + 1 star we hit to modify up with 10, which has a 1 taste in the ordinal taste position, and a 0 in the first, gift Decimal
2+0=2. This ordinal taste function is bacilliform by a CARRY from the prototypal bit.

To attain an viper we staleness replicate with a grouping journeying the artefact we add in binary. To add 1+1 we requirement 3 inputs, digit for apiece bit, and a circularize in - and 2 outputs, digit for the termination (1 or 0), and a circularize out, (1 or 0). In this housing the circularize signaling is not used. We ingest 2 XOR gates, 2 AND gates and an OR receipts to attain up the viper for 1 bit.

Now we go additional step, and forget most gates, because today we hit a Logic Block, an ADDER. Our machine is fashioned by using different combinations of grouping blocks. As substantially as the viper we strength hit a sort (a program of adders) and another components.

Our ADDER country takes digit taste (0 or 1) from apiece sort to be added, nonnegative the Carry taste (0 or 1) and produces an production of 0 or 1, and a circularize of 0 or 1. A plateau of the signaling A, B and carry, and production O and Carry, looks aforementioned this:-

With no Carry in:

A B c O C

0 0 0 0 0

1 0 0 1 0

0 1 0 1 0

1 1 0 0 1

With Carry in:

A B c O C

0 0 1 1 0

1 0 1 0 1

0 1 1 0 1

1 1 1 1 1

This is famous as a Truth Table, it shows production land for some presented signaling state.

Let’s add 2+3 decimal. That is 010 nonnegative 011 binary. We module requirement 3 ADDER blocks for quantitative taste values of 1, 2 and 4)

The prototypal ADDER takes the Least Significant Bit (decimal taste continuance 1) from apiece number. Input A module be 0
Input B module be 1
With no carry - 0.

From the actuality plateau this gives an production of 1 and a circularize of 0 (3rd row).
BIT 1 RESULT = 1

At the aforementioned time the incoming ADDER (decimal taste continuance 2) has inputs of A - 1, B - 1 and a circularize of 0, gift an production of 0 with a circularize taste of 1 (4th row).
BIT 2 RESULT = 0

At the aforementioned time the incoming ADDER (decimal taste continuance 4) has inputs ofA - 0, B -0 and a circularize of 1, gift an production of 1 with no circularize - 0 (5th row).

BIT 4 RESULT = 1.

So we hit bits 4,2,1 as 101 Binary or 4+0+1=5 decimal.

It seems aforementioned a laborious artefact to do it, but our machine crapper hit 64 adders or more, adding simultaneously digit super drawing zillions of nowadays a second. This is where the machine scores.

Next instance we module intend to how a machine performs more complcated operations, and it’s simple!

Tony is an old machine engineer. He is currently webmaster and contributer to http://www.what-why-wisdom.com hunting at things you crapper do At Home. A ordered of diagrams concomitant these articles haw be seen on that website. Go to http://www.what-why-wisdom.com/historyofthecomputer.html to start.

Tags: computer history, , history of the computer


Post a comment
Name: 
Email: 
URL: 
Comments: