Skip to content

Commit 58e7e27

Browse files
olofkthommythomaso
authored andcommitted
Use .sv suffix for generated axi_intercon file
1 parent 023859d commit 58e7e27

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

scripts/axi_intercon_gen.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def construct_mapping(loader, node):
275275
print("Found slave " + k)
276276
self.slaves.append(Slave(k,v))
277277

278-
self.output_file = config.get('output_file', 'axi_intercon.v')
278+
self.output_file = config.get('output_file', 'axi_intercon.sv')
279279
self.atop = config.get('atop', False)
280280

281281
def _dump(self):
@@ -451,14 +451,15 @@ def write(self):
451451
_template_ports))
452452

453453
self.verilog_writer.write(file)
454-
self.template_writer.write(file+'h')
454+
template_file = file.split('.')[0]+'.vh'
455+
self.template_writer.write(template_file)
455456

456457
core_file = self.vlnv.split(':')[2]+'.core'
457458
vlnv = self.vlnv
458459
with open(core_file, 'w') as f:
459460
f.write('CAPI=2:\n')
460461
files = [{file : {'file_type' : 'systemVerilogSource'}},
461-
{file+'h' : {'is_include_file' : True,
462+
{template_file : {'is_include_file' : True,
462463
'file_type' : 'verilogSource'}}
463464
]
464465
coredata = {'name' : vlnv,

0 commit comments

Comments
 (0)