Adding placholder for bender/fusesoc file writers
@@ -1349,14 +1349,16 @@ class Chip:
self._abspath(cfgcopy)
# Write out configuration based on file type
- if filepath.endswith('.json'):
with open(filepath, 'w') as f:
+ if filepath.endswith('.json'):
print(json.dumps(cfgcopy, indent=4, sort_keys=True), file=f)
elif filepath.endswith('.yaml'):
- with open(filepath, 'w') as f:
print(yaml.dump(cfgcopy, Dumper=YamlIndentDumper, default_flow_style=False), file=f)
+ elif filepath.endswith('.core'):
+ self._write_fusesoc(cfgcopy, file=f)
+ elif filepath.endswith('.bender.yml'):
+ self._write_bender(cfgcopy, file=f)
elif filepath.endswith('.tcl'):
- with open(filepath, 'w') as f:
print("#############################################", file=f)
print("#!!!! AUTO-GENERATED FILE. DO NOT EDIT!!!!!!", file=f)
print("#############################################", file=f)
