Skipping the part where he reviews assessment


Going over Multicycle 8-bit 1-bus machine - genericcpu.txt2.pdf

  • A worksheet for design of a 1-bus CPU

operations will execute in A=A+B format, where one register is destination and source
A-type:

  • Opcode: 7-4
  • ds (destination & source): 3
  • s: 2
  • extra: 1-0
    B-type:
  • Opcode: 7-4
  • ds: 3
  • Immediate: 2-0
    C-type:
  • Opcode: 7-4
  • Offset: 3-0

ALU functions:

OpALU1ALU0
Add11
Or10
And01
Not A00

We never put bits 7-4 on the bus from the IR, because the OP code has no reason to be fed t

StepPCinPCoutIRinIRoutR0inR0outR1inR1outMDRinMDRoutZinZoutMARinXin# 1 outALU0ALU1MreadMwriteBusOffset
01111
1111111
2111
311

Instructions to fetch from memory

Step 1

Transclude of ECS154A-D7-2025-03-05-21.42.15.excalidraw

  • PC drives bus
  • MAR reads from bus
  • X reads from bus
  • Memory does a read

Step 2

Transclude of ECS154A-D7-2025-03-05-21.45.56.excalidraw

  • The ALU adds
  • Z grabs the result
  • Keep doing memory read (haven’t grabbed value yet
  • #1 drives bus