Addding an entry for 'output' in schema
This should be the dual of 'source' and it might be cleaner to consider 'input' instead of source
@@ -135,7 +135,7 @@ def schema_cfg():
sctype='[file]',
copy='true',
shorthelp="Source files",
- switch="-source 'filetype <str>'",
+ switch="-source 'filetype <file>'",
example=[
"cli: -source 'filetype hello_world.v'",
"api: chip.set('source','verilog','hello_world.v')"],
@@ -146,6 +146,23 @@ def schema_cfg():
systemc, verilog, vhdl, netlist, def, gds, gerber, saif, sdc,
saif, vcd, spef, sdf.""")
+ # Outputs
+ filetype = 'default'
+ scparam(cfg,['output', filetype],
+ sctype='[file]',
+ copy='true',
+ shorthelp="Output files",
+ switch="-output 'filetype <file>'",
+ example=[
+ "cli: -output 'verilog hello_world.vg'",
+ "api: chip.set('output','verilog','hello_world.vg')"],
+ schelp="""
+ List of flow output files specifed by type. The filetype name must
+ align with the parameter names within the flow and tool setup
+ scripts. Filetypes accepted by the SC flows include: python, c,
+ systemc, verilog, vhdl, netlist, def, gds, gerber, saif, sdc,
+ saif, vcd, spef, sdf.""")
+
# Inputs and constraints
cfg = schema_constraint(cfg)
