Professional Documents
Culture Documents
Prelims Coe Elec2
Prelims Coe Elec2
ARCHITECTURE
A general term referring to the structure of all or part of a computer system. The term also covers the design of system software, such as the operating system (the program that controls the computer), as well as referring to the combination of hardware and basic software that links the machines on a computer network.
1/9/2012
ARCHITECTURE cont.
Computer architecture refers to an entire structure and to the details needed to make it functional. Thus, computer architecture covers computer systems, microprocessors, circuits, and system programs. the term does not refer to application programs, such as spreadsheets or word processing, which are required to perform a task but not to make the system run.
1/9/2012
COMPUTER
Machine that performs tasks, such as calculations or electronic communication, under the control of a set of instructions called a program.
1/9/2012
USES OF COMPUTER
In business, computers track inventories with bar codes and scanners, check the credit status of customers, and transfer funds electronically. In homes, tiny computers embedded in the electronic circuitry of most appliances control the indoor temperature, operate home security systems, tell the time, and turn videocassette recorders (VCRs) on and off.
1/9/2012
1/9/2012
1/9/2012
1/9/2012
1/9/2012
1/9/2012
1/9/2012
1/9/2012
1/9/2012
1/9/2012
seriously limits the effective processing speed when the CPU is required to perform minimal processing on large amounts of data
1/9/2012
1/9/2012
Processor I/O
Data may be transferred to or from a peripheral device by transferring bet. the processor and an I/O module
1/9/2012
Control
May specify the sequence of execution be altered
1/9/2012
INSTRUCTION PROCESSING
Processor reads (fetch) instruction from memory one at a time & executes each instruction PROGRAM EXECUTION:
FETCH CYCLE instruction & data is taken from the memory EXECUTE CYCLE instruction is executed by the processor
1/9/2012 Miss Sheena I. Sapuay
INSTRUCTION CYCLE
also called fetch-and-execute cycle or fetchdecode-execute cycle the time period during which a computer processes a machine language instruction from its memory or the sequence of actions that the central processing unit (CPU) performs to execute each machine code instruction in a program
1/9/2012 Miss Sheena I. Sapuay
1/9/2012
INSTRUCTION CYCLE
Fetch the instruction
The CPU presents the value of the program counter (PC) on the address bus. The CPU then fetches the instruction from main memory via the data bus into the memory data register (MDR). The value from the MDR is then placed into the instruction register (IR).
1/9/2012
INSTRUCTION CYCLE
Decode the instruction
The instruction decoder interprets and implements the instruction. The instruction register (IR) holds the current instruction, while the program counter (PC) holds the address in memory of the next instruction to be executed. Fetch required data from main memory to be processed and place it into data registers.
1/9/2012 Miss Sheena I. Sapuay
INSTRUCTION CYCLE
Execute the instruction
From the instruction register, the data forming the instruction is decoded by the control unit. It then passes the decoded information as a sequence of control signals to the relevant function units of the CPU to perform the actions required by the instruction such as reading values from registers, passing them to the Arithmetic logic unit (ALU) to add them together and writing the result back to a register.
1/9/2012 Miss Sheena I. Sapuay
The processor will the next instruction at location 300 After fetching, PC is incremented the next value of PC is 301, then 302, 303, and so on.
1/9/2012
1/9/2012
ILLUSTRATIVE EXAMPLE
1/9/2012
1/9/2012
1/9/2012
INTERRUPTS
Interrupt the normal sequencing of the processor Provided to improve processor utilization
Most I/O devices are slower than the processor Processor must pause to wait for device
1/9/2012
1/9/2012
CLASSES OF INTERRUPTS
1/9/2012
1/9/2012
Fetch Cycle
Execute Cycle
Interrupt Cycle
Interrupts disabled
START
Execute Instruction
Interrupts enabled
HALT
1/9/2012
1/9/2012
Two approaches:
Disable interrupts during interrupt processing Use a priority scheme.
1/9/2012
THE MICROPROCESSOR
An electronic circuit that functions as the central processing unit (CPU) of a computer, providing computational control. one type of ultra-large-scale integrated circuit. Integrated circuits, also known as microchips or chips, are complex electronic circuits consisting of extremely tiny components formed on a single, thin, flat piece of material known as a semiconductor.
1/9/2012 Miss Sheena I. Sapuay
THE MICROPROCESSOR
Modern microprocessors incorporate transistors (which act as electronic amplifiers, oscillators, or, most commonly, switches), in addition to other components such as resistors, diodes, capacitors, and wires, all packed into an area about the size of a postage stamp.
1/9/2012
Registers
the registers are special memory locations for storing temporary information much as a scratch pad does
Control Unit
deciphers programs; logic which controls the data paths
1/9/2012 Miss Sheena I. Sapuay
Cache memory
Internal data storage speed up access to external data-storage devices
1/9/2012
THE MICROPROCESSOR
Modern microprocessors operate with bus widths of 64 bits, meaning that 64 bits of data can be transferred at the same time. A crystal oscillator in the computer provides a clock signal to coordinate all activities of the microprocessor. The clock speed of microprocessors allows billions of computer instructions to be executed every second.
1/9/2012 Miss Sheena I. Sapuay
MACHINE INSTRUCTION
The operation of the CPU is determined by the instructions it executes Each CPU comprises an INSTRUCTION SET
Collection of instructions that the CPU executes
1/9/2012
1/9/2012
RESULT OPERAND
Operation may produce result
1/9/2012
INSTRUCTION REPRESENTATION
Each instruction is represented by a sequence 6 bits 6 bits of bits 4 bits OP CODE OPERAND REF OPERAND REF Ex.
16 bits
1/9/2012
INSTRUCTION TYPES
A high-level language expresses operation in a concise algebraic form using variables A machine language expresses operation in a basic form involving movement of data to or from registers
1/9/2012
INSTRUCTION TYPES
Data Processing
Arithmetic/logic instructions
Data Storage
Memory instructions
Data Movement
I/O instructions
Control
Test and branch instructions
1/9/2012 Miss Sheena I. Sapuay
TYPES OF OPERANDS
Addresses Numbers
Numeric data types (integer, float, decimal)
Characters
Text or character strings
Logical Data
Boolean data
1/9/2012
INSTRUCTION SET
a list of all the instructions, and all their variations, that a processor can execute Instructions include:
Arithmetic such as add and subtract Logic instructions such as and, or, and not Data instructions such as move, input, output, load, and store Control flow instructions such as goto, if ... goto, call, and return.
1/9/2012 Miss Sheena I. Sapuay
CISC
stands for Complex Instruction Set Computer Most PC's use CPU based on this architecture Typically CISC chips have a large amount of different and complex instructions.
1/9/2012
CISC
The philosophy behind this is hardware is always faster than software, therefore one should make a powerful instruction set, which provides programmers with assembly instructions to do a lot with short programs.
1/9/2012
RISC
stands for Reduced Instruction Set Computer. The philosophy behind it is that almost no one uses complex assembly language instructions as used by CISC, and people mostly use compilers which never use complex instructions.
1/9/2012
RISC
fewer, simpler and faster instructions would be better, than the large, complex and slower CISC instructions. However, more instructions are needed to accomplish a task. because of the more simple instructions, RISC chips require fewer transistors, which makes them easier to design and cheaper to produce
1/9/2012 Miss Sheena I. Sapuay
RISC Emphasis on software Single-clock, reduced instruction only Register to register: "LOAD" and "STORE" are independent instructions Low cycles per second, large code sizes Spends more transistors on memory registers
Decades of Computing