Commit 9c3a2375 authored by Tristan Gingold's avatar Tristan Gingold

Support library for xci files.

From nico.
parent 4e09765b
...@@ -346,6 +346,8 @@ def create_source_file(path, module, library=None, include_dirs=None): ...@@ -346,6 +346,8 @@ def create_source_file(path, module, library=None, include_dirs=None):
new_file = TCLFile(path=path, module=module) new_file = TCLFile(path=path, module=module)
elif extension == 'sdc': elif extension == 'sdc':
new_file = SDCFile(path=path, module=module) new_file = SDCFile(path=path, module=module)
elif extension == 'xci':
new_file = XCIFile(path=path, module=module, library=library)
elif extension in XILINX_FILE_DICT: elif extension in XILINX_FILE_DICT:
new_file = XILINX_FILE_DICT[extension](path=path, module=module) new_file = XILINX_FILE_DICT[extension](path=path, module=module)
elif extension in ALTERA_FILE_DICT: elif extension in ALTERA_FILE_DICT:
......
...@@ -39,7 +39,7 @@ class XCIParser(DepParser): ...@@ -39,7 +39,7 @@ class XCIParser(DepParser):
def parse(self, dep_file): def parse(self, dep_file):
"""Parse a Xilinx XCI IP description file to determine the provided module(s)""" """Parse a Xilinx XCI IP description file to determine the provided module(s)"""
assert not dep_file.is_parsed assert not dep_file.is_parsed
logging.debug("Parsing %s", dep_file.path) logging.debug("Parsing %s in library %s", dep_file.path, dep_file.library)
with open(dep_file.path) as f: with open(dep_file.path) as f:
# extract namespaces with a regex -- not really ideal, but without pulling in # extract namespaces with a regex -- not really ideal, but without pulling in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment