Adding default constaints to schema
This was in earlier, but I removed it favor of MCMM. By makign the constrint the global default to be used in all mcmms we can have our cake and eat it to. (serving advanced and simple users alike)
@@ -162,9 +162,6 @@ def schema_fpga(cfg):
]
}
-
-
-
return cfg
###############################################################################
@@ -2271,6 +2268,29 @@ def schema_design(cfg):
"api: chip.set('cmdfile','readscript.cmd') "]
}
+ cfg['constraint'] = {
+ 'switch' : '-constraint',
+ 'switch_args' : '<file>',
+ 'type' : ['file'],
+ 'requirement' : 'optional',
+ 'defvalue' : [],
+ 'hash' : [],
+ 'date' : [],
+ 'author' : [],
+ 'signature' : [],
+ 'short_help' : 'Design Constraint Files',
+ 'help' : ["List of default constraints for the design to use during ",
+ "compilation. Types of constraints include timing (SDC) ",
+ "and pin mappings for FPGAs. More than one file can be ",
+ "supplied. Timing constraints are global and sourced in ",
+ "all MCMM scenarios. ",
+ " ",
+ "Examples: ",
+ "cli: -constaint 'top.sdc' ",
+ "api: chip.add('constraint','top.sdc') "]
+ }
+
+
return cfg
###########################
