Chapter 33
Chapter 33
Data Bus
Volatile Memory (RAM) Input Output
M[0]
I/O Bus
M[1] CPU
Control Unit (CU)
CLK
Control
Bus
M[L-1]
Address Bus
MANO’S COMPUTER SPECIFICATION
11 0 Memory
4096 words
AR 16 bits per
word
15 0
IR
15 0
15 0
DR
TR
7 0 7 0 15 0
OUT
OUT INPR
AC
RR
STORED PROGRAMS
A stored program is a set of instructions and data
expressed in binary language, stored in non-volatile
(ie. disk storage) memory
IR
Mode I OpCode Address
bit
MANO’S INSTRUCTION FORMAT
Instruction
• Instruction Types
Functional Instructions
- Arithmetic, logic, and shift instructions
- ADD, CMA, INC, CIR, CIL, AND, CLA (other than ADD/AND?)
Transfer Instructions
- Data transfers between the main memory
and the processor registers
- LDA, STA
Control Instructions
- Program sequencing and control
- BUN, BSA, ISZ
Input/Output Instructions
- Input and output
- INP, OUT
INSTRUCTION CYCLE
300 1350
457 Operand
1350 Operand
+ +
AC AC
1. MEMORY-REFERENCE INSTRUCTIONS:
D6T5: DRDR+1
CLA
Hex Mnemonic RTL CMA
7800 CLA AC = 0 INC
AC
7200 CMA AC = ~ AC
7020 INC AC = AC + 1
7400 CLE E = 0 E
7100 CME E = ~ E
REGISTER REFERENCE INSTRUCTIONS
Shift AC register.
This is a circular shift that is performed using the E register
Control over timing ensures all operations operate in parallel
Eg. Use master-slave flip-flops in registers
AC
REGISTER REFERENCE INSTRUCTIONS
Skip on <condition> : AC register.
Tests sign/value status of 2’s complement integer in AC
If status matches query, advance PC by one instruction word
r: SC 0 Clear SC
FGO
Status
Printer Receiver
Interface OUTR Data
NOTE:
AC(H) AC(L) Only the low order part
of AC is used.
16 bit
OpCode Mnemonic Meaning
F800 INP Input ASCII char
F400 OUT Output ASCII char
F200 SKI Skip if input flag (FGI=1)
F100 SKO Skip if output flag (FGO=1)
F 8
4
2
1
15 14 12 11 0
p: SC 0 Clear SC
INP pB11: AC(0-7) INPR, FGI0 Input character
OUT PB10:OUTRAC(0-7),FGO 0 Output character
16 bit
OpCode Mnemonic Meaning
F080 ION Interrupt Enabled (IEN 1)
F040 IOF Interrupt Disabled (IEN 0) IEN
15 14 12 11 0
1-bit registers
We will also
require one final =0
IEN IEN
register, called All of these
TR (for transfer). =1 flipflops are
This can be 16 assumed to be
=1
bits, but must be FGI FGI
reset to 0 when
at least 12 bits.
=0 bootstrapping
the computer.
=1
FG0 FGO
=0
R1 R
Control Bus
INTERRUPT HANDLING FLOWCHART
=0 FGO
=1 Reset Interrupt, Ready
FG0
IEN 0 R
=0 R0
R1
TR
Control Bus
INTERRUPT HANDLING FLOWCHART