All the registers, the memory and the control signals described so far form one working machine. This topic shows how they fit together and how the accumulator, the heart of the computation, is designed.

Complete Computer Description

The basic computer can be summarised as a set of registers connected to a common bus, a memory unit, a control unit and an input-output interface. Every instruction of the machine is a sequence of register transfers. A flowchart of the full operation shows the fetch and decode steps for all instructions, and then the execute step for each type. The complete description is useful because the hardware of each register can be designed from it.

Definition: Common bus. A set of shared lines through which several registers and the memory send or receive data, only one source being allowed to drive the bus at a time.

Design of the Basic Computer

The hardware is built from five parts: the memory unit of 4096 words, nine registers, seven flip-flops, the decoders and sequence counter, and the control logic gates. A 16-bit common bus connects the registers and memory. Three select lines S2, S1 and S0 choose which register places its content on the bus. The control inputs of each register are the load, increment and clear signals, and these are produced by the control logic gates from the timing and decoder signals.

Design of the Accumulator Logic

The accumulator is not only a register. In front of it sits a circuit that can perform AND, ADD, transfer of DR, transfer of INPR, complement, shift right, shift left, clear and increment. These operations are used by different instructions, and a control signal selects which result enters the AC. Hence the accumulator needs gates to form the input of each of its sixteen bits. The adder and logic circuit takes its two inputs from AC and DR. The result is then sent to the AC, and its carry goes to the E flip-flop.

Table 3.5: Operations of the accumulator logic

Operation Control signal Instruction
AND with DR D0T5 AND
Add DR D1T5 ADD
Transfer DR D2T5 LDA
Transfer INPR pB11 INP
Complement rB9 CMA
Shift right rB7 CIR
Shift left rB6 CIL
Clear rB11 CLA
Increment rB5 INC

Example 3.6: Design of a control condition

Problem: The accumulator must load from DR during the instruction LDA and also when ADD is executed. State which signals must be combined to make the load signal LD of AC.

Solution:

  1. The AC takes the output of the adder and logic circuit in the three cases of AND, ADD and LDA.
  2. The signals are D0T5, D1T5 and D2T5.
  3. They are combined by an OR gate.

Result: LD(AC) = D0T5 + D1T5 + D2T5. In the full design, the signals of the register-reference and input-output instructions that change AC are added to the same OR gate.

Common mistakes

  • Assuming each register has its own separate set of wires to every other register. A common bus is shared.
  • Letting two registers drive the bus at the same time.
  • Forgetting that the carry of the adder goes to the flip-flop E.

Key takeaways

  • The complete computer is memory, registers, a common bus and control logic.
  • Select lines decide which register drives the bus.
  • The accumulator input is formed by combining several operations.
  • The load signal of a register is an OR of all the control functions that change it.

Practice questions

  1. What is the purpose of the common bus?
  2. Which circuit supplies the inputs of the AC for arithmetic and logic?
  3. Where does the carry of the adder go?

Answers to the practice questions

  1. It lets many registers and the memory share one set of data lines.
  2. The adder and logic circuit.
  3. To the E flip-flop.

Sources

  • Official BCA syllabus Computer Architecture, course code 25BCA401DS02, Unit III