SlideShare ist ein Scribd-Unternehmen logo
1 von 9
Downloaden Sie, um offline zu lesen
The efficient postcode

A postmaster in Zejtun had to invent an efficient postcode in such a manner that he
would not waste any numbers and that any number could uniquely identify one house
in his district.

His district consisted of 3 locations: Zejtun, Ramla and Bir-id-deheb, Zejtun had 200
houses, Ramla had 100 and Bir-id-deheb had another 100. Each house had 10 people
living in it.

At the post-office he had a pigeonhole shelving for 400 addresses. How could he invent
a code, such that each code would identify uniquely on residence, that from the number
the postman could directly know which location it was for.

So he gave the following addresses within each location:

Zejtun: from 000 to 199; Ramla: from 00 to 99; Bir-id-deheb: from 00 to 99;

Now he had to adapt the code so that each house in the district had a unique address, so
he adopted the following code:

Zejtun: from 0 to 199; Ramla: from 200 to 299; Bir-id-deheb: from 300 to 399

In this manner the postman knew that if the code started with 0 or 1 it was intended for
Zejtun, with 2 it was for Ramla and 3 it was for bir-id-deheb.

So he organised his pigeonhole shelving as follows:


             ADDRESS LOCATION             ADDRESS WITHIN LOCATION
             [000]                        [000]
                         Zejtun           ...
             [199]                        [199]
             [200]                        [00]
                         Ramla            ...
             [299]                        [99]
             [300]                        [00]
                      Bir-id-deheb        ...
             [399]                        [99]
However at Ramla, the houses were small and could host only 5 persons. So he
combined two houses together, with the same address, in such a way that each address
would involve a whole family of 10 persons.


             ADDRESS LOCATION             ADDRESS WITHIN LOCATION
             [000]                        [000]
                         Zejtun           ...
             [199]                        [199]
             [200]                        [00]        [00]
                         Ramla            ...         ...
             [299]                        [99]        [99]
             [300]                        [00]
                      Bir-id-deheb        ...
             [399]                        [99]



He then had the idea to organise a demonstration to the people in each village to explain
the working of the new code. So he organised a minibus service which would pick a
particular family from each location and bring them to the post office for a
demonstration. What should be the capacity of this minibus? Obviously 10 since each
household consisted of 10 persons.




                                     10-BIT
Zejtun
                             [000]
                                                                    000




                                      Zejtun sub post office


 Starting with 0 or 1
                            [199]
                                                                    199


                            [200]        Ramla
                  Starting with 2
                                                                          00




                                     Ramla sub post office

                            [299]                                         99
Starting with 3
                            [300]        Bir-id-Deheb

                                                                     00




                                     Bir-id-Deheb sub post office
                            [399]                                    99
Modern times had this postmaster program an automatic selector to sort the mail to
individual sub-post offices in each location.



              0

              1

              2

              3



                   Full Address                                       Zejtun
              A2                                                        A2

              A1                                                        A1

              A0                                                        A0

                                                                       Ramla

                                                                        A1

                                                                        A0


                                                                       Bir-id-deheb

                                                                        A1

                                                                        A0




For example an address of 223 would mean house number 23 at Ramla, an address of
166 would mean house 166 in Zejtun and an address of 325 would mean house 25 in
Bir-id-deheb.
POSTMASTER GOT TRANSFERED
The big success in the code he had invented, made him famous, and with fame came all
the envy of his colleagues which started inventing rumours which led the post master
general to transfer him to Binland, a place where people could only count up to 1. In fact
these people did all their mathematics in binary (base 2) and to avoid confusion, in
speaking, they adopted a Hexadecimal notation (base 16).

In this land there were only two places, one called ROM and the other called RAM each
had 256 locations and the Central Postal Unit could address all 512 locations in this
land. So he had to adopt the postcode system to this new land.

Not being such a good mathematician, he had to get acquainted with binary numbers.

