Merge pull request #435 from kipmacsaigoren/synth_wrapper_gen

synth wrapper generation bug fix
This commit is contained in:
David Harris 2023-10-18 14:34:37 -07:00 committed by GitHub
commit 4469484f4a

View File

@ -43,7 +43,7 @@ index=0
# string copy logic
for l in lines:
if l.find("module") == 0:
if l.lstrip().find("module") == 0:
lineModuleStart = index
moduleName = l.split()[1]
writeBuf = True
@ -51,7 +51,7 @@ for l in lines:
continue
if (writeBuf):
buf += l
if l.find (");") == 0:
if l.lstrip().find (");") == 0:
lineModuleEnd = index
break
index+=1