microwatt: Fix irq variant
The vhd2v conversion missed some things that are only run when building the irq variant. Signed-off-by: Joel Stanley <joel@jms.id.au>
This commit is contained in:
parent
d45d3532fe
commit
4ccf9f487d
|
@ -306,8 +306,7 @@ class XICSSlave(Module, AutoCSR):
|
||||||
# Add VHDL sources.
|
# Add VHDL sources.
|
||||||
self.add_sources(platform, use_ghdl_yosys_plugin="ghdl" in self.variant)
|
self.add_sources(platform, use_ghdl_yosys_plugin="ghdl" in self.variant)
|
||||||
|
|
||||||
@staticmethod
|
def add_sources(self, platform, use_ghdl_yosys_plugin=False):
|
||||||
def add_sources(platform, use_ghdl_yosys_plugin=False):
|
|
||||||
sources = [
|
sources = [
|
||||||
# Common / Types / Helpers
|
# Common / Types / Helpers
|
||||||
"decode_types.vhdl",
|
"decode_types.vhdl",
|
||||||
|
@ -323,8 +322,6 @@ class XICSSlave(Module, AutoCSR):
|
||||||
cdir = os.path.dirname(__file__)
|
cdir = os.path.dirname(__file__)
|
||||||
self.ics_vhd2v_converter.add_sources(sdir, *sources)
|
self.ics_vhd2v_converter.add_sources(sdir, *sources)
|
||||||
self.ics_vhd2v_converter.add_source(os.path.join(os.path.dirname(__file__), "xics_wrapper.vhdl"))
|
self.ics_vhd2v_converter.add_source(os.path.join(os.path.dirname(__file__), "xics_wrapper.vhdl"))
|
||||||
self.icp_vhd2v_converter.add_sources(sdir, *sources)
|
|
||||||
self.icp_vhd2v_converter.add_source(os.path.join(os.path.dirname(__file__), "xics_wrapper.vhdl"))
|
|
||||||
|
|
||||||
def do_finalize(self):
|
def do_finalize(self):
|
||||||
self.specials += Instance("xics_icp_wrapper", **self.icp_params)
|
self.specials += Instance("xics_icp_wrapper", **self.icp_params)
|
||||||
|
|
Loading…
Reference in New Issue