{"id":15718238,"url":"https://github.com/sajattack/yo6530","last_synced_at":"2025-10-03T13:39:04.686Z","repository":{"id":197665335,"uuid":"699089631","full_name":"sajattack/yo6530","owner":"sajattack","description":"Gateware for Commodore MOS 6530 RRIOT","archived":false,"fork":false,"pushed_at":"2025-06-11T06:22:31.000Z","size":22051,"stargazers_count":11,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-09T16:48:20.654Z","etag":null,"topics":["6530","commodore","fpga","ice40","kim-1","mos","rriot"],"latest_commit_sha":null,"homepage":"","language":"VHDL","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/sajattack.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,"zenodo":null}},"created_at":"2023-10-01T22:01:41.000Z","updated_at":"2025-05-02T09:36:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"c3f05453-3fbd-4830-ac87-a1b7f9db48d7","html_url":"https://github.com/sajattack/yo6530","commit_stats":null,"previous_names":["sajattack/yo6530"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/sajattack/yo6530","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajattack%2Fyo6530","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajattack%2Fyo6530/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajattack%2Fyo6530/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajattack%2Fyo6530/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sajattack","download_url":"https://codeload.github.com/sajattack/yo6530/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sajattack%2Fyo6530/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270670989,"owners_count":24625671,"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","status":"online","status_checked_at":"2025-08-16T02:00:11.002Z","response_time":91,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["6530","commodore","fpga","ice40","kim-1","mos","rriot"],"created_at":"2024-10-03T21:52:32.242Z","updated_at":"2025-10-03T13:39:04.584Z","avatar_url":"https://github.com/sajattack.png","language":"VHDL","readme":"![yo6530 running a KIM-1 replica](img/yo6530.jpg)\n\n[![build status](https://builds.sr.ht/~sajattack/yo6530.svg)](https://builds.sr.ht/~sajattack/yo6530?)\n\n## Dependencies\n- FPGA Toolchain: https://github.com/YosysHQ/oss-cad-suite-build\n- Simulator: https://verilator.org/guide/latest/install.html\n- C++ toolchain: gcc and gnu make\n- Trace Viewer: https://gtkwave.sourceforge.net/\n- SPI flash programmer: https://www.flashrom.org/\n- Linter: https://github.com/chipsalliance/verible\n- Hardware research in dwfpy directory uses a Digilent Digital Discovery, python and the dwfpy library to probe and stimulate a MOS6532, for understanding expected behaviour from real hardware\n\n## Target Hardware\nhttps://github.com/daglem/redip-riot\n\n## Programming the board using Raspberry Pi (3B) with flashrom\n### Wiring\n![image](https://github.com/user-attachments/assets/bc206d53-67dd-4660-89ce-49be5b99f39b)\n| Raspi pin name/num  | ReDIP RIOT name/num|\n| ------------------- | -----------------|\n| SCK / 23            | SPI_SCLK / 3     |\n| MISO / 21           | SPI_SIO1 / 5     |\n| MOSI / 19           | SPI_SIO0 / 7     |\n| CE0 / 24            | SPI_CS / 1       |\n| GPIO25 / 22         | CDONE / 2        |\n| 3v3 / 17            | 3v3 / 8          |\n| GND / 20            | GND / 6          |\n| GPIO24 / 18         | CRESET / 4       |\n\n```sh\nmake MCS6530_002=1 # build the project\nscp build/mcs6530.bin pi@\u003cyour-pi's-ip\u003e: # copy the build artifact to the pi for flashing\nssh pi@\u003cyour-pi's-ip\u003e # connect to the pi\nsudo raspi-config # go into the interfaces menu and enable spi after running this command\npinctrl set 24 op dl # put the board into programming mode by setting creset low\nflashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 # if this detects the device, all is good, otherwise check your spi is enabled and your wiring\ntruncate -s 128K mcs6530.bin # pad the rom to 128K\nflashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=20000 -w mcs6530.bin # write the flash\npinctrl set 24 ip pu # exit programming mode by returning creset to input pullup\n```\n\n## Building and running the simulation tests\n```sh\nmake MCS6530_002=1 sim\n./obj_dir/Vverilator_top # this will throw assertion errors if the tests fail\n```\nAlso you can examine the logic signals output during the test in the Vverilator_top.vcd file using [GTKWave](https://gtkwave.sourceforge.net/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajattack%2Fyo6530","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsajattack%2Fyo6530","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsajattack%2Fyo6530/lists"}