Professional Documents
Culture Documents
CHAPTER 5:
BASIC COMPUTER ORGANIZATION AND DESIGN
5-1 Instruction Codes
5-2 Computer Registers
5-3 Computer Instructions
5-4 Timing & Control
5-5 Instruction Cycle
5-6 Memory Reference Instructions
5-7 Input-Output & Interrupts
5-8 Complete Computer Description
5-9 Design of Basic Computer
5-10 Design of Accumulator Logic
Many registers
Multiple arithmetic units, for both integer and floating point calculations
The ability to pipeline several consecutive instructions to speed execution
Etc.
However, to understand how processors work, we will start with a simplified processor
mode. This is similar to what real processors were like ~35 years ago
M. Morris Mano introduces a simple processor model he calls the Basic Computer.
We will use this to introduce processor organization and the relationship of the RTL
model to the higher level computer processor
The internal organization of a digital system is defined by the sequence of microoperations it performs on data stored in its registers. By executing several microoperations in specified sequence, then a computer instruction can be executed.
Program: A set of instructions that specifies operation, operands, and sequence of
processing has to occur
The instructions of a program, along with any needed data are stored in
memory. The CPU reads the next instruction from memory.
It is placed in an Instruction Register(IR)
Control circuitry in control unit then translates the instruction into the sequence
of micro-operations necessary to implement it
An op-code (Operation Code) that specifies the operation for that instruction
An address that specifies the registers and/or locations in memory to use for
that operation
In the Basic Computer, since the memory contains 4096 (= 212) words, we needs 12 bit
to specify which memory address this instruction will use
In the Basic Computer, bit 15 of the instruction specifies the addressing mode (0: direct
addressing, 1: indirect addressing)
Since the memory words, and hence the instructions, are 16 bits long, that leaves 3 bits
for the instructions op-code
Accumulator Register (AC): exist in single register processors (AC) and all operations
are performed with memory operand and this register.
Addressing Modes
By looking at previous figure we can say that we can have those 3 addressing modes
1. Immediate operand: when the second part of the instruction code specifies an
operand.
2. Direct address: when the second part of the instruction code specifies the
address of the operand.
3. Indirect address: when this part specifies an address in a memory where we can
find the true address of the operand.
The (I) bit of the instruction code specifies direct addressing If I=0 or Indirect
addressing if I=1.
Effective Address (EA):
The address that can be directly used without modification to access an operand for a
computation-type instruction, or as the target address for a branch-type instruction