Skip to content

About

Manually controlled 8-bit data / 20-bit address processor inspired by Intel 8085, designed and simulated in Logisim 2.7.1.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CIBER-20 — 8-Bit / 20-Bit Address Processor (Logisim)

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.

Overview & Objective

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.

How It Works

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)
  1. Manual Data Entry & Register Transfers (MOV / MVI): Immediate 8-bit values enter DataBus via DinManual (ManualOut) or are fetched from RAM (RAM_OUT) and latched into Accumulator (AC_IN), RegTemp (TMP_IN), RegIns (IR_IN), or any 8-bit register in AR (B, C, D, E, H, L via AR_DATAIN and AR_IN).
  2. Arithmetic & Logic Execution (ALU & RegFlag): Accumulator supplies Operand A (Dacum) and RegTemp supplies Operand B (Din) to the 8-bit ALU, which selects between Addition (000), Subtraction (001), AND (010), OR (011), and XOR (100) via ALU_OP and ALU_IN. Results return to DataBus (ALU_OUT) while RegFlag stores CarryFlag (C), BorrowFlag (B), and ZeroFlag (Z).
  3. 16-Bit Register Pairs & 20-Bit Addressing (AR & RegDir): AR combines registers into 16-bit pairs (BC, DE, HL via AR_SELREGPAR), extends DoutPair from 16 to 20 bits (AR_PAREXT), and feeds RegDir (DHL) alongside PC (DPC) and SP (DSP). RD_SELDIR and RD_IN latch the active 20-bit target address.
  4. Program Flow & Stack (PC & SP): PC supports asynchronous reset (PC_RESET), sequential increment (PC + 1), and external jump loading (PC_INS, PC_IN, PC_OUT). SP supports reset (SP_RESET), hold (00), external load (01, including INIT_SP = 0xFFFFF), increment (10, SP + 1), and decrement (11, SP - 1) for PUSH and POP operations.
  5. Non-Paged 1 MB Memory (RAM): Implemented as four 256 KB × 8-bit RAM chips (addrWidth=18). Address bits 0–17 index each chip while bits 18–19 drive a 2-to-4 decoder to select one of the four banks (RAM_WE for write, RAM_OUT for tri-state read).

Architecture Summary

  • circuit/Ciber20.circ: Complete Logisim 2.7.1 schematic containing main and 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 35 main control/output signals, flag definitions, step-by-step micro-operations, and timing diagrams (POP and Register Operations).
  • assets/ciber20_architecture.png: Top-level schematic screenshot of the main processor circuit.
  • assets/ciber20_simulation.mp4: Manual simulation walkthrough demonstrating data entry, ALU flags, addressing, stack pointer, and 1 MB RAM read/write operations.

Demo & Screenshots

  1. Top-level CIBER-20 processor schematic (main):

CIBER-20 Architecture

  1. Manual simulation walkthrough: assets/ciber20_simulation.mp4

Setup and Usage

  1. Download and open Logisim 2.7.1.
  2. Load the circuit file:
    circuit/Ciber20.circ
    
  3. Verify that Simulate → Simulation Enabled is active.
  4. 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 toggle CLK (0 → 1 → 0) following the sequences in docs/Signals_Table.xlsx.

Current Limitations & Future Work

  • Manual Control Unit: RegIns currently displays the fetched 8-bit opcode for the operator; an automated instruction decoder / Control Unit FSM is not yet connected to drive the 35 main control lines automatically.
  • Unassigned ALU Opcodes: The 3-bit ALU_OP multiplexer implements opcodes 000–100 (Add, Sub, AND, OR, XOR); inputs 101–111 are 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), while PC and SP natively operate across the full 20-bit 1 MB space (0x00000–0xFFFFF).

Authors & Context

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

About

Manually controlled 8-bit data / 20-bit address processor inspired by Intel 8085, designed and simulated in Logisim 2.7.1.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors