Docsity

ICT - Notes -basic machine organization, Lecture notes of Information and Communications Technology (ICT)

Toggle sidebar
bg1
Topic: Basic Machine Organization
What is “Computer Architecture”?
Computer Architecture consists of two parts;
1) Instruction Set Architecture (ISA) : which is Software.
2) Machine Organization : H/W and Design
“ISA (Instruction Set Architecture)”?
Instructions, Addressing modes, Instruction and data formats, Register
Instruction Set Architecture
Organization of Programmable Storage
Data type and Structures: encodings and machine representation
Instruction set
Instruction Formats
Addressing Modes and Accessing Data and Instructions
Exception Handling
“Machine Organization”?
CPU (Control & Data path), Memory, Input /Output
Capabilities and Performance of the Basic Functional Units
The Way These Units are Interconnected
Information Flow between components
Information Flow Control
Some Basic Definitions:
Computer: A machine that can receive and store information and change or process it.
Information: Knowledge that is communicated.
COMPONENTS OF A COMPUTER?
Computers are made up of two parts: the hardware and the software.
Hardware: The physical equipment required to create, use, manipulate and store electronic data.
Software: The computerized instructions that operate a computer, manipulate the data and execute
particular functions or tasks.
All computers require the following hardware components:
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download ICT - Notes -basic machine organization and more Lecture notes Information and Communications Technology (ICT) in PDF only on Docsity!

Topic: Basic Machine Organization

What is “Computer Architecture”?

Computer Architecture consists of two parts;

  1. Instruction Set Architecture (ISA) : which is Software.
  2. Machine Organization : H/W and Design

“ISA (Instruction Set Architecture)”?

 Instructions, Addressing modes, Instruction and data formats, Register  Instruction Set Architecture  Organization of Programmable Storage  Data type and Structures: encodings and machine representation  Instruction set  Instruction Formats  Addressing Modes and Accessing Data and Instructions  Exception Handling

“ Machine Organization”?

 CPU (Control & Data path), Memory, Input /Output  Capabilities and Performance of the Basic Functional Units  The Way These Units are Interconnected  Information Flow between components  Information Flow Control

Some Basic Definitions:

Computer : A machine that can receive and store information and change or process it.

Information : Knowledge that is communicated.

COMPONENTS OF A COMPUTER?

Computers are made up of two parts: the hardware and the software.

Hardware : The physical equipment required to create, use, manipulate and store electronic data.

Software : The computerized instructions that operate a computer, manipulate the data and execute particular functions or tasks.

All computers require the following hardware components:

Central processing unit (CPU): The chip or chips at the heart of a computer that enable it to process data. Also known as a processor.

Memory: An area within a computer system that holds data waiting to be processed.

Storage device: The place where a computer puts data.

Input devices : the devices that allow data and instructions to enter a computer (such as a keyboard, mouse and scanner). Any resource required for the functioning of a process, in the course of which it will be transformed into one or more outputs.

Output devices : the devices that allow information to be represented (that is, given out) to the user, such as a display screen or printer). The product of the transformation of inputs by a process.

Peripheral device: Any piece of equipment in a computer system that is not actually inside the Computer itself. Printers, scanners and external disk drives that may be connected to the computer are also sometimes called „peripheral devices‟.

The central processing unit (CPU) is the heart of the computer. It carries out all of the instructions given in a program, such as a word processing or spreadsheet program. The CPU consists of one or more chips (another name for “integrated circuits”).

Chip : A small piece of semi-conducting material (such as silicon) about 1 centimetre (¼ inch) square on which an integrated circuit is embedded. An integrated circuit is a number of electronic components joined together to form a path for electricity. Central processing unit chips contain the circuits representing the CPU.

A microprocessor is a particular type of chip. The original IBM personal computer used the Intel 8088 microprocessor.

