cpu/microwatt: add pythondata and fix build with it.
This commit is contained in:
parent
45377d9faa
commit
c06a127909
|
@ -102,9 +102,7 @@ class Microwatt(CPU):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def add_sources(platform):
|
def add_sources(platform):
|
||||||
sdir = os.path.join(
|
sdir = get_data_mod("cpu", "microwatt").data_location
|
||||||
get_data_mod("cpu", "microwatt").data_location,
|
|
||||||
"sources")
|
|
||||||
platform.add_sources(sdir,
|
platform.add_sources(sdir,
|
||||||
# Common / Types / Helpers
|
# Common / Types / Helpers
|
||||||
"decode_types.vhdl",
|
"decode_types.vhdl",
|
||||||
|
@ -157,7 +155,7 @@ class Microwatt(CPU):
|
||||||
"core_debug.vhdl",
|
"core_debug.vhdl",
|
||||||
"core.vhdl",
|
"core.vhdl",
|
||||||
)
|
)
|
||||||
platform.add_source(os.path.join(sdir, "..", "microwatt_wrapper.vhdl"))
|
platform.add_source(os.path.join(os.path.dirname(__file__), "microwatt_wrapper.vhdl"))
|
||||||
|
|
||||||
def do_finalize(self):
|
def do_finalize(self):
|
||||||
self.specials += Instance("microwatt_wrapper", **self.cpu_params)
|
self.specials += Instance("microwatt_wrapper", **self.cpu_params)
|
||||||
|
|
|
@ -47,6 +47,7 @@ repos = [
|
||||||
("pythondata-cpu-vexriscv", ("https://github.com/litex-hub/", False, True)),
|
("pythondata-cpu-vexriscv", ("https://github.com/litex-hub/", False, True)),
|
||||||
("pythondata-cpu-rocket", ("https://github.com/litex-hub/", False, True)),
|
("pythondata-cpu-rocket", ("https://github.com/litex-hub/", False, True)),
|
||||||
("pythondata-cpu-minerva", ("https://github.com/litex-hub/", False, True)),
|
("pythondata-cpu-minerva", ("https://github.com/litex-hub/", False, True)),
|
||||||
|
("pythondata-cpu-microwatt", ("https://github.com/litex-hub/", False, True)),
|
||||||
]
|
]
|
||||||
|
|
||||||
repos = OrderedDict(repos)
|
repos = OrderedDict(repos)
|
||||||
|
|
Loading…
Reference in New Issue