This project implements a Custom CPU Architecture using Logisim Evolution. The design includes an Arithmetic Logic Unit (ALU), Registers, Control Unit, and Memory components to execute fundamental operations.
- β ALU Operations β Supports addition, subtraction, AND, OR, and other basic arithmetic and logical operations. The ALU performs these operations based on the input instructions.
- β Register File β Stores temporary data values that the CPU needs for immediate operations, helping improve processing efficiency and speed.
- β Control Unit β Decodes the instruction and controls the execution of the CPU, coordinating how data flows between components such as ALU, memory, and registers.
- β Clock-Driven Execution β Uses clock pulses to execute operations step-by-step, allowing for synchronization and controlling the flow of instructions in a sequential manner.
- β RAM & ROM Integration β Integrates memory for data storage (RAM) and instruction storage (ROM), enabling the CPU to access data and execute instructions effectively.
/CPU_Design βββ 2107086_ALU.circ # Arithmetic Logic Unit (ALU) βββ 2107086_CPU.circ # CPU core logic βββ 2107086_alu2.circ # Alternative ALU design βββ 2107086_Project_report.pdf # Documentation of the project βββ Instruction_1.txt # Instruction file for CPU operations βββ ScreenShot/ # Folder containing simulation screenshots β βββ Screenshot_1.png # CPU simulation screenshot βββ .DS_Store # System file (macOS specific)
- Download and Install Logisim Evolution β Logisim Evolution
- Open Logisim Evolution.
- Click "File β Open" and select
2107086_CPU.circ. - Use "Simulate β Tick Once" to execute step-by-step.
- Observe the registers, ALU, and memory changes during execution.
- Ensure all inputs have defined values (use constants if needed).
- Check the Control Unit signals for proper instruction execution.
- Ensure the clock is connected to sequential components.
- Use "Tick Frequency β Slow" to debug step-by-step execution.
- Check if the MUX selects the correct ALU operation.
- Verify that input values match expected results.
- π Add pipeline stages for faster execution.
- π Implement interrupt handling for advanced functionality.
- π Improve instruction set support to handle more complex operations.
This project is open-source. Feel free to use, modify, and contribute!
This project demonstrates CPU architecture design in Logisim, focusing on the ALU, registers, memory, and control unit. It provides a foundation for learning computer organization and digital logic.