Complete Computer Description
Instruction Cycle Flowchart
The instruction cycle of the basic computer, including the interrupt cycle, operates as follows:
-
Fetch:
- Fetch the instruction from memory.
- Increment the Program Counter (PC).
-
Decode:
- Decode the fetched instruction to determine its type and operands.
-
Execute:
- If the instruction is a memory-reference instruction, check if it involves an indirect address.
- Execute the instruction based on its type.
-
Interrupt:
- If the interrupt flip-flop (R) is set, initiate the interrupt cycle.
Register Transfer Statements
The operations of the basic computer can be described using register transfer statements. These statements summarize the control functions and microoperations required to design the computer's logic circuits.
Control Functions and Microoperations
The control functions and microoperations are summarized as follows:
-
Fetch Cycle:
-
Decode Cycle:
-
Indirect Cycle:
-
Interrupt Cycle:
-
Memory-Reference Instructions:
- AND:
- ADD:
- LDA:
- STA:
- BUN:
- BSA:
- ISZ:
-
if (DR = 0) : : (PC \leftarrow PC + 1), SC \leftarrow 0$
-
Register-Reference Instructions:
- CLA:
- CLE:
- CMA:
- CME:
- CIR:
- CIL:
- INC:
- SPA: then
- SNA: then
- SZA: then
- SZE: then
- HLT:
-
Input-Output Instructions:
-
INP:
-
OUT:
-
SKI: then
-
SKO: then
-
ION:
-
IOF:
-
Design of Basic Computer
The basic computer comprises several hardware components:
-
Memory Unit:
- 4096 words, each 16 bits.
-
Registers:
- Nine registers: AR, PC, DR, AC, IR, TR, OUTR, INPR, and SC.
-
Flip-Flops:
- Seven flip-flops: I, S, E, R, IEN, FGI, and FGO.
-
Decoders:
- Two decoders: 3x8 operation decoder and 4x16 timing decoder.
-
Bus:
- 16-bit common bus.
-
Control Logic Gates
-
Adder and Logic Circuit:
- Connected to the input of AC.
Control Logic Gates
The control logic gates receive inputs from the decoders, flip-flops, and IR bits 0 through 11. They output signals to control the registers, memory, flip-flops, bus, and AC adder and logic circuit.
Control of Registers and Memory
The registers connected to the common bus system have control inputs LD (load), INR (increment), and CLR (clear). The control functions for AR, for instance, are:
- Load:
- Clear:
- Increment:
Control of Single Flip-Flops
Flip-flops are controlled similarly. For example, the control gates for IEN are derived from:
Control of Common Bus
The common bus selection is controlled by inputs . Each register is selected based on a binary encoder which takes Boolean inputs to generate the selection signals.
Adder and Logic Circuit for AC
The AC register interacts with an adder and logic circuit, which handles operations like AND, ADD, transfer, complement, and shifts. The circuit design is based on the following control functions:
- AND with DR:
- Add with DR:
- Transfer from DR:
- Transfer from INPR:
- Complement:
- Shift Right:
- Shift Left:
- Clear:
- Increment:
Each stage of the adder and logic circuit has specific inputs and outputs to handle these operations, controlled by the relevant microoperations.
Control of AC Register
The control gates for AC's LD, INR, and CLR inputs are derived from the register transfer statements. For instance:
The gate structure for controlling these inputs ensures that the correct microoperation is performed at the appropriate time.
Adder and Logic Circuit Stages
The adder and logic circuit is divided into 16 stages, each corresponding to one bit of AC. Each stage includes logic for performing AND, ADD, complement, and shift operations. The stages are connected to handle the full range of operations required by the AC register.
This comprehensive description covers the basic computer's instruction cycle, control logic, and key components necessary for its operation. The use of register transfer statements and Boolean logic provides a clear framework for designing the computer's hardware and understanding its functionality.