A manually controlled educational processor inspired by the Intel 8085 architecture, designed and simulated in Logisim 2.7.1 with an 8-bit data bus (DataBus) and a 20-bit address bus (DirBus) capable of addressing 1 MB of non-paged RAM.
The project models the internal datapath, memory organization, and micro-operation sequencing of a classic 8-bit microprocessor extended to a 20-bit address space. Instead of relying on an automated microprogrammed or hardwired Control Unit, all control lines (Enable, Tri-state, Selector, and Reset signals) are exposed as interactive pins in main, allowing step-by-step manual verification of fetch, register-transfer, ALU, stack (PUSH/POP), jump, and memory read/write cycles.
The processor operates across two shared buses—an 8-bit DataBus for operands/instructions and a 20-bit DirBus for memory addressing—driven by tri-state buffers to prevent bus contention:
DinManual / RAM (1 MB) / AR (8-bit) ──▶ DataBus (8-bit) ──▶ Accumulator / RegTemp / RegIns / AR
│ │
▼ ▼
ALU ────▶ RegFlag (C, B, Z)
AR (HL 16→20-bit) / PC (20-bit) / SP (20-bit) ──▶ DirBus / RegDir ──▶ RAM (4 × 256 KB Banks)
- Manual Data Entry & Register Transfers (
MOV/MVI): Immediate 8-bit values enterDataBusviaDinManual(ManualOut) or are fetched fromRAM(RAM_OUT) and latched intoAccumulator(AC_IN),RegTemp(TMP_IN),RegIns(IR_IN), or any 8-bit register inAR(B, C, D, E, H, LviaAR_DATAINandAR_IN). - Arithmetic & Logic Execution (
ALU&RegFlag):Accumulatorsupplies Operand A (Dacum) andRegTempsupplies Operand B (Din) to the 8-bitALU, which selects between Addition (000), Subtraction (001), AND (010), OR (011), and XOR (100) viaALU_OPandALU_IN. Results return toDataBus(ALU_OUT) whileRegFlagstoresCarryFlag(C),BorrowFlag(B), andZeroFlag(Z). - 16-Bit Register Pairs & 20-Bit Addressing (
AR&RegDir):ARcombines registers into 16-bit pairs (BC,DE,HLviaAR_SELREGPAR), extendsDoutPairfrom 16 to 20 bits (AR_PAREXT), and feedsRegDir(DHL) alongsidePC(DPC) andSP(DSP).RD_SELDIRandRD_INlatch the active 20-bit target address. - Program Flow & Stack (
PC&SP):PCsupports asynchronous reset (PC_RESET), sequential increment (PC + 1), and external jump loading (PC_INS,PC_IN,PC_OUT).SPsupports reset (SP_RESET), hold (00), external load (01, includingINIT_SP=0xFFFFF), increment (10,SP + 1), and decrement (11,SP - 1) forPUSHandPOPoperations. - Non-Paged 1 MB Memory (
RAM): Implemented as four 256 KB × 8-bit RAM chips (addrWidth=18). Address bits0–17index each chip while bits18–19drive a 2-to-4 decoder to select one of the four banks (RAM_WEfor write,RAM_OUTfor tri-state read).
circuit/Ciber20.circ: Complete Logisim 2.7.1 schematic containingmainand all modular subcircuits (Accumulator,ALU,RegFlag,AR,PC,SP,RegDir,RegTemp,RegIns,RAM).docs/Signals_Table.xlsx: Complete English documentation covering per-module signal tables, all 35maincontrol/output signals, flag definitions, step-by-step micro-operations, and timing diagrams (POPandRegister Operations).assets/ciber20_architecture.png: Top-level schematic screenshot of themainprocessor circuit.assets/ciber20_simulation.mp4: Manual simulation walkthrough demonstrating data entry, ALU flags, addressing, stack pointer, and 1 MB RAM read/write operations.
- Top-level
CIBER-20processor schematic (main):
- Manual simulation walkthrough:
assets/ciber20_simulation.mp4
- Download and open Logisim 2.7.1.
- Load the circuit file:
circuit/Ciber20.circ - Verify that Simulate → Simulation Enabled is active.
- Use the Poke Tool (hand icon) to set control pins (
DinManual,ManualOut,AR_IN,AC_IN,ALU_OP,PC_IN,SP_IN,RD_IN,RAM_WE,RAM_OUT, etc.) and toggleCLK(0 → 1 → 0) following the sequences indocs/Signals_Table.xlsx.
- Manual Control Unit:
RegInscurrently displays the fetched 8-bit opcode for the operator; an automated instruction decoder / Control Unit FSM is not yet connected to drive the 35maincontrol lines automatically. - Unassigned ALU Opcodes: The 3-bit
ALU_OPmultiplexer implements opcodes000–100(Add, Sub, AND, OR, XOR); inputs101–111are left unassigned for future operations (e.g., shifts, rotates, or comparisons). - 20-Bit Address Extension: 16-bit pairs (
BC,DE,HL) are zero-extended from 16 to 20 bits (0x00000–0x0FFFF), whilePCandSPnatively operate across the full 20-bit1 MBspace (0x00000–0xFFFFF).
Developed as the final project for the Computer Architecture and Systems course (Faculty of Engineering, Universidad La Salle México):
- Angel Santiago Quezada Tapia (@AngelQuez06)
- Marlon Sebastian Molina Rodríguez (@Setzedich)
- Luis Gabriel Buendía Cortés