To do this he adopted a table which gave him the number of digits required to have a
number of unique addresses:


        n = number of bits in address    2n = number of addressable locations
                     1                   2
                     2                   4
                     3                   8
                     4                   16
                     5                   32
                     6                   64
                     7                   128
                     8                   256
                     9                   512
                    10                   1024 ( called 1Kilo)
                    20                   1024x1024 (called 1Mega)
                    30                   1024x1024x1024 (called 1Giga)
                    40                   1024x1024x1024x1024 (called 1Tera)



From this table he deducted that to be able to address all the 512 locations in his land he
had to have an address which is 9 bits long and since each place had 256 locations, each
had to have an address of 8 bits within the place.

Since each location contained 8 bits as the inhabitants of Binland were called, the bus
carrying the bits from each loction had to be 8 bit wide.



Soon he realised that this was an even simpler case than he had before
ROM

                     [000000000B] = [000H]         [00000000B] = [00H]
Starts with 0




                     [011111111B] = [0FFH]        [11111111B] = [FFH]




                                                  RAM
                     [100000000B] = [100H]
                                                   [00000000B] = [00H]




Starts with 1

                     [111111111B] = [1FFH]         [11111111B] = [FFH]




     The automatic machine he programmed was even Simpler:

                        0             ROM
                                             A7     A6    A5    A4       A3   A2   A1   A0
                A8

                A7

                A6

                A5

                A4

                A3

                A2

                A1

                A0
                        1           RAM
                                             A7     A6    A5    A4      A3    A2   A1   A0
Just as he had launched the new system, the postmaster general called him to announce
that a new place called I/O had been added to his district, and that he had to cater for
their mail too.

After a few minutes of rage, the postmaster couldn’t be bothered to redo everything
from scratch. So he decided to keep the I/O on a separate map and introduced a new
signal stamp called M/IO’ which indicated if the mail was addressed to the Main portion
or the I/O section. Thus if this signal was 1 it would indicate that the address is referring
to the Main and if it was 0 the address would be referring to I/O.
  M/IO’    1                                 ROM

                        0                        A7   A6    A5    A4    A3    A2    A1   A0
               A8

               A7

               A6

               A5

               A4

               A3

               A2

               A1

               A0
                            1
       1                                         A7   A6    A5   A4    A3    A2    A1    A0

                                           RAM
       0
                                                 A8   A7   A6    A5    A4    A3    A2    A1     A0
                                           I/O




    M/IO’ A8...A0 Section        A8...A0              M/IO’ A8...A0 Section        A7...A0
    0     [000H]                 [000H]               1     [000H]                 [00H]
                                 ...                                 ROM           ...
                                                            [0FFH]                 [FFH]
                         I/O                                [100H]                 [00H]
                                                                     RAM           ...
               [1FFH]            [1FFH]                     [1FFH]                 [FFH]
This solution could accomodate an extra 512 locations in I/O. Yet being on a separate
map, locations in I/O felt a bit Isolated. Also this added extra complexity to the machine
which consequently made mail distribution slower. The postmaster also noticed that
512 addresses for I/O were superfluous and that actually there were only 256
addresses needed for this place.
                                                    A9...A0 Section           A7...A0
So one fine day he decided it would be              000H]                     [00H]
better to map everything together on a                            ROM         ...
single map. He noticed that to do this the          [0FFH]                    [FFH]
address would need another bit since now            [100H]                    [00H]
the locations had become 768 locations.                           RAM         ...
With the 10th bit in the address added, he          [1FFH]                    [FFH]
would be able to address 1024 locations             [200H]                    [00H]
                                                                   I/O        ...
which would leave 256 locations for further
                                                    [2FFH]                    [FFH]
expansion.
                                                    [300H]                    [00H]
