Академический Документы
Профессиональный Документы
Культура Документы
• Introduction
• Architecture Models
• Control Buses
• Programming Languages
• Instruction Cycle
• Computer Memory Management
One data bus and one address bus between processor and
memory.
Output
devices
CPU
Contains ALU, CU and a variety of registers.
REGISTERS
High speed storage areas in the CPU.
ALU
The ALU allows arithmetic (add, subtract etc) and logic
(AND, OR, NOT etc) operations to be carried out.
CU
Controls the operation of the computer’s ALU, memory and
input/output devices.
VON-NEUMANN HARVARD
1. Data and program are stored in the same 1. Data and program memories are separate.
memory.
2.The code is executed serially and takes 2.The code is executed in parallel.
more clock cycles.
3.The programs can be optimized in lesser 3.The program tend to grow big in size.
size.
4.Control unit for the two buses is more
4.One bus is simpler for the control unit
complicated and more expensive.
design.
MEMORY WIDTH
ADDRESS WIDTH
ADDRESS SPACE
Solution: 1. 8 bits
2. 8 bytes
3. 3
4. 6=0000 0110
22
Apex Institute of Technology- CSE
FUNDAMENTAL CONSTITUENTS OF ALU
REGISTERS.
23
Apex Institute of Technology- CSE
Apex Institute of Technology- CSE
Contt..
ADD X, Y
Assume: opcode for ADD is 9, and addresses X=99, Y=100
26
Apex Institute of Technology- CSE
Contt..
27
Apex Institute of Technology- CSE
CPU
28
Apex Institute of Technology- CSE
MEMORY
29
Apex Institute of Technology- CSE
TYPES OF MEMORY
PRIMARY MEMORY
SECONDARY MEMORY
30
Apex Institute of Technology- CSE
PRIMARY MEMORY
31
Apex Institute of Technology- CSE
RAM(RANDOM ACCESS MEMORY)
32
Apex Institute of Technology- CSE
TYPES OF RAM
RAM
SRAM DRAM
DDR2
RDRAM SDRAM DDRSDRAM
SDRAM
33
Apex Institute of Technology- CSE
Apex Institute of Technology- CSE
ROM(READ ONLY MEMORY)
ROM
PROM
EEPROM
EPROM
ACCUMULATOR
INSTRUCTION REGISTER
DATA REGISTER
TEMPORARY REGISTER
ADDRESS REGISTER
PROGRAM COUNTER
INPUT REGISTER
OUTPUT REGISTER
46
Apex Institute of Technology- CSE
48
OBJECTIVES
Basic Terminology
Levels of Programming Language
Assembly Language
Stored Program Organization
Instruction types,cycle
Input output instructions
49
Apex Institute of Technology- CSE
OBJECTIVES
Addressing Modes
RISC and CISC
Pipelining
50
Apex Institute of Technology- CSE
INSTRUCTION
51
Apex Institute of Technology- CSE
PROGRAM
52
Apex Institute of Technology- CSE
LANGUAGE
53
Apex Institute of Technology- CSE
PROGRAMMING LANGUAGE
54
Apex Institute of Technology- CSE
LEVELS OF PROGRAMMING LANGUAGE
55
Apex Institute of Technology- CSE
MACHINE LANGUAGE
56
Apex Institute of Technology- CSE
ASSEMBLY LANGUAGE
Easier to learn.
Requires translators.
c=a+b;
Binary code.
Octal or hexadecimal code.
Symbolic code.
High level programming languages.
COMPILERS
INTERPRETER
ASSEMBLER
70
Apex Institute of Technology- CSE
INSTRUCTION CODE
71
Apex Institute of Technology- CSE
Instruction
• Instruction Codes
An instruction is a group of bits that
instruct the computer to perform the specific
operation.
• Instruction Format
81
Apex Institute of Technology- CSE
82
Apex Institute of Technology- CSE
BASIC COMPUTER INSTRUCTION
FORMATS
83
Apex Institute of Technology- CSE
84
Apex Institute of Technology- CSE
Timing and Control
• Two types of control organization
• Hardwired:
• Microprogrammed
Contd..
• Hardwired: The control signals are generated
as an output of a set of basic logic gates, the
input of which derives from the binary bits in
the Instruction Register. It is fast. Modification
are to be done with wiring so difficult.
• Microprogrammed: The control signals are
generated by a microprogram that is stored in
Control Read Only Memory
Design of Control Unit
INSTRUCTION CYCLE
Fetch
Decode
Execute
89
Apex Institute of Technology- CSE
Instruction Cycle
T0: AR ← PC
T1: IR ← M[AR], PC ← PC + 1
T2: D0,…, D1 ← Decode IR (12-14), AR ← IR(0 −11),
1 ← IR (15)
95
Apex Institute of Technology- CSE
INSTRUCTION TYPES
REGISTER REFERENCE
MEMORY REFERNCE
INPUT OUTPUT INSTRUCTIONS
96
Apex Institute of Technology- CSE
Table2 : Execution of Register-reference instructions[3]
Memory Reference Instructions
Input-output Instructions
FAQs