diff --git a/src/ipbb/__init__.py b/src/ipbb/__init__.py index 9526bbe9..3ae1bc80 100644 --- a/src/ipbb/__init__.py +++ b/src/ipbb/__init__.py @@ -1,3 +1,3 @@ -__version__ = '1.0.a0+2022.dev8' +__version__ = '1.0.a0+2023.dev1' diff --git a/src/ipbb/generators/vivadoproject.py b/src/ipbb/generators/vivadoproject.py index 99dccdea..8b02afa8 100644 --- a/src/ipbb/generators/vivadoproject.py +++ b/src/ipbb/generators/vivadoproject.py @@ -27,7 +27,7 @@ def fileset(aSrcCmd): name, ext = splitext(aSrcCmd.filepath) lFileSet = None - if ext in ('.xci', '.xcix'): + if ext in ('.xci', '.xcix', '.coe' ): lFileSet = 'sources_1' elif ext in ('.xdc', '.tcl'): @@ -114,7 +114,7 @@ def write(self, aOutput, aSettings, aComponentPaths, aCommandList, aLibs): # local list of commands lCommands = [] - if ext in ('.xci', '.xcix'): + if ext in ('.xci', '.xcix' , '.coe'): t = 'ip' c = f'import_files -norecurse -fileset {self.fileset(src)} $files' @@ -174,7 +174,7 @@ def write(self, aOutput, aSettings, aComponentPaths, aCommandList, aLibs): if not set(lSrcCommandGroups.keys()).issubset(cmd_types): raise RuntimeError(f"Command group mismatch {' '.join(lSrcCommandGroups.keys())}") for t in cmd_types: - for c, f in lSrcCommandGroups[t].items(): + for c, f in lSrcCommandGroups.get(t,{}).items(): write(tmpl(c).substitute(files=' '.join(f))) write(f'set_property top {lTopEntity} [get_filesets sources_1]')