Adding yaml writer placeholder
Some EDA tools used yaml...
Need to refactor the write config code, starting to look a bit ugly
@@ -5,6 +5,7 @@ import os
import sys
import re
import json
+import yaml
import logging
import hashlib
import webbrowser
@@ -206,6 +207,15 @@ class Chip:
with open(abspath, 'w') as f:
print(json.dumps(diff_cfg, sort_keys=True, indent=4), file=f)
f.close()
+ with open("my.yaml", 'w') as f:
+ print(yaml.dump(diff_cfg, default_flow_style = False), file=f)
+
+# def writeyaml(self,cfg,filename):
+# with open(filename, 'w') as f:
+# print(yaml.dump(diff_cfg), file=f)
+
+
+
##################################
def writetcl(self, filename=None):
