diff --git a/litex/soc/cores/cpu/lm32/core.py b/litex/soc/cores/cpu/lm32/core.py index 03d99efcc..2ab62c786 100644 --- a/litex/soc/cores/cpu/lm32/core.py +++ b/litex/soc/cores/cpu/lm32/core.py @@ -56,6 +56,10 @@ class LM32(Module): ] # add verilog sources + self.add_sources(platform) + + @staticmethod + def add_sources(platform): vdir = os.path.join( os.path.abspath(os.path.dirname(__file__)), "verilog") platform.add_sources(os.path.join(vdir, "submodule", "rtl"), diff --git a/litex/soc/cores/cpu/mor1kx/core.py b/litex/soc/cores/cpu/mor1kx/core.py index f607d044d..8ce397dbd 100644 --- a/litex/soc/cores/cpu/mor1kx/core.py +++ b/litex/soc/cores/cpu/mor1kx/core.py @@ -105,6 +105,10 @@ class MOR1KX(Module): ] # add verilog sources + self.add_sources(platform) + + @staticmethod + def add_sources(platform): vdir = os.path.join( os.path.abspath(os.path.dirname(__file__)), "verilog", "rtl", "verilog") diff --git a/litex/soc/cores/cpu/picorv32/core.py b/litex/soc/cores/cpu/picorv32/core.py index dbce1c641..ace7ee93a 100644 --- a/litex/soc/cores/cpu/picorv32/core.py +++ b/litex/soc/cores/cpu/picorv32/core.py @@ -118,6 +118,10 @@ class PicoRV32(Module): ] # add verilog sources + self.add_sources(platform) + + @staticmethod + def add_sources(platform): vdir = os.path.join( os.path.abspath(os.path.dirname(__file__)), "verilog") platform.add_source(os.path.join(vdir, "picorv32.v")) diff --git a/litex/soc/cores/cpu/vexriscv/core.py b/litex/soc/cores/cpu/vexriscv/core.py index 68aea9dde..d9434742d 100644 --- a/litex/soc/cores/cpu/vexriscv/core.py +++ b/litex/soc/cores/cpu/vexriscv/core.py @@ -44,7 +44,11 @@ class VexRiscv(Module): i_dBusWishbone_ACK=d.ack, i_dBusWishbone_ERR=d.err) - # add Verilog sources + # add verilog sources + self.add_sources(platform) + + @staticmethod + def add_sources(platform): vdir = os.path.join(os.path.abspath(os.path.dirname(__file__)), "verilog") platform.add_sources(os.path.join(vdir), "VexRiscv.v") platform.add_verilog_include_path(vdir)