@@ -145,27 +145,27 @@ def _get_args():
145
145
*/
146
146
147
147
""" .format (platform_name , args .target , top_class .__name__ , soc .cpu_type )
148
- if isinstance (soc .cpu_or_bridge , CPU ):
149
- cpu_mak = cpuif .get_cpu_mak (soc .cpu_type )
150
- write_to_file ("software/include/generated/cpu.mak" , cpu_mak )
151
- linker_output_format = cpuif .get_linker_output_format (soc .cpu_type )
152
- write_to_file ("software/include/generated/output_format.ld" , linker_output_format )
153
-
154
- linker_regions = cpuif .get_linker_regions (soc .memory_regions )
155
- write_to_file ("software/include/generated/regions.ld" , boilerplate + linker_regions )
156
-
157
- for sdram_phy in ["sdrphy" , "ddrphy" ]:
158
- if hasattr (soc , sdram_phy ):
159
- sdram_phy_header = initsequence .get_sdram_phy_header (getattr (soc , sdram_phy ))
160
- write_to_file ("software/include/generated/sdram_phy.h" , boilerplate + sdram_phy_header )
161
- try :
162
- flash_boot_address = soc .flash_boot_address
163
- except AttributeError :
164
- flash_boot_address = None
165
- mem_header = cpuif .get_mem_header (soc .memory_regions , flash_boot_address )
166
- write_to_file ("software/include/generated/mem.h" , boilerplate + mem_header )
167
- csr_header = cpuif .get_csr_header (soc .csr_regions , soc .interrupt_map )
168
- write_to_file ("software/include/generated/csr.h" , boilerplate + csr_header )
148
+ if isinstance (soc .cpu_or_bridge , CPU ):
149
+ cpu_mak = cpuif .get_cpu_mak (soc .cpu_type )
150
+ write_to_file ("software/include/generated/cpu.mak" , cpu_mak )
151
+ linker_output_format = cpuif .get_linker_output_format (soc .cpu_type )
152
+ write_to_file ("software/include/generated/output_format.ld" , linker_output_format )
153
+
154
+ linker_regions = cpuif .get_linker_regions (soc .memory_regions )
155
+ write_to_file ("software/include/generated/regions.ld" , boilerplate + linker_regions )
156
+
157
+ for sdram_phy in ["sdrphy" , "ddrphy" ]:
158
+ if hasattr (soc , sdram_phy ):
159
+ sdram_phy_header = initsequence .get_sdram_phy_header (getattr (soc , sdram_phy ))
160
+ write_to_file ("software/include/generated/sdram_phy.h" , boilerplate + sdram_phy_header )
161
+ try :
162
+ flash_boot_address = soc .flash_boot_address
163
+ except AttributeError :
164
+ flash_boot_address = None
165
+ mem_header = cpuif .get_mem_header (soc .memory_regions , flash_boot_address )
166
+ write_to_file ("software/include/generated/mem.h" , boilerplate + mem_header )
167
+ csr_header = cpuif .get_csr_header (soc .csr_regions , soc .interrupt_map )
168
+ write_to_file ("software/include/generated/csr.h" , boilerplate + csr_header )
169
169
170
170
if actions ["build-csr-csv" ]:
171
171
csr_csv = cpuif .get_csr_csv (soc .csr_regions )
0 commit comments