|
| 1 | +# OpenROAD-SYN test suites for asap7 — the local counterpart of the |
| 2 | +# Jenkins QoR signal (https://dashboard.precisioninno.com/). |
| 3 | +# |
| 4 | +# Every design gets manual forced-engine flow variants from the |
| 5 | +# config.mk DSL (see flow/designs/design.bzl): <name>_syn_* pins |
| 6 | +# SYNTH_USE_SYN=1 and <name>_yosys_* pins the yosys engine, regardless |
| 7 | +# of the config.mk default. Designs with a rules-base.json get two QoR |
| 8 | +# gates per variant, both checking the design's regular rules file with |
| 9 | +# the regular checkMetadata.py — congruent with what Jenkins measures: |
| 10 | +# |
| 11 | +# bazelisk test --keep_going //flow/designs/asap7:syn_synth_test |
| 12 | +# Fast tier: synthesis only, checks the synth__/constraints__ subset |
| 13 | +# of rules-base.json. Minutes-scale; QoR-only (no LEC), so it cannot |
| 14 | +# prove correctness — use it to iterate, not to conclude. |
| 15 | +# |
| 16 | +# bazelisk test --keep_going //flow/designs/asap7:syn_test |
| 17 | +# Full flow, all rules-base.json gates. The real signal; shares its |
| 18 | +# synthesis action with the fast tier. |
| 19 | +# |
| 20 | +# Sharpening the loop on one design or stage: |
| 21 | +# |
| 22 | +# bazelisk test //flow/designs/asap7/jpeg:jpeg_encoder_syn_synth_test |
| 23 | +# bazelisk test //flow/designs/asap7/jpeg:jpeg_encoder_syn_test |
| 24 | +# bazelisk build //flow/designs/asap7/jpeg:jpeg_encoder_syn_route |
| 25 | +# bazelisk test //flow/designs/asap7/gcd:gcd_yosys_test # yosys A/B |
| 26 | +# |
| 27 | +# Both suites deliberately include designs that fail OpenROAD-SYN today |
| 28 | +# — they are a status signal, not a green-only gate. A design can fail |
| 29 | +# by not synthesizing at all, or by missing rules-base.json gates that |
| 30 | +# its regular flow meets. |
| 31 | + |
| 32 | +# Design directory -> DESIGN_NAME (bazel target prefix), ordered |
| 33 | +# fastest-first so --keep_going runs surface quick failures early. |
| 34 | +# Known failures / quirks are listed last. "minimal" is excluded: it |
| 35 | +# has no VERILOG_FILES and thus no generated design targets. |
| 36 | +# |
| 37 | +# Known OpenROAD-SYN failures today: |
| 38 | +# - mock-alu: SDC references yosys-style register names (*io_out_REG*) |
| 39 | +# absent from the SYN netlist. |
| 40 | +# - riscv32i: slang rejects procedural assignment to nets (dmem.v). |
| 41 | +# - mock-cpu: slang rejects endianness-mismatched part-select |
| 42 | +# (wptr_full.v). |
| 43 | +# - aes-block: hierarchical BLOCKS; synthesizes, but SYN area blows past |
| 44 | +# the yosys-derived rules-base.json gate. |
| 45 | +SYN_TEST_DESIGNS = { |
| 46 | + "gcd": "gcd", # smoketest, fast |
| 47 | + "uart": "uart", |
| 48 | + "mock-alu": "MockAlu", |
| 49 | + "riscv32i": "riscv_top", |
| 50 | + "aes": "aes_cipher_top", |
| 51 | + "aes_lvt": "aes_cipher_top", |
| 52 | + "aes-mbff": "aes_cipher_top", |
| 53 | + "jpeg": "jpeg_encoder", |
| 54 | + "jpeg_lvt": "jpeg_encoder", |
| 55 | + "ethmac": "ethmac", |
| 56 | + "ethmac_lvt": "ethmac", |
| 57 | + "mock-cpu": "mock_cpu", |
| 58 | + "gcd-ccs": "gcd", # CCS liberty |
| 59 | + "aes-block": "aes_cipher_top", # hierarchical BLOCKS |
| 60 | +} |
| 61 | + |
| 62 | +# Designs whose OpenROAD-SYN run is too slow (or does not terminate) for |
| 63 | +# the suites. Their generated per-design targets stay tags=["manual"] |
| 64 | +# like all forced-engine targets, but they are deliberately left out of |
| 65 | +# the suites so those remain runnable; reproduce individually, e.g. |
| 66 | +# bazelisk build //flow/designs/asap7/ibex:ibex_core_syn_synth |
| 67 | +# |
| 68 | +# - ibex: sv_elaborate/synthesize/repair_design complete in seconds, but |
| 69 | +# report_metrics ("Report metrics stage 1, synth...") spins in STA for |
| 70 | +# hours (observed >2h on 48 threads with no progress). |
| 71 | +# - cva6: synthesize itself takes ~73s, but repair_design -pre_placement |
| 72 | +# was still running after 10+ minutes when the status sweep was cut |
| 73 | +# off; not yet characterized to completion. |
| 74 | +# - swerv_wrapper: largest design in the suite; not yet run to |
| 75 | +# completion under OpenROAD-SYN in this environment. |
| 76 | +# - riscv32i-mock-sram: hierarchical BLOCKS (fakeram) — the syn variant |
| 77 | +# first needs the block's full PnR flow for its abstract; not yet run |
| 78 | +# to completion. |
| 79 | +SYN_SLOW_DESIGNS = { |
| 80 | + "cva6": "cva6", |
| 81 | + "ibex": "ibex_core", |
| 82 | + "riscv32i-mock-sram": "riscv_top", |
| 83 | + "swerv_wrapper": "swerv_wrapper", |
| 84 | +} |
| 85 | + |
| 86 | +# Explicitly listed manual tests DO run through a test_suite (the manual |
| 87 | +# tag only exempts them from wildcard expansion); the suites themselves |
| 88 | +# are manual so `bazelisk test //flow/...` does not pull them in either. |
| 89 | +test_suite( |
| 90 | + name = "syn_test", |
| 91 | + tags = ["manual"], |
| 92 | + tests = [ |
| 93 | + "//flow/designs/asap7/{pkg}:{name}_syn_test".format( |
| 94 | + name = name, |
| 95 | + pkg = pkg, |
| 96 | + ) |
| 97 | + for pkg, name in SYN_TEST_DESIGNS.items() |
| 98 | + ], |
| 99 | +) |
| 100 | + |
| 101 | +test_suite( |
| 102 | + name = "syn_synth_test", |
| 103 | + tags = ["manual"], |
| 104 | + tests = [ |
| 105 | + "//flow/designs/asap7/{pkg}:{name}_syn_synth_test".format( |
| 106 | + name = name, |
| 107 | + pkg = pkg, |
| 108 | + ) |
| 109 | + for pkg, name in SYN_TEST_DESIGNS.items() |
| 110 | + ], |
| 111 | +) |
0 commit comments