Add batch 5 (Luthiraa_TALOS-V2, dawsonjon_fpu, The-OpenROAD-Project_OpenROAD-flow-scripts, antonblanchard_microwatt, alexforencich_verilog-i2c)
784ee2c verified Download The-OpenROAD-Project_OpenROAD-flow-scripts/tools/FakeRAM2.0/test/test_utils.py from SAIFIINDUSTRIES/verilog_data-1: direct link, hf CLI and curl.
- Browser
- Download file 996 Bytes
-
https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/FakeRAM2.0/test/test_utils.py
- Command line
-
hf download hf://datasets/SAIFIINDUSTRIES/verilog_data-1/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/FakeRAM2.0/test/test_utils.py
-
curl -L -o test_utils.py https://huggingface.co/datasets/SAIFIINDUSTRIES/verilog_data-1/resolve/main/The-OpenROAD-Project_OpenROAD-flow-scripts/tools/FakeRAM2.0/test/test_utils.py
996 Bytes
| #!/usr/bin/env python3 | |
| import os | |
| class TestUtils: | |
| def get_base_process_data(): | |
| """Returns dict with process data""" | |
| return { | |
| "tech_nm": 7, | |
| "voltage": 0.7, | |
| "metal_prefix": "M", | |
| "metal_layer": "M4", | |
| "pin_width_nm": 24, | |
| "pin_pitch_nm": 48, | |
| "metal_track_pitch_nm": 48, | |
| "contacted_poly_pitch_nm": 54, | |
| "column_mux_factor": 1, | |
| "fin_pitch_nm": 27, | |
| "manufacturing_grid_nm": 1, | |
| "snap_width_nm": 190, | |
| "snap_height_nm": 1400, | |
| } | |
| def get_exec_name(exec_name): | |
| """ | |
| Returns the exec name, which includes the coverage command, if | |
| coverage is enabled | |
| """ | |
| if "COVERAGE_RUN" in os.environ: | |
| exec_cmd = "coverage run --parallel-mode " + exec_name | |
| else: # pragma: nocover | |
| exec_cmd = exec_name | |
| return exec_cmd | |