EveryCircuit
Contact
Reviews
Home
Yasunari
modified 2 years ago

4bit CPU_without ROM

22
1
1464
13:47:13
4bit CPU using relays. (without ROM & Address decoder) This circuit is from my relay 4-bit CPU, EMC-110. The top ramp from left to right represents the A register, B register, input, and output. The left four of the eight lamps in the center represent opcodes and the right four represent operand. Originally, these values are displayed as read from ROM, but due to space limitations, they are entered manually. The lamp slightly above right represents the output of the program counter. The lower lamps are, from left to right: Zero flag, Carry flag, ALU output, Clock distributor output (A Reg_Clk, B Reg_Clk, Output_Clk, PC_JMP Clk), and for clock indication. The switch above the clock lamp is for automatic or manual clock switching, and the switch below is for manual clocking. OpCode Operand Operation 0000 XXXX A ← [Data] 0001 XXXX B ← [Data] 0010      A ← B 0011      B ← A 0100      A ← A + B 0101      A ← A - B 0110 XXXX A ← A + [Data] 0111 XXXX A ← A - [Data] 1000      OUT ← A 1001      OUT ← B 1010 XXXX OUT ← [Data] 1011      A ← IN 1100 XXXX PC ← [Address] 1101 XXXX PC ← [Address] (C = 1) 1110 XXXX PC ← [Address] (Z = 1) 1111      HALT (Clock stop) The instruction set of this CPU is based on that of CPU1738 (https://www.zep.co.jp/nbeppu/article/mz-cpu1738-da1/) and is compatible. However, the contents of the circuits are almost completely different. In addition to the general instruction decoder, a clock distributor is used as an instruction decoder unique to the relay. Instead of inputting a clock to all registers each time and selecting update/maintenance by a different signal, the clock signal itself is distributed to control an arbitrary register. Synchronization is maintained because the circuit itself can be switched. It can be said that this circuit is unique to relays.
published 2 years ago
yereon
2 years ago
Thats awesome.

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy