From 69ffafd81d779deceb1f81089514b15fa26d285d Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 6 Mar 2020 14:20:32 +0100 Subject: [PATCH] integration/builder: generate csr maps before compiling software. --- litex/soc/integration/builder.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 20920674..94972c55 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -180,6 +180,7 @@ class Builder: self.soc.finalize() self._generate_includes() + self._generate_csr_map() if self.soc.cpu_type is not None: self._prepare_software() self._generate_software(not self.soc.integrated_rom_initialized) @@ -187,8 +188,6 @@ class Builder: if not self.soc.integrated_rom_initialized: self._initialize_rom() - self._generate_csr_map() - if "run" not in kwargs: kwargs["run"] = self.compile_gateware vns = self.soc.build(build_dir=self.gateware_dir, **kwargs) -- 2.30.2