mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 21:27:00 +00:00
Fix pmgen for out-of-tree build
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
069801e441
commit
64d91219b4
2 changed files with 6 additions and 4 deletions
|
@ -6,7 +6,9 @@ import pprint
|
|||
|
||||
pp = pprint.PrettyPrinter(indent=4)
|
||||
|
||||
prefix = sys.argv[1]
|
||||
pmgfile = sys.argv[1]
|
||||
prefix = pmgfile.split("/")[-1]
|
||||
prefix = prefix.split(".")[0]
|
||||
|
||||
state_types = dict()
|
||||
udata_types = dict()
|
||||
|
@ -73,7 +75,7 @@ def rewrite_cpp(s):
|
|||
|
||||
return "".join(t)
|
||||
|
||||
with open("%s.pmg" % prefix, "r") as f:
|
||||
with open(pmgfile, "r") as f:
|
||||
while True:
|
||||
line = f.readline()
|
||||
if line == "": break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue