{"id":21464293,"url":"https://github.com/marcpinet/parm","last_synced_at":"2025-07-15T04:31:30.925Z","repository":{"id":65537693,"uuid":"594239264","full_name":"marcpinet/parm","owner":"marcpinet","description":"🧀 PARM Project (Polytech ARM-based embedded processor), made as part of a school project.","archived":true,"fork":false,"pushed_at":"2025-02-01T18:56:34.000Z","size":7770,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-17T05:24:42.236Z","etag":null,"topics":["architecture","armv7","assembly","c","cpu","logisim-evolution","python","system"],"latest_commit_sha":null,"homepage":"https://marcpinet.me","language":"Assembly","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcpinet.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-27T23:34:45.000Z","updated_at":"2025-02-01T18:56:39.000Z","dependencies_parsed_at":"2023-02-16T12:16:06.719Z","dependency_job_id":null,"html_url":"https://github.com/marcpinet/parm","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcpinet/parm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fparm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fparm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fparm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fparm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcpinet","download_url":"https://codeload.github.com/marcpinet/parm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcpinet%2Fparm/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265402833,"owners_count":23759237,"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":["architecture","armv7","assembly","c","cpu","logisim-evolution","python","system"],"created_at":"2024-11-23T07:31:13.136Z","updated_at":"2025-07-15T04:31:30.286Z","avatar_url":"https://github.com/marcpinet.png","language":"Assembly","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Polytech ARM-based embedded processor\n\n## 📋 Instructions we had to follow\n\nBy using [Logisim](proc/logisim/), we firstly had to make a [CPU](proc/) (a simplified one) which can run binary files (machine code). You can find how to convert Clang files into Assembly files in the next section. Next, we had to make [a program](asm/) which can translate assembly language (ARMv7) into machine code.\n\nYou can learn more about Logisim, ARMv7 and the whole Cortex-M0 family of processors in the [docs](docs/) folder.\n\n## ⚙️ Compile C to ARM Assembly using the CPU\n\nTo check whether our CPU works or not, we need to compile these C programs and compare each other.\n\nInstall the `libc6-armel-cross`, `libc6-dev-armel-cross`, `binutils-arm-linux-gnueabi` and `libncurses5-dev` packages by using the following command:\n\n```bash\nsudo apt-get install clang libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev\n```\n\nThen, install `gcc` and `g++` to support ARM:\n\n```bash\nsudo apt-get install gcc-arm-linux-gnueabi g++-arm-linux-gnueabi\n```\n\nFinally, you can compile like this:\n\n```bash\nclang -S -target arm-none-eabi -mcpu=cortex-m0 -O0 -mthumb -nostdlib -I./include main.c\n```\n\nPlease, note that the `./include` folder (which contains the headers) should be in the same directory of the `main.c`.\nYou can see some examples in the [c](c/) folder.\n\n## 📽️ Presentation\n\nSee the [presentation](presentation/) folder for more details.\n\n## 🧾 Additional informations\n\n### C Headers\n\n| Program | Description |\n|-|-|\n| crypto | Cryptography |\n| fixed | Fixed Point Decimal Numbers |\n| math | Mathematical tools |\n| parm | Main Header |\n| stdio | Text Input/Output (keyboard, terminal) |\n| string | Basic implementation of strings |\n| string2 | Other basic implementation of strings |\n| trigo | Trigonometric functions (Taylor series) |\n| utils | Debugging Tools |\n| video | Matrix screen |\n\n### C programs\n\n| Program | Description |\n|-|-|\n| calckeyb| Calculator with keyboard and terminal |\n| calculator | Calculator with DIP-switches |\n| simple_add | Adds two variables and displays it in RES |\n| testfp | Demonstrate fixed-point number macros |\n| tty | Display \"Project PARM\" in terminal |\n\n### MMIO\n\nSee `parm.h` for the pins documentation.\n\n## ✒️ Authors\n\n* Marc PINET - [marcpinet](https://github.com/marcpinet)\n* Loïc PANTANO - [loicpantano](https://github.com/loicpantano)\n* Arthur RODRIGUEZ - [rodriguezarthur](https://github.com/rodriguezarthur)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcpinet%2Fparm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcpinet%2Fparm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcpinet%2Fparm/lists"}