From 2574cc1ddccdfabf638387aba70416b479c9c541 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Tue, 14 May 2024 11:55:34 +0200 Subject: [PATCH] integration/export: Fix read_function refactoring. --- litex/soc/integration/export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litex/soc/integration/export.py b/litex/soc/integration/export.py index f65dc4074..e9d0e9167 100644 --- a/litex/soc/integration/export.py +++ b/litex/soc/integration/export.py @@ -239,7 +239,7 @@ def _generate_read_function_c(reg_name, reg_base, nwords, busword, ctype, stride for sub in range(1, nwords): read_function += f"\tr <<= {busword};\n" read_function += f"\tr |= csr_read_simple({_get_csr_addr(csr_base, reg_base + sub * stride, with_csr_base_define)});\n" - read_function += "\treturn r;\n}}\n" + read_function += "\treturn r;\n}\n" else: read_function += f"\treturn csr_read_simple({_get_csr_addr(csr_base, reg_base, with_csr_base_define)});\n}}\n" return read_function