mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
Make the csv directory if it doesn't exist.
This commit is contained in:
parent
8b5166f294
commit
9d716def9d
1 changed files with 2 additions and 0 deletions
|
@ -95,6 +95,8 @@ class Builder:
|
|||
csr_regions = self.soc.get_csr_regions()
|
||||
constants = self.soc.get_constants()
|
||||
|
||||
csr_dir = os.path.dirname(self.csr_csv)
|
||||
os.makedirs(csr_dir, exist_ok=True)
|
||||
with open(self.csr_csv, "w") as f:
|
||||
f.write(cpu_interface.get_csr_csv(csr_regions, constants, memory_regions))
|
||||
|
||||
|
|
Loading…
Reference in a new issue