{"id":26406231,"url":"https://github.com/mehedi-86/my_cpu","last_synced_at":"2026-01-03T18:02:43.827Z","repository":{"id":279769594,"uuid":"939905974","full_name":"Mehedi-86/My_CPU","owner":"Mehedi-86","description":"My_CPU 🖥️ A custom-designed CPU architecture implemented in Logisim with essential components like ALU, registers, control unit, and memory to execute fundamental operations and instructions. 🚀","archived":false,"fork":false,"pushed_at":"2025-03-07T04:49:41.000Z","size":2349,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-07T05:24:07.503Z","etag":null,"topics":["logisim-computer","logisim-cpu","our-tiny-computer"],"latest_commit_sha":null,"homepage":"https://www.fpga4student.com/2016/11/16-bit-processor-cpu-using-logisim-tool.html","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mehedi-86.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-27T09:54:15.000Z","updated_at":"2025-03-07T04:49:44.000Z","dependencies_parsed_at":"2025-02-27T13:44:17.242Z","dependency_job_id":"5eb2dd7c-01b4-40c3-86be-af8d169df1e5","html_url":"https://github.com/Mehedi-86/My_CPU","commit_stats":null,"previous_names":["mehedi-86/my_cpu"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehedi-86%2FMy_CPU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehedi-86%2FMy_CPU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehedi-86%2FMy_CPU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mehedi-86%2FMy_CPU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mehedi-86","download_url":"https://codeload.github.com/Mehedi-86/My_CPU/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244075643,"owners_count":20393980,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["logisim-computer","logisim-cpu","our-tiny-computer"],"created_at":"2025-03-17T17:18:52.332Z","updated_at":"2026-01-03T18:02:43.732Z","avatar_url":"https://github.com/Mehedi-86.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e🚀 My_CPU\u003c/h1\u003e\n\n\u003ch2\u003e📖 Introduction\u003c/h2\u003e\n\u003cp\u003eThis project implements a \u003cstrong\u003eCustom CPU Architecture\u003c/strong\u003e using Logisim Evolution. The design includes an \u003cstrong\u003eArithmetic Logic Unit (ALU), Registers, Control Unit\u003c/strong\u003e, and \u003cstrong\u003eMemory components\u003c/strong\u003e to execute fundamental operations.\u003c/p\u003e\n\n\u003ch2\u003e✨ Features\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eALU Operations\u003c/strong\u003e → Supports addition, subtraction, AND, OR, and other basic arithmetic and logical operations. The ALU performs these operations based on the input instructions.\u003c/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eRegister File\u003c/strong\u003e → Stores temporary data values that the CPU needs for immediate operations, helping improve processing efficiency and speed.\u003c/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eControl Unit\u003c/strong\u003e → Decodes the instruction and controls the execution of the CPU, coordinating how data flows between components such as ALU, memory, and registers.\u003c/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eClock-Driven Execution\u003c/strong\u003e → Uses clock pulses to execute operations step-by-step, allowing for synchronization and controlling the flow of instructions in a sequential manner.\u003c/li\u003e\n  \u003cli\u003e✅ \u003cstrong\u003eRAM \u0026 ROM Integration\u003c/strong\u003e → Integrates memory for data storage (RAM) and instruction storage (ROM), enabling the CPU to access data and execute instructions effectively.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003e📂 File Structure\u003c/h2\u003e\n\u003cpre\u003e\n/CPU_Design\n│── 2107086_ALU.circ         # Arithmetic Logic Unit (ALU)\n│── 2107086_CPU.circ         # CPU core logic\n│── 2107086_alu2.circ        # Alternative ALU design\n│── 2107086_Project_report.pdf # Documentation of the project\n│── Instruction_1.txt        # Instruction file for CPU operations\n│── ScreenShot/              # Folder containing simulation screenshots\n│   └── Screenshot_1.png     # CPU simulation screenshot\n│── .DS_Store                # System file (macOS specific)\n\u003c/pre\u003e\n\n\u003ch2\u003e🚀 How to Run the Project\u003c/h2\u003e\n\n\u003ch3\u003e🔹 Steps to Open in Logisim Evolution\u003c/h3\u003e\n\u003col\u003e\n  \u003cli\u003eDownload and Install Logisim Evolution → \u003ca href=\"https://logisim-evolution.org\" target=\"_blank\"\u003eLogisim Evolution\u003c/a\u003e\u003c/li\u003e\n  \u003cli\u003eOpen Logisim Evolution.\u003c/li\u003e\n  \u003cli\u003eClick \u003cstrong\u003e\"File → Open\"\u003c/strong\u003e and select \u003ccode\u003e2107086_CPU.circ\u003c/code\u003e.\u003c/li\u003e\n  \u003cli\u003eUse \u003cstrong\u003e\"Simulate → Tick Once\"\u003c/strong\u003e to execute step-by-step.\u003c/li\u003e\n  \u003cli\u003eObserve the registers, ALU, and memory changes during execution.\u003c/li\u003e\n\u003c/ol\u003e\n\n\u003ch2\u003e🔍 Debugging \u0026 Common Issues\u003c/h2\u003e\n\n\u003ch3\u003e🔹 Red Wire Errors (Floating Inputs)\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eEnsure all inputs have defined values (use constants if needed).\u003c/li\u003e\n  \u003cli\u003eCheck the Control Unit signals for proper instruction execution.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003e🔹 Clock Not Working\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eEnsure the clock is connected to sequential components.\u003c/li\u003e\n  \u003cli\u003eUse \u003cstrong\u003e\"Tick Frequency → Slow\"\u003c/strong\u003e to debug step-by-step execution.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch3\u003e🔹 ALU Incorrect Outputs\u003c/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eCheck if the MUX selects the correct ALU operation.\u003c/li\u003e\n  \u003cli\u003eVerify that input values match expected results.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003e🛠 Future Improvements\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003e🚀 Add pipeline stages for faster execution.\u003c/li\u003e\n  \u003cli\u003e🚀 Implement interrupt handling for advanced functionality.\u003c/li\u003e\n  \u003cli\u003e🚀 Improve instruction set support to handle more complex operations.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003e📜 License\u003c/h2\u003e\n\u003cp\u003eThis project is open-source. Feel free to use, modify, and contribute!\u003c/p\u003e\n\n\u003ch2\u003e💡 Conclusion\u003c/h2\u003e\n\u003cp\u003eThis project demonstrates \u003cstrong\u003eCPU architecture design\u003c/strong\u003e in Logisim, focusing on the \u003cstrong\u003eALU, registers, memory\u003c/strong\u003e, and \u003cstrong\u003econtrol unit\u003c/strong\u003e. It provides a foundation for learning \u003cstrong\u003ecomputer organization\u003c/strong\u003e and \u003cstrong\u003edigital logic\u003c/strong\u003e.\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehedi-86%2Fmy_cpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmehedi-86%2Fmy_cpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmehedi-86%2Fmy_cpu/lists"}