Co 3
Co 3
15 12 11 0 15 12 11 0
Opcode Operand
DIRECT ADDRESS
Fig (a)
S2S1S0: Selects the register/memory that would use the bus. Example
if S2S1S0= 011 (decimal equivalent =3) , 16-bit outputs of DR are
placed on the bus.
LD (load): When enabled, the particular register receives the data
from the bus during the next clock pulse transition.
The memory receives the contents of the bus when its write input is
activated.
The memory places its content onto bus when read input is
activated.
E (extended AC bit): flip-flop holds the carry
DR, AC, IR, and TR: have 16 bits each
AR and PC: have 12 bits each and they hold a memory address.
When the contents of these are applied to bus, the four most
significant nits are set to 0’s.
When AR or PC receives information from the bus, only the 12 least
significant bits are transferred into the register.
INPR: Receives a character from the input device (keyboard,…etc)
which is then transferred to AC.
OUTR: Receives a character from AC and delivers it to an output
device (say a Monitor).
16 lines of common bus receive information from six registers and
memory unit.
Five registers have three control inputs: LD (load), INR
(increment), and CLR (clear).
Memory address-
The input data and output data of the memory are connected to the
common bus, but the memory address is connected to AR.
Therefore, AR must always be used to specify a memory address.
By using a single register for the address, we eliminate the need for
an address bus that would have been needed otherwise.
The operation code part of the instruction contain three bits and the
remaining 13 bits depends on the operation code encountered.
A memory-reference instruction uses 12 bits to specify an address
and one bit to specify the addressing mode I.(=0 for direct & 1 for
indirect address).
The register reference instructions are recognized by the operation
code 111 with a 0 in the leftmost bit(15 bit) of an instruction.
An input-output instruction does not need a reference to memory
and is recognized by the operation code 111 with a 1 in the left-most
bit of instruction. The remaining 12-bits are used to specify the type
of input-output operation or test performed.
BASIC COMPUTER
INSTRUCTIONS
} Memory-reference
instructions
} Register-reference
instructions
Input-output
} instructions
INSTRUCTION CYCLE
T0: AR←PC
T1: IR←M[AR], PC←PC+1
T2: D0,…, D7←Decode IR(12-14), AR←IR(0-11), I←IR(15)
DETERMINE THE TYPE OF INSTRUCTION
The timing signal that is active after decoding is T3. During T3 the control
unit determines the type of instruction that was just read from memory.
Following diagram shows how instruction type is decoded.