Skip to content

Latest commit

 

History

History
60 lines (29 loc) · 1.01 KB

File metadata and controls

60 lines (29 loc) · 1.01 KB

DM-02 Modules

This documentation is still in progress...

This document contains notes in each of the modules that form the DM-02 Computer.

Program Counter & Stack Pointer

These two functions share one PCB.

Program Counter

Built around four 74HCT161 counters. Why different counters than the Stack Pointer? Because a RESET line is required. Also, it does not need to ability to decrement.

Stack Pointer

in progress

ALU & Flags Register

These share one PCB

ALU

Changes to the A(ccumulator) register immediately latched into the ALU (A operand). When ALU_load is high, input for the B operand is loaded from the bus and the result is stored in the A register. The result is then also latched into the ALU's A operand, within the same clock cycle.

# Example microcode for "ADD B"

FETCH: ...
0:     B_out
       ALU_load
       ALU_function=01001
1:     TSTATE_reset

Flags Register

in progress

Memory Access Register & Memory

in progress

Registers

in progress