From: Peter Gielda Date: Sun, 12 Aug 2018 11:37:39 +0000 (+0200) Subject: Fix generating csr.csv file X-Git-Tag: 24jan2021_ls180~1654^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3c7890cdd42f435c8d3a7dc9d9a31c12c27bd8bd;p=litex.git Fix generating csr.csv file Fix generating csr.csv file when no absolute path is given. --- diff --git a/litex/soc/integration/builder.py b/litex/soc/integration/builder.py index 7be7d4e5..270278fa 100644 --- a/litex/soc/integration/builder.py +++ b/litex/soc/integration/builder.py @@ -106,7 +106,7 @@ class Builder: csr_regions = self.soc.get_csr_regions() constants = self.soc.get_constants() - csr_dir = os.path.dirname(self.csr_csv) + csr_dir = os.path.dirname(os.path.realpath(self.csr_csv)) os.makedirs(csr_dir, exist_ok=True) write_to_file( self.csr_csv,