@@ -52,64 +52,6 @@ def _export_design_files():
5252 visibility = ["//visibility:private" ],
5353 )
5454
55- def _engine_variant_targets (
56- name ,
57- platform ,
58- verilog_files ,
59- arguments ,
60- user_arguments ,
61- sources ,
62- user_sources ,
63- macros ,
64- stage_data ,
65- tags ): # buildifier: disable=unused-variable
66- """Forced-engine flow variants for one design (orfs_design extra hook).
67-
68- Emits, always tagged "manual" (even for CI designs, so only explicit
69- invocations such as //flow/designs/asap7:syn_test run them), two full
70- flows that pin the synthesis engine regardless of the config.mk
71- default:
72-
73- - variant "syn": SYNTH_USE_SYN=1 (OpenROAD-SYN) — lets any design be
74- tested under OpenROAD-SYN before its config.mk officially switches.
75- - variant "yosys": SYNTH_USE_SYN=0 — keeps the yosys baseline
76- reproducible after a design officially switches (e.g. asap7/gcd).
77-
78- When the design has a rules-base.json each variant gets the same QoR
79- gates as the regular flow, congruent with the Jenkins/dashboard
80- signal because they check the same rules file with the same script:
81-
82- - <name>_<engine>_test: the full flow gated on all of rules-base.json
83- (the real, dashboard-equivalent gate).
84- - <name>_<engine>_synth_test: the fast tier — synthesis plus a check
85- of only the synth__/constraints__ subset of rules-base.json.
86- QoR-only (no LEC), but a minutes-scale iteration signal that shares
87- its synth action with the full-flow variant.
88-
89- The generated <name>_<engine>_update targets must NOT be run: they
90- would overwrite the design's rules-base.json with the forced engine's
91- numbers.
92- """
93- for engine , use_syn in [("syn" , "1" ), ("yosys" , "0" )]:
94- orfs_flow (
95- name = name ,
96- verilog_files = verilog_files ,
97- pdk = "//flow:" + platform ,
98- arguments = arguments | {"SYNTH_USE_SYN" : use_syn },
99- user_arguments = user_arguments ,
100- # sources carries the auto-detected rules-base.json as
101- # RULES_JSON, which gates the variant's tests.
102- sources = sources ,
103- user_sources = user_sources ,
104- macros = macros ,
105- stage_data = stage_data ,
106- variant = engine ,
107- tags = ["manual" ],
108- test_kwargs = {"tags" : ["manual" ]},
109- # Sibling packages consume stage outputs (e.g. asap7/gcd's
110- # single-process comparison seeds from the yosys netlist).
111- visibility = ["//visibility:public" ],
112- )
11355
11456def design (config = "config.mk" , user_arguments = [], user_sources = [], local_arguments = []):
11557 """Standard BUILD body for flow/designs/<platform>/<design>/.
@@ -135,7 +77,6 @@ def design(config = "config.mk", user_arguments = [], user_sources = [], local_a
13577 user_sources = user_sources ,
13678 local_arguments = local_arguments ,
13779 blender = True ,
138- extra = _engine_variant_targets ,
13980 )
14081
14182def files (group , extra_srcs = None ):
0 commit comments