LEC-7-CAO
LEC-7-CAO
• Instruction word should have the complete information required to fetch and execute the
instruction
Specification
0011
0011 01 000 00011 101 00001 00000 110 00010
0010
of src2
Instruction Representation
• Examples of RISC instructions:
ADD.w R2, R0, R1
Size of Specification Specification Specification
Opcode
operands of dst of src1 of src2
• Address registers hold memory addresses and are used to access memory. (AR)
• General Purpose registers (GPRs) can store both data and addresses, i.e., they are
combined Data/Address registers
• Floating Point registers (FPRs) are used to store floating pointComputer arithmetic
• Constant registers hold read-only values (e.g., zero, one, pi, ...).
• Special Purpose registers store internal CPU data, like the program counter which
indicates where the computer is in its instruction sequence
• Every computer has its own instruction set. The ability to store and execute
, the stored program concept, is the most important property of a general
purpose computer.
• The control unit receives the instruction from memory and interprets
the computer code bits.
• It then issues a sequence of control signals to initiate micro
operations in internal computer registers.
OPCODE ADDRESS
Instruction Format
OPERANDS
(DATA)
PROCESSOR
STORED PROGRAM ORGANIZATION
REGISTERS
COMMON BUS SYSTEM
• BASIC COMPUTER HAS
EIGHT REGISTERS
MEMORY UNIT
CONTROL UNIT
• Path must be provided to transfer information from one register to another and
between memory and registers.
• The number of wires will be excessive if connections are made between the o/p of
each register and i/p of other registers.
ADDRESS
AR
PC
DR
ADDER AC
&
LOGIC
INPR
IR
TR
OUTR
COMMON BUS
Computer Instructions
• Computer instruction code format has 16 bits
I OPCODE ADDRESS
15 14 12 11 0
I OPCODE ADDRESS
• They are recognized by the OPCOde 111 and 1 with the left most bit