bidirectional pin support in gen'ed docs (#15)

* Doc support for bidirectional pins
This commit is contained in:
Pat Deegan
2023-06-01 08:47:30 +03:00
committed by GitHub
parent 7be8332134
commit 860447e618
2 changed files with 12 additions and 11 deletions
+2 -1
View File
@@ -197,6 +197,7 @@ class Project():
rgx_mod = re.compile(r"(?:^|[\s])module[\s]{1,}([\w]+)")
top_verilog = []
for src in self.src_files:
print(f'SRC {src}')
with open(os.path.join(self.local_dir, 'src', src)) as fh:
for line in fh.readlines():
for match in rgx_mod.finditer(line):
@@ -398,7 +399,7 @@ class Project():
def check_yaml_docs(self):
yaml = self.yaml
logging.info("checking docs")
for key in ['author', 'title', 'description', 'how_it_works', 'how_to_test', 'language', 'inputs', 'outputs']:
for key in ['author', 'title', 'description', 'how_it_works', 'how_to_test', 'language', 'inputs', 'outputs', 'bidirectional']:
if key not in yaml['documentation']:
logging.error("missing key {} in documentation".format(key))
exit(1)