{"id":16150481,"url":"https://github.com/nathom/cse141l_project","last_synced_at":"2026-01-20T00:08:16.022Z","repository":{"id":188598514,"uuid":"679047172","full_name":"nathom/cse141l_project","owner":"nathom","description":null,"archived":false,"fork":false,"pushed_at":"2023-09-08T08:01:43.000Z","size":1200,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-06T22:32:16.503Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SystemVerilog","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/nathom.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}},"created_at":"2023-08-16T01:42:42.000Z","updated_at":"2024-02-14T02:53:28.000Z","dependencies_parsed_at":"2024-02-14T04:42:49.109Z","dependency_job_id":null,"html_url":"https://github.com/nathom/cse141l_project","commit_stats":null,"previous_names":["nathom/cse141l_project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathom/cse141l_project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fcse141l_project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fcse141l_project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fcse141l_project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fcse141l_project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathom","download_url":"https://codeload.github.com/nathom/cse141l_project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathom%2Fcse141l_project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28590676,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T00:01:37.455Z","status":"ssl_error","status_checked_at":"2026-01-19T23:58:17.328Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10T00:49:37.284Z","updated_at":"2026-01-20T00:08:16.004Z","avatar_url":"https://github.com/nathom.png","language":"SystemVerilog","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 9 bit processor\n\n## Guide to the repo\n\n\n### asm.py\n\nA user-friendly assembler that features pseudo ops, debug output, and comment parsing.\n\n### prog[n]\\_mach\\_code.txt\n\nContains machine code that can be run if copied to src/mach\\_code.txt immediately.\nThe branch immediate values have been adjusted so that the current PC LUT\ncan run all 3 of them without being modified.\n\n### /src\n\nContains all of the SystemVerilog files that make up the microprocessor.\n\n#### mach\\_code.txt\n\nContains the machine code that will be read by the instruction ROM by default.\nThe contents of this file determine which program you are runnning.\n\n\n### /pseudocode\n\nContains C-like pseudocode for each of the test programs\n\n### /test\\_asm\n\nContains assembly programs used to test the microprocessor\nor the assembler.\n    \n\n\n## Using the assembler\n\nMake sure you have python3 installed. Write a script in LEAP asm, and save\nit as prog.s. To get the debug output, run\n\n```\npython asm.py prog.s\n```\n\n![](README_resources/yhsjimbeddlnuxxtjdbkzgchgbjnlaaj.jpg)\n\nTo output the clean machine code to a file called `mach_code.txt` run\n\n```\npython asm.py prog.s mach_code.txt\n```\n\nThe output should show what values to put in `PC_LUT.sv`.\n\n## Running the given test programs\n\nIf you just want preassembled code to run, use the `prog[n]_mach_code.txt` files, which\nare compiled versions of the assembly code in `program[n].s`. The values in `PC_LUT.sv`\nhave been updated so that all 3 of these can be run without changing it's contents.\n\n\nFor example, if you want to run `program1.s`, do the following:\n\n1. Copy `prog1_mach_code.txt` to `src/mach_code.txt`\n2. Verify that the path in `instr_ROM` points to `src/mach_code.txt` on your machine\n3. Set `prog1_tb.sv` to be the testbench in quartus\n4. Simulate the testbench in Modelsim\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathom%2Fcse141l_project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathom%2Fcse141l_project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathom%2Fcse141l_project/lists"}