{"id":21899594,"url":"https://github.com/zephray/rocket-chip-sim","last_synced_at":"2026-05-15T21:37:41.019Z","repository":{"id":72037147,"uuid":"594043877","full_name":"zephray/rocket-chip-sim","owner":"zephray","description":"Another Verilator-based simulator setup for rocket-chip","archived":false,"fork":false,"pushed_at":"2023-06-12T15:13:14.000Z","size":61,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-14T16:01:32.122Z","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/zephray.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":"2023-01-27T13:20:09.000Z","updated_at":"2023-02-16T17:24:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"ba745b4d-aadb-4241-a5af-d1122c2445b3","html_url":"https://github.com/zephray/rocket-chip-sim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zephray/rocket-chip-sim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephray%2Frocket-chip-sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephray%2Frocket-chip-sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephray%2Frocket-chip-sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephray%2Frocket-chip-sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zephray","download_url":"https://codeload.github.com/zephray/rocket-chip-sim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zephray%2Frocket-chip-sim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33080778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"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-11-28T14:45:20.351Z","updated_at":"2026-05-15T21:37:41.004Z","avatar_url":"https://github.com/zephray.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rocket-chip-sim\n\nMy own wrapper for simulating rocket-chip in Verilator.\n\n## Usage\n\nMake sure the dependencies are installed:\n\n```\nsudo apt install libverilog-perl\n```\n\nVerilator could be either installed from distribution or built from source.\n\nSet ```ROCKET_CHIP``` env var to point to the rocket-chip installation, if not, clone from official repo.\n\n```\ngit clone https://github.com/chipsalliance/rocket-chip\nexport ROCKET_CHIP=$(pwd)/rocket-chip\n```\n\nRun ```./scripts/build.sh```. Alternatively, run ```./scripts/genrtl.sh``` to generate individual RTL files, or run ```./scripts/build-sim.sh``` to rebuild simulator binary.\n\nThe example folder has some programs that can be run on the simulator.\n\nFor example, to run hello world (assuming it has been compiled):\n\n```\n./sim/sim --ram example/asm/hello.bin --trace\n```\n\nTo customize the core configuration, modify the ```config/CustomConfigs.scala``` and re-build.\n\n## Why\n\nThe rocket-chip comes with a bundled simulator/ emulator. That works fine for most purposes. However personally I found it a bit slow due to the way it simulates the RAM and how it loads the program. I want my own binary to run as soon as the simulator is up (maybe after a few instructions, but definitely not after thousands or instructions or GBs of waveform dumps), so I created this. Many of the infrastructure shares with the projects I have done before so this is like 2 hours of work, making it justified.\n\n## License\n\nUnless otherwise noted, the source code is licensed under MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephray%2Frocket-chip-sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzephray%2Frocket-chip-sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzephray%2Frocket-chip-sim/lists"}