Skip to content
Snippets Groups Projects
Commit caebaf34 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Rename modelsim_libraries_altera.txt into modelsim_libraries_stratixiv.txt.

parent a2826c02
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ class ModelsimConfig(hdl_config.HdlConfig): ...@@ -77,7 +77,7 @@ class ModelsimConfig(hdl_config.HdlConfig):
with open(mpfPathName, 'w') as fp: with open(mpfPathName, 'w') as fp:
# Write [Library] section for all used libraries # Write [Library] section for all used libraries
fp.write('[Library]\n') fp.write('[Library]\n')
# . technology libs # . vendor technology libs
tech_dict = self.read_modelsim_technology_libraries_file(technology_name) tech_dict = self.read_modelsim_technology_libraries_file(technology_name)
for lib_clause, lib_work in tech_dict.iteritems(): for lib_clause, lib_work in tech_dict.iteritems():
fp.write('%s = %s\n' % (lib_clause, lib_work)) fp.write('%s = %s\n' % (lib_clause, lib_work))
...@@ -91,7 +91,7 @@ class ModelsimConfig(hdl_config.HdlConfig): ...@@ -91,7 +91,7 @@ class ModelsimConfig(hdl_config.HdlConfig):
fp.write('%s = %s\n' % (lib_clause, lib_work)) fp.write('%s = %s\n' % (lib_clause, lib_work))
# . work # . work
fp.write('work = work\n') fp.write('work = work\n')
# . others # . others modelsim default libs
model_tech_dir = os.path.expandvars(self.tool.get_key_values('model_tech_dir')) model_tech_dir = os.path.expandvars(self.tool.get_key_values('model_tech_dir'))
fp.write('others = %s\n' % os.path.join(model_tech_dir, 'modelsim.ini')) fp.write('others = %s\n' % os.path.join(model_tech_dir, 'modelsim.ini'))
# Write [Project] section for all used libraries # Write [Project] section for all used libraries
...@@ -177,7 +177,7 @@ if __name__ == '__main__': ...@@ -177,7 +177,7 @@ if __name__ == '__main__':
# Read the dictionary info from all HDL tool and library configuration files in the current directory and the sub directories # Read the dictionary info from all HDL tool and library configuration files in the current directory and the sub directories
libRootDir = 'RADIOHDL' libRootDir = 'RADIOHDL'
#libRootDir = 'UNB' #libRootDir = 'UNB'
technology_name = 'altera' technology_name = 'stratixiv'
msim = ModelsimConfig(libRootDir=os.environ[libRootDir], toolRootDir=os.path.expandvars('$RADIOHDL/tools'), libFileName='hdllib.cfg', toolFileName='hdltool.cfg') msim = ModelsimConfig(libRootDir=os.environ[libRootDir], toolRootDir=os.path.expandvars('$RADIOHDL/tools'), libFileName='hdllib.cfg', toolFileName='hdltool.cfg')
print '#' print '#'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment