mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 21:44:29 +00:00
Merge pull request #435 from kipmacsaigoren/synth_wrapper_gen
synth wrapper generation bug fix
This commit is contained in:
commit
4469484f4a
@ -43,7 +43,7 @@ index=0
|
|||||||
|
|
||||||
# string copy logic
|
# string copy logic
|
||||||
for l in lines:
|
for l in lines:
|
||||||
if l.find("module") == 0:
|
if l.lstrip().find("module") == 0:
|
||||||
lineModuleStart = index
|
lineModuleStart = index
|
||||||
moduleName = l.split()[1]
|
moduleName = l.split()[1]
|
||||||
writeBuf = True
|
writeBuf = True
|
||||||
@ -51,7 +51,7 @@ for l in lines:
|
|||||||
continue
|
continue
|
||||||
if (writeBuf):
|
if (writeBuf):
|
||||||
buf += l
|
buf += l
|
||||||
if l.find (");") == 0:
|
if l.lstrip().find (");") == 0:
|
||||||
lineModuleEnd = index
|
lineModuleEnd = index
|
||||||
break
|
break
|
||||||
index+=1
|
index+=1
|
||||||
|
Loading…
Reference in New Issue
Block a user