Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
H
Hdlmake
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
15
Issues
15
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Hdlmake
Commits
9c3a2375
Commit
9c3a2375
authored
Mar 05, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support library for xci files.
From nico.
parent
4e09765b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
srcfile.py
hdlmake/sourcefiles/srcfile.py
+2
-0
xci_parser.py
hdlmake/sourcefiles/xci_parser.py
+1
-1
No files found.
hdlmake/sourcefiles/srcfile.py
View file @
9c3a2375
...
@@ -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
:
...
...
hdlmake/sourcefiles/xci_parser.py
View file @
9c3a2375
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment