update gen_gpio_defaults script to edit caravan_core.v rather than caravan.v

This commit is contained in:
M0stafaRady 2023-05-24 02:37:41 -07:00
parent fbf53572e1
commit 2b95b4f2d6
1 changed files with 2 additions and 2 deletions

View File

@ -458,7 +458,7 @@ if __name__ == '__main__':
if testmode: if testmode:
print('Test only: Caravan top gate-level verilog:') print('Test only: Caravan top gate-level verilog:')
with open(caravel_path + '/verilog/gl/caravan.v', 'r') as ifile: with open(caravel_path + '/verilog/gl/caravan_core.v', 'r') as ifile:
vlines = ifile.read().splitlines() vlines = ifile.read().splitlines()
outlines = [] outlines = []
for vline in vlines: for vline in vlines:
@ -483,7 +483,7 @@ if __name__ == '__main__':
outlines.append(vline) outlines.append(vline)
if not testmode: if not testmode:
with open(glpath + '/caravan.v', 'w') as ofile: with open(glpath + '/caravan_core.v', 'w') as ofile:
for outline in outlines: for outline in outlines:
print(outline, file=ofile) print(outline, file=ofile)