tools/litex_json2renode: Add cv32e40p support

This commit is contained in:
Michal Sieron 2022-03-03 11:59:26 +01:00
parent 46361db135
commit 35dd5554ba
1 changed files with 18 additions and 0 deletions

View File

@ -253,6 +253,24 @@ cpu: CPU.RiscV32 @ sysbus
timeProvider: empty
interruptMode: InterruptMode.Vectored
"""
elif kind == 'cv32e40p':
result = """
cpu: CPU.CV32E40P @ sysbus
"""
if variant == 'standard':
result += """
cpuType: "rv32imc"
"""
else:
result += """
cpuType: "rv32imc"
"""
if time_provider:
result += """
timeProvider: {}
""".format(time_provider)
return result
else:
raise Exception('Unsupported cpu type: {}'.format(kind))