So he redrew the map from scratch.                             Expansion
                                                    [3FFH]                    [FFH]

        CPU
                                       ROM
         A9
                                           A7   A6    A5    A4    A3   A2    A1    A0
         A8                                                                                  I/O

         A7                                                                                  A7

         A6                                                                                  A6

         A5                                                                                  A5

         A4                                                                                  A4

         A3                                                                                  A3

         A2                                                                                  A2

         A1                                                                                  A1

         A0                                                                                  A0


                                          A7    A6    A5    A4   A3    A2    A1    A0
              0
        00
                                          RAM
        01    1

        10    2

        11    3
The Sorting Machine – also called Address Decoder

Weitere ähnliche Inhalte

Andere mochten auch

Becoming a Web Design Champion
Becoming a Web Design ChampionBecoming a Web Design Champion
Becoming a Web Design ChampionMeagan Fisher
 
Circus of words level kg a
Circus of words level kg   aCircus of words level kg   a
Circus of words level kg aBonnie Franklin
 
Be Less Terrible at the Business of Design
Be Less Terrible at the Business of DesignBe Less Terrible at the Business of Design
Be Less Terrible at the Business of DesignMeagan Fisher
 
Circus of words level kg c
Circus of words level kg   cCircus of words level kg   c
Circus of words level kg cBonnie Franklin
 
Users are People Too
Users are People TooUsers are People Too
Users are People TooMeagan Fisher
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating SystemsJohn Cutajar
 
Assembly language 8086
Assembly language 8086Assembly language 8086
Assembly language 8086John Cutajar
 

Andere mochten auch (12)

Becoming a Web Design Champion
Becoming a Web Design ChampionBecoming a Web Design Champion
Becoming a Web Design Champion
 
Javanotes
JavanotesJavanotes
Javanotes
 
Circus of words level kg a
Circus of words level kg   aCircus of words level kg   a
Circus of words level kg a
 
Oop principles
Oop principlesOop principles
Oop principles
 
Be Less Terrible at the Business of Design
Be Less Terrible at the Business of DesignBe Less Terrible at the Business of Design
Be Less Terrible at the Business of Design
 
Databases
DatabasesDatabases
Databases
 
Circus of words level kg c
Circus of words level kg   cCircus of words level kg   c
Circus of words level kg c
 
Relational
RelationalRelational
Relational
 
Users are People Too
Users are People TooUsers are People Too
Users are People Too
 
Intermediate Operating Systems
Intermediate Operating SystemsIntermediate Operating Systems
Intermediate Operating Systems
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Assembly language 8086
Assembly language 8086Assembly language 8086
Assembly language 8086
 

Mehr von John Cutajar

Relational Database Examples
Relational Database ExamplesRelational Database Examples
Relational Database ExamplesJohn Cutajar
 
Assembly language 8086 intermediate
Assembly language 8086 intermediateAssembly language 8086 intermediate
Assembly language 8086 intermediateJohn Cutajar
 
Intermediate machine architecture
Intermediate machine architectureIntermediate machine architecture
Intermediate machine architectureJohn Cutajar
 

Mehr von John Cutajar (7)

System design
System designSystem design
System design
 
Module 5 2010
Module 5 2010Module 5 2010
Module 5 2010
 
System Design
System DesignSystem Design
System Design
 
SImple SQL
SImple SQLSImple SQL
SImple SQL
 
Relational Database Examples
Relational Database ExamplesRelational Database Examples
Relational Database Examples
 
Assembly language 8086 intermediate
Assembly language 8086 intermediateAssembly language 8086 intermediate
Assembly language 8086 intermediate
 
Intermediate machine architecture
Intermediate machine architectureIntermediate machine architecture
Intermediate machine architecture
 

Kürzlich hochgeladen

Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integrationmarketing932765
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxLoriGlavin3
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkPixlogix Infotech
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesManik S Magar
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationKnoldus Inc.
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterMydbops
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...itnewsafrica
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Nikki Chapple
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 

