def generate_software_headers(self): csr_header = get_csr_header(self.csr_regions, self.constants, with_access_functions=False) tools.write_to_file(os.path.join("build", "csr.h"), csr_header) soc_header = get_soc_header(self.constants, with_access_functions=False) tools.write_to_file(os.path.join("build", "soc.h"), soc_header) mem_header = get_mem_header(self.mem_regions) tools.write_to_file(os.path.join("build", "mem.h"), mem_header)
def generate_software_header(self, filename): csr_header = get_csr_header(self.get_csr_regions(), self.get_constants(), with_access_functions=False) tools.write_to_file(filename, csr_header)