{"id":17046442,"url":"https://github.com/cpldcpu/mcpu","last_synced_at":"2025-04-06T18:13:19.981Z","repository":{"id":9088716,"uuid":"10864958","full_name":"cpldcpu/MCPU","owner":"cpldcpu","description":"MCPU - A Minimal 8Bit CPU in a 32 Macrocell CPLD","archived":false,"fork":false,"pushed_at":"2025-03-02T15:31:34.000Z","size":258,"stargazers_count":222,"open_issues_count":1,"forks_count":31,"subscribers_count":26,"default_branch":"master","last_synced_at":"2025-03-30T17:08:08.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/cpldcpu.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":"2013-06-22T12:46:10.000Z","updated_at":"2025-03-26T23:46:55.000Z","dependencies_parsed_at":"2024-11-07T14:00:32.860Z","dependency_job_id":"f2c09de3-2857-4f40-b5f2-ca1a41f3c707","html_url":"https://github.com/cpldcpu/MCPU","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpldcpu%2FMCPU","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpldcpu%2FMCPU/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpldcpu%2FMCPU/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cpldcpu%2FMCPU/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cpldcpu","download_url":"https://codeload.github.com/cpldcpu/MCPU/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247526753,"owners_count":20953143,"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":[],"created_at":"2024-10-14T09:46:17.032Z","updated_at":"2025-04-06T18:13:19.955Z","avatar_url":"https://github.com/cpldcpu.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## MCPU - Minimal CPU for a 32 Macrocell CPLD ##\n\nMCPU is a minimal cpu aimed to fit into a 32 Macrocell CPLD - one of the smallest available programmable logic devices.\nWhile this CPU is not powerful enough for real world applications it has proven itself as a valuable educational \ntool. The source code is just a single page and easily understood. Both VHDL and Verilog versions are supplied.\nThe package comes with assembler, emulator and extensive documentation. \n\nThis is an old project from 2001. Since it still seems to be of interest to many, I migrated it to Github \nfor easier maintenance. Please refer to the [original project description](https://github.com/cpldcpu/MCPU/blob/master/mcpu.pdf?raw=true) (pdf) for further information.\n\n### Addendum ###\n\n- A very nice write up on this design can be found on the blog of Jean-Claude Wippler [here](https://web.archive.org/web/20201130083617/https://jeelabs.org/2017/11/tfoc-a-minimal-computer/). (Archived and shutdown in 2024)\n- @AranweLTT found a neat way to allow the MCPU to access 8 bit address space with almost no additonal logic overhead in his [mcpu-ext](https://github.com/AranweLTT/mcpu-ext)\n  \n### Version History ###\n\n* v1.0x - 2001 \n\t- Released on university homepage\n* v1.06b - 2008 \n \t- last release on opencores.org\n* v1.1 - 2013/06/23\n\t- Initial release on github\n\t- Converted readme to markdown\n\t- Included bugfixed verilog version submitted by A. Wood.\n\n### Archive content ###\n```\nASM/\n\t- example programs.\n\t- simulator.\n\t- include file for smal.\n\t- smal.exe - see license for smal !\nVHDL/\n\t- VHDL source of CPU.\n\t- VHDL testbench.\n\t- Memory files.\n\t- The testbench requires a simple sram implementation.\n          I used this one: \n          http://tams-www.informatik.uni-hamburg.de/vhdl/models/sram-simple/sram64kx8.vhd          \n \t  From the Hamburg VHDL archive (http://tams-www.informatik.uni-hamburg.de/vhdl/)\n\nverilog/\n\t- Verilog conversion of CPU source \n\t- A small Verilog testbench\n\nSMAL-source/\n\t- SMAL sourcode.\n\nSIM-source/\n   - WIN32 Simulator sourcecode. Porting to other platforms should be easy.\n```\n\n### License ###\n```\nSMAL license:\n\n/* smal32.c   language: C\n   copyright 1996 by Douglas W. Jones\n                     University of Iowa\n                     Iowa City, Iowa  52242\n                     USA\n\n   Permission is granted to make copies of this program for any purpose,\n   provided that the above copyright notice is preserved in the copy, and\n   provided that the copy is not made for direct commercial advantage.\n\n   Note: This software was developed with no outside funding.  If you find\n   it useful, and especially if you find it useful in a profit making\n   environment, please consider making a contribution to the University\n   of Iowa Department of Computer Science in care of:\n\n                     The University of Iowa Foundation\n                     Alumni Center\n                     University of Iowa\n                     Iowa City, Iowa  52242\n                     USA\n*/\n```\n\nThe other source is licensed under GPL2.\n\nI am always interested in possible uses and modifications to it. Let me know what you are doing\nwith it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpldcpu%2Fmcpu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcpldcpu%2Fmcpu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcpldcpu%2Fmcpu/lists"}