{"id":51007633,"url":"https://github.com/chipfoundry/timing-scripts","last_synced_at":"2026-06-20T22:02:20.892Z","repository":{"id":291454279,"uuid":"975093643","full_name":"chipfoundry/timing-scripts","owner":"chipfoundry","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-04T18:56:59.000Z","size":2535,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-04T19:22:00.863Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/chipfoundry.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,"zenodo":null}},"created_at":"2025-04-29T19:16:06.000Z","updated_at":"2025-05-04T09:20:55.000Z","dependencies_parsed_at":"2025-05-04T19:32:11.805Z","dependency_job_id":null,"html_url":"https://github.com/chipfoundry/timing-scripts","commit_stats":null,"previous_names":["chipfoundry/timing-scripts"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/chipfoundry/timing-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipfoundry%2Ftiming-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipfoundry%2Ftiming-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipfoundry%2Ftiming-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipfoundry%2Ftiming-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chipfoundry","download_url":"https://codeload.github.com/chipfoundry/timing-scripts/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chipfoundry%2Ftiming-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34586666,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-20T02:00:06.407Z","response_time":98,"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":[],"created_at":"2026-06-20T22:02:20.350Z","updated_at":"2026-06-20T22:02:20.887Z","avatar_url":"https://github.com/chipfoundry.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timing scripts\n\nA set of scripts for rcx and sta for caravel top level \n\n## Dependencies\n- Docker\n\nIn case of not using the docker image:\n- `yosys`\n- Python modules:\n    - `click`\n\n\n## Prerequisites\n\nA set of exports are needed:\n```bash\nexport CARAVEL_ROOT=${HOME}/caravel/\nexport MCW_ROOT=${HOME}/caravel_mgmt_soc_litex/\nexport CUP_ROOT=${HOME}/caravel_user_project/\nexport TIMING_ROOT=${HOME}/timing-scripts/\nexport PDK_ROOT=${HOME}/pdk/\nexport PDK=sky130A\nexport OPENLANE_IMAGE_NAME=efabless/openlane:4476a58407d670d251aa0be6a55e5391bb181c4e-amd64\n```\n\n\u003e This is just an example. Please export your own paths and a recent version of openlane\n\n## Usage\n\n### caravel_user_project\n\n1. After exporting the prerequisites, run:\n\n    ```\n    make -f timing.mk list-rcx\n    ```\n    You should get `rcx-user_project_wrapper` amongst others such as: \n\n    ```\n    rcx-buff_flash_clkrst\n    rcx-caravel\n    rcx-caravel_clocking\n    rcx-constant_block\n    rcx-digital_pll\n    rcx-gpio_control_block\n    rcx-gpio_defaults_block\n    rcx-gpio_logic_high\n    rcx-gpio_signal_buffering\n    rcx-gpio_signal_buffering_alt\n    rcx-housekeeping\n    rcx-mgmt_protect\n    rcx-mprj2_logic_high\n    rcx-mprj_logic_high\n    rcx-spare_logic_block\n    rcx-RAM256\n    rcx-mgmt_core_wrapper\n    rcx-user_proj_example\n    rcx-user_project_wrapper\n    ```\n\n2. extract multicorner spefs for `user_project_wrapper` and any other blocks inside:\n\n    ```\n    make -f timing.mk rcx-user_project_wrapper\n    make -f timing.mk rcx-user_proj_example\n    ```\n3. generate spef mapping file for caravel_user_project:\n\n    ```\n    python3 ./scripts/generate_spef_mapping \\\n        -i ${CUP_ROOT}/verilog/gl/user_project_wrapper.v \\\n        -o ${CUP_ROOT}/env/spef-mapping.tcl \\\n        --project-root '$::env(CUP_ROOT)' \\\n        --pdk-path \"${PDK_ROOT}/${PDK}\"\n    ```\n\n4. run sta:\n\n    ```\n    make -f timing.mk caravel-timing-typ\n    make -f timing.mk caravel-timing-slow\n    make -f timing.mk caravel-timing-fast\n    ```\n\n## Limitations\n\n- Makefile\n- Makefile\n- Assumes a fixed folder structure for the exported directories\n- Probably a lot of corner cases that weren't considered\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipfoundry%2Ftiming-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchipfoundry%2Ftiming-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchipfoundry%2Ftiming-scripts/lists"}