Memory: The most common type of memory that most users are familiar with is „main memory‟or „RAM‟ (random-access memory).Random access memory (RAM): An area in the computer system unit that temporarily holds a user‟s data, operating system instructions and program instructions.

Every time a user turns on his or her computer, a set of operating instructions is copied from the hard disk into RAM. These instructions, which help control basic computer functions, remain in RAM until the computer is turned off. Most RAM is volatile, which means that it requires a steady flow of electricity to maintain its contents. As soon as the power is turned off, whatever data was in RAM disappears. The contents of RAM are necessary for the computer to process data. The results of the processing are kept temporarily in RAM until they are needed again or until they are saved onto the hard disk or other storage device. Today the storage capacity of RAM is measured in megabytes (GB). PCs (microcomputers) that have between 16 and 64 MB of RAM, means they can hold between 16 and 64 million bytes of data (a standard A4 page of text typically holds about 2,000 bytes or characters of text).

Other types of memory include

ROM (read only memory): unlike RAM, ROM is non-volatile and only permits the user to read data. Computers almost always contain a small amount of read-only memory that holds instructions for starting up the computer.

Virus: A computer program that is planted in one computer and then transferred, hidden in useful information, to one or more other computers with the intention of corrupting or wiping out information in the recipient computer.

Top Level Structure

 Input  Output  Memory  Datapath  Control

System Interconnection:

The “system bus” Provides the way to move data among the CPU, I/O, and Main Memory. In a microprocessor based system the bus is external to the processor chip.

Input/Output

Moves date between the computer and “the outside world”. In modern systems the “outside world” is usually another bus (PCI, ISA, VME) that connects to peripheral interface cards. Current PC speeds ~256 Mbyte/sec.

Main Memory

Stores both data and instructions (von Neumann architecture). Read/Write access. Addressed by location, not by content. PC access times ~60 nsec.

Central Processing Unit

Controls operation of the computer. Interprets stored instructions. Operates on data. Current PC operating speeds ~1 GHz. Contains a number of complex components

Control Unit

Controls operation of the CPU. Fetches Instructions and Data for the ALU. Keeps the other components in step.

Arithmetic and Logic Unit (ALU).

Performs the computer‟s data processing functions. In modern designs operates on data in the Registers. It Can contain several independent, more specialized sub-units.

Registers (register set of file).

Holds data being manipulated by the ALU. Fast, runs at the same speed as the CPU. Current size 32 bits, moving to 64 bits. Can be specialized (i.e. floating point registers, MMX registers).Modern machines have many registers.

Internal CPU Interconnection.

Called “internal data path(s)”.Used to move date to/from registers and the ALU. Usually as wide or wider than the registers. Runs at CPU speeds - 1 GHz x 128 bits = 16 Gbytes/sec. Usually does not go off the cpu chip.

Instruction Cycles:

Procedure the CPU goes through to process an instruction.

  1. Instruction Fetch - get instruction
  2. Instruction Decode - interperate the instruction
  3. Operand Fetch.
  4. Execute Instruction - run the instruction.
  5. Write Back Unit. 1. Instruction Fetch:

 When CPU is ready the it will assert the read control signal.  Depending on the CPU the read can be active high (1) or low (0).  After being asserted the subsystem will return the data through the data bus.  The CPU will then receive this data and store into one of its registers

2. Instruction Decode:

 Now the CPU will decode the instruction.  The CPU will determine the sequences of commands needed to perform.  Each instruction can require different sequences of operations.  This is perform within the CPU with no system buses.

3. Operand Fetch:

 Fetches the operand to process data.  Different Operand may fetch in different sequence.

4. Instruction Execute :

 The CPU will now execute the instruction.  This sequence will vary from different instructions.

5. Write Back:

 Read or write data to memory or I/O subsystem.

The CPU controls the Computer. The CPU fetch, decode and execute instructions. The CPU has three internal sections: register section, ALU and Control Unit

Example: Addition of two numbers A & B