cpu/minerva: add workaround on import until code is released
This commit is contained in:
parent
9cfae4dfde
commit
fb24ac0ecc
|
@ -4,8 +4,6 @@ from migen import *
|
||||||
|
|
||||||
from litex.soc.interconnect import wishbone
|
from litex.soc.interconnect import wishbone
|
||||||
|
|
||||||
from minerva.core import Minerva as MinervaCPU
|
|
||||||
|
|
||||||
|
|
||||||
class Minerva(Module):
|
class Minerva(Module):
|
||||||
def __init__(self, platform, cpu_reset_address, variant=None):
|
def __init__(self, platform, cpu_reset_address, variant=None):
|
||||||
|
@ -17,10 +15,15 @@ class Minerva(Module):
|
||||||
|
|
||||||
###
|
###
|
||||||
|
|
||||||
self.submodules.cpu = MinervaCPU(reset_address=cpu_reset_address)
|
try: # FIXME: workaround until Minerva code is released
|
||||||
self.comb += [
|
from minerva.core import Minerva as MinervaCPU
|
||||||
self.cpu.reset.eq(self.reset),
|
self.submodules.cpu = MinervaCPU(reset_address=cpu_reset_address)
|
||||||
self.cpu.external_interrupt.eq(self.interrupt),
|
self.comb += [
|
||||||
self.cpu.ibus.connect(self.ibus),
|
self.cpu.reset.eq(self.reset),
|
||||||
self.cpu.dbus.connect(self.dbus)
|
self.cpu.external_interrupt.eq(self.interrupt),
|
||||||
]
|
self.cpu.ibus.connect(self.ibus),
|
||||||
|
self.cpu.dbus.connect(self.dbus)
|
||||||
|
]
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue