@@ -37,14 +37,14 @@ ExternalSynthesisInfo = provider(
37
37
},
38
38
)
39
39
40
- # Args:
41
- # standard_cell_info: The StandardCellInfo provider this target was synthesized against.
42
- # synthesized_netlist: The structural verilog syntheized with standard_cell_info
43
- # top_module: The name of the top level module of the synthesized netlist
44
- # log_file: Log output file from the synthesis step.
45
40
SynthesisInfo = provider (
46
41
"Information about the synthesis target" ,
47
- fields = ["standard_cell_info" , "synthesized_netlist" , "top_module" , "log_file" ],
42
+ fields = {
43
+ "log_file" : "Log output file from the synthesis step." ,
44
+ "standard_cell_info" : "The StandardCellInfo provider this target was synthesized against." ,
45
+ "synthesized_netlist" : "he structural verilog syntheized with standard_cell_info" ,
46
+ "top_module" : "The name of the top level module of the synthesized netlist" ,
47
+ },
48
48
)
49
49
50
50
def _transitive_srcs (deps ):
@@ -294,7 +294,9 @@ def _synthesize_binary_impl(ctx):
294
294
synthesis_binary = rule (
295
295
implementation = _synthesize_binary_impl ,
296
296
attrs = {
297
- "synthesize_rtl_rule" : attr .label (providers = [ExternalSynthesisInfo ]),
297
+ "synthesize_rtl_rule" : attr .label (
298
+ providers = [ExternalSynthesisInfo ],
299
+ ),
298
300
"yosys_tool" : attr .label (
299
301
default = Label ("@at_clifford_yosys//:yosys" ),
300
302
executable = True ,
@@ -316,9 +318,15 @@ synthesize_rtl = rule(
316
318
allow_single_file = True ,
317
319
doc = "Verilog file that maps yosys adder to PDK adders." ,
318
320
),
319
- "deps" : attr .label_list (providers = [[VerilogInfo ], [UhdmInfo ]]),
320
- "output_file_name" : attr .string (doc = "The output file name." ),
321
- "srcs" : attr .label_list (allow_files = True ),
321
+ "deps" : attr .label_list (
322
+ providers = [[VerilogInfo ], [UhdmInfo ]],
323
+ ),
324
+ "output_file_name" : attr .string (
325
+ doc = "The output file name." ,
326
+ ),
327
+ "srcs" : attr .label_list (
328
+ allow_files = True ,
329
+ ),
322
330
"standard_cells" : attr .label (
323
331
providers = [StandardCellInfo ],
324
332
default = "@com_google_skywater_pdk_sky130_fd_sc_hd//:sky130_fd_sc_hd" ,
@@ -328,8 +336,12 @@ synthesize_rtl = rule(
328
336
allow_single_file = True ,
329
337
doc = "Tcl synthesis script compatible with the environment-variable API of synth.tcl" ,
330
338
),
331
- "target_clock_period_pico_seconds" : attr .int (doc = "target clock period in picoseconds" ),
332
- "top_module" : attr .string (default = "top" ),
339
+ "target_clock_period_pico_seconds" : attr .int (
340
+ doc = "target clock period in picoseconds" ,
341
+ ),
342
+ "top_module" : attr .string (
343
+ default = "top" ,
344
+ ),
333
345
"yosys_tool" : attr .label (
334
346
default = Label ("@at_clifford_yosys//:yosys" ),
335
347
executable = True ,
0 commit comments