{"id":23384356,"url":"https://github.com/quentinlintz/digital-design-labs","last_synced_at":"2025-04-08T11:17:44.345Z","repository":{"id":260197832,"uuid":"857415532","full_name":"quentinlintz/digital-design-labs","owner":"quentinlintz","description":"🧮 Digital design practice","archived":false,"fork":false,"pushed_at":"2024-11-16T01:27:04.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T07:23:49.410Z","etag":null,"topics":["assembly","digital-design","labs","risc-v","systemverilog"],"latest_commit_sha":null,"homepage":"","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/quentinlintz.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":"2024-09-14T15:44:51.000Z","updated_at":"2024-11-26T04:15:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"f2049e61-c544-426b-a8f0-7ee82d880de2","html_url":"https://github.com/quentinlintz/digital-design-labs","commit_stats":null,"previous_names":["quentinlintz/digital-design-labs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinlintz%2Fdigital-design-labs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinlintz%2Fdigital-design-labs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinlintz%2Fdigital-design-labs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/quentinlintz%2Fdigital-design-labs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/quentinlintz","download_url":"https://codeload.github.com/quentinlintz/digital-design-labs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247829517,"owners_count":21002997,"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":["assembly","digital-design","labs","risc-v","systemverilog"],"created_at":"2024-12-21T23:19:08.681Z","updated_at":"2025-04-08T11:17:44.322Z","avatar_url":"https://github.com/quentinlintz.png","language":"SystemVerilog","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Digital Design Labs\n\nThis repo has my solutions to labs from Sarah and David Harris' _Digital Design and Computer Architecture, RISC-V Edition_ (2021).\n\nI won't include the instructions, but you can download them as PDFs from [Elsevier](https://www.elsevier.com/books-and-journals/book-companion/9780128200643).\n\n## SystemVerilog Simulation Instructions\n\nSource your Vivado settings:\n\n```bash\nsource /tools/Xilinx/Vivado/2024.1/settings64.sh\n```\n\nChange directory into `./SIM`.\nTo compile and run a file, use the following commands:\n\n```bash\nxvlog --sv ../SRC/thunderbird.sv ../SRC/thunderbird_tb.sv\nxelab -debug typical -top thunderbird_tb -snapshot thunderbird_tb_snapshot\nxsim thunderbird_tb_snapshot --tclbatch xsim_cfg.tcl  \n```\n\nTo view the waveform:\n\n```bash\nxsim --gui thunderbird_tb_snapshot.wdb\n```\n\n## Assembly Simulation Instructions\n\nTo make and run the assembly files, use the following commands:\n\n```bash\nmake TARGET=div9\n./bin/div9\n```\n\nWhere \"div9\" is the name of the file without the `.s` extension.\n\n## C Compilation Instructions\n\nI'm running this code on a [Sparkfun Thing Plus - ESP32-C6](https://www.sparkfun.com/products/22924) which is Espressif so I'm using the `idf.py` tool to build, debug, and flash.\n\nIf you want to use [gdbgui](https://www.gdbgui.com/) you need to use Python version 3.11.6.\n\n```bash\nidf.py set-target esp32c6\nidf.py build\nidf.py -p /dev/ttyACM0 flash\nidf.py openocd gdbgui monitor\n```\n\nHit Ctrl+] to exit the debugger.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinlintz%2Fdigital-design-labs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fquentinlintz%2Fdigital-design-labs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fquentinlintz%2Fdigital-design-labs/lists"}