From 46911d5078b81038dceb010b0b786bcb07a7a4d1 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 14 May 2024 11:59:13 +0200 Subject: [PATCH] soc/integration/builder: Disable fields_access_functions generation by default since not widely used (at least not in LiteX "official" projects). --- litex/soc/integration/builder.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 0e01155ee..9f7239a75 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -252,7 +252,10 @@ class Builder: csr_contents = export.get_csr_header( regions = self.soc.csr_regions, constants = self.soc.constants, - csr_base = self.soc.mem_regions["csr"].origin) + csr_base = self.soc.mem_regions["csr"].origin, + with_access_functions = True, + with_fields_access_functions = False, + ) write_to_file(os.path.join(self.generated_dir, "csr.h"), csr_contents) # Generate Git SHA1 of tools to git.h