tools/litex_json2renode: Add cv32e40p support
This commit is contained in:
parent
46361db135
commit
35dd5554ba
|
@ -253,6 +253,24 @@ cpu: CPU.RiscV32 @ sysbus
|
||||||
timeProvider: empty
|
timeProvider: empty
|
||||||
interruptMode: InterruptMode.Vectored
|
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:
|
else:
|
||||||
raise Exception('Unsupported cpu type: {}'.format(kind))
|
raise Exception('Unsupported cpu type: {}'.format(kind))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue