{"id":20467750,"url":"https://github.com/schoeberl/lipsi","last_synced_at":"2025-06-24T14:35:59.409Z","repository":{"id":48922716,"uuid":"106610557","full_name":"schoeberl/lipsi","owner":"schoeberl","description":"Lipsi: Probably the Smallest Processor in the World","archived":false,"fork":false,"pushed_at":"2024-04-15T20:59:45.000Z","size":58,"stargazers_count":83,"open_issues_count":3,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-13T09:12:19.790Z","etag":null,"topics":["hardware","processor"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/schoeberl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-10-11T21:17:45.000Z","updated_at":"2025-02-26T17:18:41.000Z","dependencies_parsed_at":"2023-01-23T21:01:34.132Z","dependency_job_id":null,"html_url":"https://github.com/schoeberl/lipsi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schoeberl%2Flipsi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schoeberl%2Flipsi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schoeberl%2Flipsi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/schoeberl%2Flipsi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/schoeberl","download_url":"https://codeload.github.com/schoeberl/lipsi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248688566,"owners_count":21145766,"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":["hardware","processor"],"created_at":"2024-11-15T13:29:54.188Z","updated_at":"2025-04-13T09:12:23.858Z","avatar_url":"https://github.com/schoeberl.png","language":"Scala","funding_links":[],"categories":["Open Source Implementations"],"sub_categories":["Cores"],"readme":"# Lipsi: Probably the Smallest Processor in the World\n\nThis repository contains the source code of Lipsi and supports following paper:\n \n*Martin Schoeberl,\n[Lipsi: Probably the Smallest Processor in the World](https://www.jopdesign.com/doc/lipsi.pdf),\nArchitecture of Computing Systems -- ARCS 2018,\nSpringer International Publishing, 2018, 18-30*\n\nWhile research on high-performance processors is important, it is also interesting to explore processor architectures at the other end of the spectrum: tiny processor cores for auxiliary tasks. While it is common to implement small circuits for auxiliary duties, such as a serial port, in dedicated hardware, usually as a state machine or a combination of communicating state machines, these functionalities may also be implemented by a small processor. In this paper we present Lipsi a very tiny processor to enable implementing classic finite state machine logic in software without overhead.\n\nLipsi is probably the smallest processor around. Possible evaluations of Lipsi: (1) an implementation of a serial port completely in software; (2) as Lipsi is so small we can explore a massive parallel multicore processor consisting of more than 100 Lipsi cores in a low-cost FPGA (with simple point-to-point connections between cores).\n\nLipsi is written in [Chisel](https://chisel.eecs.berkeley.edu/) and contains:\n(1) the hardware description, (2) an assembler, (3) a software simulator, and\n(4) testers for individual testing and for co-simulation, all written in\nChisel/Scala and combined in a single program.\nChisel made it possible that the design of all of the above took less than\n[14 hours](log.md).\n\n## Tapeout\n\nThe Lipsi processor is beeing taped out [with Tiny Tapeout](https://github.com/schoeberl/tt06-lipsi).\nSee a rendering of the actual [GDS II](https://schoeberl.github.io/tt06-lipsi/) file.\n\n## Getting Started\n\nYou need `sbt` and a `JVM` installed. Scala and Chisel are downloaded when\nfirst used.\n\nA plain\n```bash\nmake\n```\nruns the default program as a test.\nThe wave form can then be viewed with:\n```\nmake wave\n```\nThe default program can be overwritten with the variable `APP`:\n```\nmake APP=asm/immop.asm\n```\n\nLipsi executing the embedded hello world program, blinking and counting LEDs, can be\ngenerated as follows:\n```\nmake hw APP=asm/blink.asm\n```\nThe project contains a Quartus project in folder `quartus`.\n\nAll test cases are run with:\n\n```\nmake test-all\n```\nThe SW simulator of Lipsi is run with:\n```\nmake sim\n```\n\nThe co-simulation (for all tests) with the processor description in hardware and\nthe SW simulator are run with:\n```\nmake test-cosim\n```\n\nFolder `asm` contains various assembler program. E.g., `echo.asm` reads the keys from\nthe FPGA board, adds 1, and puts out the result on the LEDs (on the DE2-115).\nDefault IO devices are an 8-bit input port connected to the keys and 8-bit output\nport connected to the LEDs\n\nTo build a 432 cores manycore version of Lipsi, change the value `many` to\n`val many = true` in `LipsiTop`. The cores are then connected in a pipeline.\nThe `echo.asm` program can be used to execute 432 additions and show the result\non the LEDs.\n\nAs usual, have fun and feedback is appreciated,\n\nMartin\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschoeberl%2Flipsi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fschoeberl%2Flipsi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fschoeberl%2Flipsi/lists"}