diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index 4fa5fb1c6..ed3abcb60 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -180,7 +180,8 @@ def _get_rw_functions_c(reg_name, reg_base, nwords, busword, alignment, read_onl def get_csr_header(regions, constants, with_access_functions=True): alignment = constants.get("CONFIG_CSR_ALIGNMENT", 32) r = generated_banner("//") - r += "#include \n" + if with_access_functions: # FIXME + r += "#include \n" r += "#ifndef __GENERATED_CSR_H\n#define __GENERATED_CSR_H\n" if with_access_functions: r += "#include \n"