Académique Documents
Professionnel Documents
Culture Documents
Computer architecture refers to the various components of the system and how these are designed to work together. A Computer system comprises of several components.
Main Memory
Disk
Printer
Bus
CPU
The central processing unit (CPU) : (PROCESSOR)(BRAIN) Main function of cpu is to execute programs stored in memory 1. Register set: (high speed memory units) Stores intermediate data during the execution of instructions; 2. Arithmetic logic unit (ALU): Performs the required micro-operations for executing the instructions; 3. Control unit: (controls the flow of data and instructions to and from memory)supervises the transfer of information among the registers and instructs the ALU as to which operation to perform by generating control signals.
Control Unit Arithmetic Logic Unit Registers
Memory * Data and programs are stored Types * Internal Memory *Primary/ main memory *Cache Memory *Secondary Memory
Internal Memory Registers * small memory units * Volatile memory Primary/Main memory : The memory in a computer is made up of semi-conductions. Semi-conduction
memories are of two types : * Any location can be accessed in any order RAM and ROM
* RAM ( Volatile) SRAM , DRAM , SDRAM , DDRSDRAM * ROM( Non-Volatile) PROM , EPROM , EEPROM
Cache memory: is a special type of memory devise which is faster compared to the primary memory
Two types of Cache * Internal Cache * External Cache Internal Cache * within the cpu * speed and size External Cache * CPU, RAM and ROM * Faster that RAM and ROM
Secondary Memory *Execution of programs * Slower * Hard disk, CD, Floppy disk * properties * large size * contents stored are permanent * Time * Cost
Bus :A bus is a set of wires(parallel wires) that connect the above components. Buses are responsible for movement of data from input devices, to output devices and from/to CPU and memory. Unidirectional or bi-directional. Data bus , Address bus ,Control bus Size of the Bus is known as bus width.
Harvard Architecture H Architecture uses separate memory for storing instructions and data. Simultaneously access the both memories. loading and modifying programs an entirely offline process.
The von Neumann architecture (June 30, 1945)is a computer design model that uses a processing unit and a single separate storage structure to hold both instructions and data. It is named after mathematician and early.
Modern computers are usually of this type. "stored-program computer"
von Neumann
Same memory holds data, instructions. A single set of address/data buses between CPU and memory
Harvard
Separate memories for data and instructions. Two sets of address/data buses between CPU and memory
Execution Cycle
CPU executes one instruction at a time (sequentially); A sequence of instructions is also referred to as a program. Execution process of instruction stored in memory in 3Phases. Fetch: Instructions r retrieved from the memory. Decode: Those instruction retrieved by memory r decoded by CU. Execute: Decoded instructions r executed by ALU.
Opcode
Source1
Source2
Destination
The opcode field denotes the operation to be done (ADD,Mul.MOV) The Source and Destination fields denote the operands.(Data parts of opcode)
Example : Add R1,R2 Fetch phase: The CU is responsible for the execution of phase. 1.The contents of PC are transferred to memory.
2.The content of the main memory as pointed by the MAR is accessed through the address bus.
3. The instruction is fetched into MBR. These contents flows through the data bus. 4. The instruction is then transferred from MBR to IR.
Decode phase: The instructor decoder unit in the CU is the responsible execution of this phase. 5 ..The opcode path of the instruction is transferred to the instruction decoder. 6. The instruction detector then detects the opcode path(ADD),an interprets and understands what to do. 7.The PC is then incremented to point to the next instruction
Execution Phase: Is executed by the ALU. 8. ones the instructions are decoded the operands are fetched -- the operands can be either in the Register or in the memory(it is in R1 and R2) -- ALU Perform the operation. -- Result is finally stored in R2.
Instruction Categories
Instructions instruct the CPU with information on what needs to be done. Instructions can be categorized based on the operations that they performed. Arithmetic instructions:ADD,SUB,Mul etc.. Logical instructions: and ,or,equal.etc.. Program Control Instructions: program control instruction changes the sequence of execution. I/O Instruction: I/O instructions are responsible for transfer of information from I/O devices to cpu and memory and vice versa.(True or False).
Data Transfer Instructions:Performs operation which involve transfer of data. The following are the types of data transfer instructions. Register-Register:-Data Transfer takes place from one register to another. EX:-MOVE R1,R2 Register-Memory/Memory-Register:-Data transfer takes place between memory and register. EX:-MOVE R1,6000H Memory-Memory:-Data Transfer takes place between two memory locations. EX:-MOVE 5000H,6000H.
Input Devices
Output Devices
Storage Devices
SimNet
Concepts Support CD: Overview of Input Devices and Other Everyday Input Devices
2003 The McGraw-Hill p. 5.130 Fig. 5-1 Companies
Input Devices
The keyboard is the most common input device. Types of keyboards include:
SimNet
Pointing Devices
Pointing devices are mainly used to choose and enter commands Pointing devices tend to have PS/2 connectors or USB connectors
PS/2 connector fits into a PS/2 port, which a small round socket with small holes that fit the pins on the connector
USB connectors fit into USB ports, and these are small rectangular openings on the back or front of your computer, or even on your keyboard or monitor
SimNet
Pointing Devices
Mouse
Mechanical Optical
mouse
mouse mouse
Wireless
Trackball Touchpad
Pointing stick
SimNet
2003 The McGraw-Hill p. 5.132 & P. 5.133 Fig. 5-3 & Fig 5.4 Companies
Game Controller
Gamepads Joysticks
Gaming wheels
Force feed
Scanners
Styluses Microphones Digital cameras Web cams
Scanner
Scanner
is a light sensitive device that helps you copy or capture images, photos, and artwork that exist on paper. Types of scanners include:
Flatbed
Styluses
Stylus is an input device consisting of a thin stick that uses pressure to enter information or to click and point Styluses are used with:
PDAs
Tablet
Microphones
Microphones are used to input audio Three main types of microphones are:
Desktop
Digital Cameras
Resolution is measured in megapixels Higher the resolution, better the image quality, but the more expensive the camera
Web Cams
Web cam is a video camera that can be used to take images for uploading to the Web
Monitors
CRTs Flat-panel displays
Gas plasma LCD (liquid crystal display)
Passive matrix Active matrix
Called TFT (thin film transistor) Separate transistor for every pixel
SimNet
Screen Talk
Screen size measured as a diagonal line across the screen from corner to opposite corner Resolution the number of pixels displayed on the screen (the higher the resolution, the closer together the dots) Pixels (or picture element) dots that make up the image on your screen Dot pitch is the distance between the centers of a pair of like-colored pixels Refresh rate the speed with which a monitor redraws the image of the screen, and is measured in hertz
2003 The McGraw-Hill Companies
Printers
Inkjet most popular
Makes images by forcing droplets through nozzles Top speed is 20 pages per minute
Laser
Forms images using an electrostatic process Prints between 3 and 30 pages per minute
2003 The McGraw-Hill Companies
Printers - Cont
Resolution of a printer is the number of dots per inch (dpi) it produces. Higher the resolution, better the image, and usually the more costly the printer
Printers - Cont.
Multifunction printer:
SimNet
Speakers
A speaker is a device that produces computer output as sound Speakers are common devices in computer systems Examples include:
Storage device stores information to be recalled and used at a later time Storage device consists of: Storage medium Storage device Three major technology types for information storage: Magnetic Optical or laser Flash memory
2003 The McGraw-Hill
= 8 bits 1 Thousand Bytes 1 Million Bytes 1 Billion Bytes 1 Trillion Bytes 1 quadrillion Bytes 1 quintillion Bytes
2003 The McGraw-Hill p. 5.142 & 5.144 Fig. 5.13 & 5.16 Companies
Internal magnetic hard disks are fixed inside the system unit External magnetic hard disks are portable
Hard Drives
Long term storage system and application software Operating system and application software are copied from the hard disk to memory Capacity measured in gigabytes
High-capacity disks
Zip disk
Optical Storage
CDs DVDs Both are optical storage and have three formats:
Read-only Write-once Read-and-write
Fully Read-and-Write
CD-RW DVD-RW or DVD+RW or DVD-RAM
One-Time Writable
CD-R DVD-R DVD+R
SimNet