{"id":18447047,"url":"https://github.com/zhb2000/computerorganizationexperiment","last_synced_at":"2026-02-14T23:08:10.991Z","repository":{"id":108880706,"uuid":"244267839","full_name":"zhb2000/ComputerOrganizationExperiment","owner":"zhb2000","description":"计算机组成与设计课程实验","archived":false,"fork":false,"pushed_at":"2020-05-09T04:28:59.000Z","size":915,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T18:09:33.969Z","etag":null,"topics":["computer-organization","verilog"],"latest_commit_sha":null,"homepage":"","language":"Verilog","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/zhb2000.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":"2020-03-02T03:03:49.000Z","updated_at":"2022-03-30T07:55:30.000Z","dependencies_parsed_at":"2023-03-26T18:15:21.640Z","dependency_job_id":null,"html_url":"https://github.com/zhb2000/ComputerOrganizationExperiment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhb2000/ComputerOrganizationExperiment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhb2000%2FComputerOrganizationExperiment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhb2000%2FComputerOrganizationExperiment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhb2000%2FComputerOrganizationExperiment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhb2000%2FComputerOrganizationExperiment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhb2000","download_url":"https://codeload.github.com/zhb2000/ComputerOrganizationExperiment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhb2000%2FComputerOrganizationExperiment/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29460146,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T22:42:09.113Z","status":"ssl_error","status_checked_at":"2026-02-14T22:42:05.053Z","response_time":53,"last_error":"SSL_read: 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":["computer-organization","verilog"],"created_at":"2024-11-06T07:11:49.659Z","updated_at":"2026-02-14T23:08:10.974Z","avatar_url":"https://github.com/zhb2000.png","language":"Verilog","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 计算机组成与设计课程实验\n单周期、多周期的 MIPS CPU\n\n## 实验任务\n### 单周期\n- [x] 实现单周期 CPU，支持 15 条指令\n- [x] 对单周期 CPU 进行指令扩展，支持 35 条指令\n\n### 多周期\n- [x] 实现流水线（没有解决冒险）\n- [x] 解决数据冒险\n- [x] 解决控制冒险\n\n## 实现的指令\n实现了以下 35 条指令\n\n### R-R运算\nadd, sub, and, or, slt, sltu, addu, subu, sll, srl, sra, sllv, srlv, srav, xor, nor \n### R-I运算\naddi, ori, slti, andi, lui \n### 加载\nlw, lb, lh, lbu, lhu \n### 保存\nsw, sb, sh\n### 分支\nbeq, bne\n### 跳转\nj, jal, jr, jalr\n\n## 起始地址设置\n本实验中，指令和数据分开存放在两个独立的存储器中。然而在 MARS MIPS simulator 中，指令和数据合用一个存储器。为了与 MARS 汇编出的机器指令兼容，使用 `TEXT_BASE_ADDRESS` 和 `DATA_BASE_ADDRESS` 这两个宏设定指令和数据的“起始地址”。\n\n| TEXT_BASE_ADDRESS | DATA_BASE_ADDRESS | 备注                                           |\n| ----------------- | ----------------- | ---------------------------------------------- |\n| 32'h0000_3000     | 32'h0000_0000     | MARS Configuration: Compact, Data at Address 0 |\n| 32'h0000_0000     | 32'h0000_2000     | MARS Configuration: Compact, Text at Address 0 |\n| 32'h0000_0000     | 32'h0000_0000     | 指令和数据均从 0 开始编址                      |\n\n## 设计图\n### 单周期\n![single](docs/single.png)\n\n### 多周期\n![multi](docs/multi.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhb2000%2Fcomputerorganizationexperiment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhb2000%2Fcomputerorganizationexperiment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhb2000%2Fcomputerorganizationexperiment/lists"}