Kürzlich hochgeladen (20)

Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS:  6 Ways to Automate Your Data IntegrationBridging Between CAD & GIS:  6 Ways to Automate Your Data Integration
Bridging Between CAD & GIS: 6 Ways to Automate Your Data Integration
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
The State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptxThe State of Passkeys with FIDO Alliance.pptx
The State of Passkeys with FIDO Alliance.pptx
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
React Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App FrameworkReact Native vs Ionic - The Best Mobile App Framework
React Native vs Ionic - The Best Mobile App Framework
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotesMuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
MuleSoft Online Meetup Group - B2B Crash Course: Release SparkNotes
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Data governance with Unity Catalog Presentation
Data governance with Unity Catalog PresentationData governance with Unity Catalog Presentation
Data governance with Unity Catalog Presentation
 
Scale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL RouterScale your database traffic with Read & Write split using MySQL Router
Scale your database traffic with Read & Write split using MySQL Router
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...Zeshan Sattar- Assessing the skill requirements and industry expectations for...
Zeshan Sattar- Assessing the skill requirements and industry expectations for...
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
Microsoft 365 Copilot: How to boost your productivity with AI – Part one: Ado...
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 

The efficient postcode

  • 1. The efficient postcode A postmaster in Zejtun had to invent an efficient postcode in such a manner that he would not waste any numbers and that any number could uniquely identify one house in his district. His district consisted of 3 locations: Zejtun, Ramla and Bir-id-deheb, Zejtun had 200 houses, Ramla had 100 and Bir-id-deheb had another 100. Each house had 10 people living in it. At the post-office he had a pigeonhole shelving for 400 addresses. How could he invent a code, such that each code would identify uniquely on residence, that from the number the postman could directly know which location it was for. So he gave the following addresses within each location: Zejtun: from 000 to 199; Ramla: from 00 to 99; Bir-id-deheb: from 00 to 99; Now he had to adapt the code so that each house in the district had a unique address, so he adopted the following code: Zejtun: from 0 to 199; Ramla: from 200 to 299; Bir-id-deheb: from 300 to 399 In this manner the postman knew that if the code started with 0 or 1 it was intended for Zejtun, with 2 it was for Ramla and 3 it was for bir-id-deheb. So he organised his pigeonhole shelving as follows: ADDRESS LOCATION ADDRESS WITHIN LOCATION [000] [000] Zejtun ... [199] [199] [200] [00] Ramla ... [299] [99] [300] [00] Bir-id-deheb ... [399] [99]
  • 2. However at Ramla, the houses were small and could host only 5 persons. So he combined two houses together, with the same address, in such a way that each address would involve a whole family of 10 persons. ADDRESS LOCATION ADDRESS WITHIN LOCATION [000] [000] Zejtun ... [199] [199] [200] [00] [00] Ramla ... ... [299] [99] [99] [300] [00] Bir-id-deheb ... [399] [99] He then had the idea to organise a demonstration to the people in each village to explain the working of the new code. So he organised a minibus service which would pick a particular family from each location and bring them to the post office for a demonstration. What should be the capacity of this minibus? Obviously 10 since each household consisted of 10 persons. 10-BIT
  • 3. Zejtun [000] 000 Zejtun sub post office Starting with 0 or 1 [199] 199 [200] Ramla Starting with 2 00 Ramla sub post office [299] 99 Starting with 3 [300] Bir-id-Deheb 00 Bir-id-Deheb sub post office [399] 99
  • 4. Modern times had this postmaster program an automatic selector to sort the mail to individual sub-post offices in each location. 0 1 2 3 Full Address Zejtun A2 A2 A1 A1 A0 A0 Ramla A1 A0 Bir-id-deheb A1 A0 For example an address of 223 would mean house number 23 at Ramla, an address of 166 would mean house 166 in Zejtun and an address of 325 would mean house 25 in Bir-id-deheb.
  • 5. POSTMASTER GOT TRANSFERED The big success in the code he had invented, made him famous, and with fame came all the envy of his colleagues which started inventing rumours which led the post master general to transfer him to Binland, a place where people could only count up to 1. In fact these people did all their mathematics in binary (base 2) and to avoid confusion, in speaking, they adopted a Hexadecimal notation (base 16). In this land there were only two places, one called ROM and the other called RAM each had 256 locations and the Central Postal Unit could address all 512 locations in this land. So he had to adopt the postcode system to this new land. Not being such a good mathematician, he had to get acquainted with binary numbers. To do this he adopted a table which gave him the number of digits required to have a number of unique addresses: n = number of bits in address 2n = number of addressable locations 1 2 2 4 3 8 4 16 5 32 6 64 7 128 8 256 9 512 10 1024 ( called 1Kilo) 20 1024x1024 (called 1Mega) 30 1024x1024x1024 (called 1Giga) 40 1024x1024x1024x1024 (called 1Tera) From this table he deducted that to be able to address all the 512 locations in his land he had to have an address which is 9 bits long and since each place had 256 locations, each had to have an address of 8 bits within the place. Since each location contained 8 bits as the inhabitants of Binland were called, the bus carrying the bits from each loction had to be 8 bit wide. Soon he realised that this was an even simpler case than he had before
  • 6. ROM [000000000B] = [000H] [00000000B] = [00H] Starts with 0 [011111111B] = [0FFH] [11111111B] = [FFH] RAM [100000000B] = [100H] [00000000B] = [00H] Starts with 1 [111111111B] = [1FFH] [11111111B] = [FFH] The automatic machine he programmed was even Simpler: 0 ROM A7 A6 A5 A4 A3 A2 A1 A0 A8 A7 A6 A5 A4 A3 A2 A1 A0 1 RAM A7 A6 A5 A4 A3 A2 A1 A0
  • 7. Just as he had launched the new system, the postmaster general called him to announce that a new place called I/O had been added to his district, and that he had to cater for their mail too. After a few minutes of rage, the postmaster couldn’t be bothered to redo everything from scratch. So he decided to keep the I/O on a separate map and introduced a new signal stamp called M/IO’ which indicated if the mail was addressed to the Main portion or the I/O section. Thus if this signal was 1 it would indicate that the address is referring to the Main and if it was 0 the address would be referring to I/O. M/IO’ 1 ROM 0 A7 A6 A5 A4 A3 A2 A1 A0 A8 A7 A6 A5 A4 A3 A2 A1 A0 1 1 A7 A6 A5 A4 A3 A2 A1 A0 RAM 0 A8 A7 A6 A5 A4 A3 A2 A1 A0 I/O M/IO’ A8...A0 Section A8...A0 M/IO’ A8...A0 Section A7...A0 0 [000H] [000H] 1 [000H] [00H] ... ROM ... [0FFH] [FFH] I/O [100H] [00H] RAM ... [1FFH] [1FFH] [1FFH] [FFH]
  • 8. This solution could accomodate an extra 512 locations in I/O. Yet being on a separate map, locations in I/O felt a bit Isolated. Also this added extra complexity to the machine which consequently made mail distribution slower. The postmaster also noticed that 512 addresses for I/O were superfluous and that actually there were only 256 addresses needed for this place. A9...A0 Section A7...A0 So one fine day he decided it would be 000H] [00H] better to map everything together on a ROM ... single map. He noticed that to do this the [0FFH] [FFH] address would need another bit since now [100H] [00H] the locations had become 768 locations. RAM ... With the 10th bit in the address added, he [1FFH] [FFH] would be able to address 1024 locations [200H] [00H] I/O ... which would leave 256 locations for further [2FFH] [FFH] expansion. [300H] [00H] So he redrew the map from scratch. Expansion [3FFH] [FFH] CPU ROM A9 A7 A6 A5 A4 A3 A2 A1 A0 A8 I/O A7 A7 A6 A6 A5 A5 A4 A4 A3 A3 A2 A2 A1 A1 A0 A0 A7 A6 A5 A4 A3 A2 A1 A0 0 00 RAM 01 1 10 2 11 3
  • 9. The Sorting Machine – also called Address Decoder