Skip to content
JackSparrow414
Go back

A Few Things to Know About Computer Organization

Table of contents

Open Table of contents

Computer Organization

Computer Hardware Components

The five major components:

Memory, control unit, arithmetic unit, input devices, and output devices.

These fall into two broad groups. The logical structure is as follows:

How a Computer Performs a Calculation

A computer instruction consists of an opcode + an address field.

The opcode specifies the operation (load, store, add/subtract/multiply/divide, halt, print, and so on).

The address field identifies where the operand is located in memory.

There are three stages:

  1. Instruction fetch
  2. Instruction decoding
  3. Execution

For example, calculate $1 + 2$:

Calculating Storage Capacity

  1. Total storage = main memory + secondary storage (the actual hard-drive capacity)

  2. $\text{Main memory} = \text{Number of locations} \times \text{Word length} = 2^{\text{MAR bits}} \times \text{MDR bits} = 2^{\text{Address bus lines}} \times \text{Data bus lines (or bits)}$

    For example, with a 32-bit MDR and a 16-bit MAR, main-memory capacity is:

    $2^{16} \times 32 = 2^{21}$ bits

    Since 1 B (byte) = 8 bits and 1 KB = 1024 B, converting to KB gives:

    $2^{21} \div 2^{3} \div 2^{10} = 2^{8}$KB

    For example, with 10 address bus lines and 4 data bus lines, storage capacity is:

    $2^{10} \times 4 = 4K$


Share this post:

Previous Post
Analyzing the ShardingJDBC Execution Flow
Next Post
Computer Buses and Memory

Comments

Questions, corrections, and experiences are welcome. Sign in with GitHub to comment; both language versions share this discussion.

Comments are available on the live site only.