mirror of https://github.com/YosysHQ/yosys.git
More exceptions
This commit is contained in:
parent
ab46d9017b
commit
1809f463fb
|
@ -286,7 +286,7 @@ def process_pmgfile(f, filename):
|
|||
block["gencode"].append(rewrite_cpp(l.rstrip()))
|
||||
break
|
||||
|
||||
assert False
|
||||
raise RuntimeError("'%s' statement not recognised on line %d" % (a[0], linenr))
|
||||
|
||||
if block["optional"]:
|
||||
assert not block["semioptional"]
|
||||
|
@ -328,7 +328,7 @@ def process_pmgfile(f, filename):
|
|||
blocks.append(block)
|
||||
continue
|
||||
|
||||
assert False
|
||||
raise RuntimeError("'%s' command not recognised" % cmd)
|
||||
|
||||
for fn in pmgfiles:
|
||||
with open(fn, "r") as f:
|
||||
|
|
Loading…
Reference in New Issue