ChampSim
config.filewrite Namespace Reference

Classes

class  FileWriter
 

Functions

def files_are_different (rfp, new_rfp)
 
def write_if_different (fname, new_file_string)
 
def get_map_lines (fname_map)
 
def writer (bindir_name=None, objdir_name=None)
 

Variables

string constants_file_name = 'champsim_constants.h'
 
string instantiation_file_name = 'core_inst.inc'
 
string core_module_declaration_file_name = 'ooo_cpu_module_decl.inc'
 
string core_module_definition_file_name = 'ooo_cpu_module_def.inc'
 
string cache_module_declaration_file_name = 'cache_module_decl.inc'
 
string cache_module_definition_file_name = 'cache_module_def.inc'
 
 makefile_file_name = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '_configuration.mk')
 
tuple cxx_generated_warning = ('/***', ' * THIS FILE IS AUTOMATICALLY GENERATED', ' * Do not edit this file. It will be overwritten when the configure script is run.', ' ***/', '')
 
tuple make_generated_warning = ('###', '# THIS FILE IS AUTOMATICALLY GENERATED', '# Do not edit this file. It will be overwritten when the configure script is run.', '###', '')
 

Function Documentation

◆ files_are_different()

def config.filewrite.files_are_different (   rfp,
  new_rfp 
)

◆ get_map_lines()

def config.filewrite.get_map_lines (   fname_map)

◆ write_if_different()

def config.filewrite.write_if_different (   fname,
  new_file_string 
)

◆ writer()

def config.filewrite.writer (   bindir_name = None,
  objdir_name = None 
)

Variable Documentation

◆ cache_module_declaration_file_name

string config.filewrite.cache_module_declaration_file_name = 'cache_module_decl.inc'

◆ cache_module_definition_file_name

string config.filewrite.cache_module_definition_file_name = 'cache_module_def.inc'

◆ constants_file_name

string config.filewrite.constants_file_name = 'champsim_constants.h'

◆ core_module_declaration_file_name

string config.filewrite.core_module_declaration_file_name = 'ooo_cpu_module_decl.inc'

◆ core_module_definition_file_name

string config.filewrite.core_module_definition_file_name = 'ooo_cpu_module_def.inc'

◆ cxx_generated_warning

tuple config.filewrite.cxx_generated_warning = ('/***', ' * THIS FILE IS AUTOMATICALLY GENERATED', ' * Do not edit this file. It will be overwritten when the configure script is run.', ' ***/', '')

◆ instantiation_file_name

string config.filewrite.instantiation_file_name = 'core_inst.inc'

◆ make_generated_warning

tuple config.filewrite.make_generated_warning = ('###', '# THIS FILE IS AUTOMATICALLY GENERATED', '# Do not edit this file. It will be overwritten when the configure script is run.', '###', '')

◆ makefile_file_name

config.filewrite.makefile_file_name = os.path.join(os.path.dirname(os.path.dirname(os.path.abspath(__file__))), '_configuration.mk')