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
7f44a13c
Commit
7f44a13c
authored
Jul 29, 2019
by
William Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix problems after merge.
parent
340f48a2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
main.py
hdlmake/main.py
+3
-0
core.py
hdlmake/module/core.py
+2
-2
srcfile.py
hdlmake/srcfile.py
+6
-6
No files found.
hdlmake/main.py
View file @
7f44a13c
...
...
@@ -129,6 +129,9 @@ def _get_parser():
listfiles
.
add_argument
(
"--top"
,
dest
=
"top"
,
default
=
None
,
help
=
"print only those files required to build 'top'"
)
listfiles
.
add_argument
(
"--qip"
,
dest
=
"qip"
,
default
=
None
,
help
=
"write file list to intel/altera .qip file"
)
tree
=
subparsers
.
add_parser
(
"tree"
,
help
=
"generate a module hierarchy tree graph"
)
...
...
hdlmake/module/core.py
View file @
7f44a13c
...
...
@@ -54,10 +54,10 @@ class ModuleConfig(object):
if
self
.
source
==
'svn'
:
self
.
url
,
self
.
revision
=
path_mod
.
svn_parse
(
url
)
else
:
self
.
url
,
self
.
branch
,
self
.
revision
=
path_mod
.
url_parse
(
url
)
self
.
url
,
self
.
branch
,
self
.
revision
,
self
.
library_overide
=
path_mod
.
url_parse
(
url
)
basename
=
self
.
basename
()
if
self
.
library_overide
:
basename
+=
"-"
+
self
.
library_overide
basename
+=
"-"
+
self
.
library_overide
path
=
path_mod
.
relpath
(
os
.
path
.
abspath
(
os
.
path
.
join
(
fetchto
,
basename
)))
...
...
hdlmake/srcfile.py
View file @
7f44a13c
...
...
@@ -279,9 +279,9 @@ class IPFile(SourceFile):
"""This is the class providing the Altera Quartus IP file"""
def
__init__
(
self
,
path
,
module
):
assert
isinstance
(
path
,
six
.
string_types
)
filename
=
path_mod
.
pathsplit
(
path
)[
-
1
]
library
=
filename
[:
-
3
]
# making some poor assumptions here.
entity
=
filename
[:
-
3
]
# and here.
filename
=
os
.
path
.
basename
(
path
)
entity
=
filename
.
rsplit
(
"."
,
1
)[
0
]
# making some poor assumptions here.
library
=
entity
# and here.
SourceFile
.
__init__
(
self
,
path
=
path
,
module
=
module
,
...
...
@@ -296,9 +296,9 @@ class QSYSFile(SourceFile):
"""Qsys - Altera's System Integration Tool"""
def
__init__
(
self
,
path
,
module
):
assert
isinstance
(
path
,
six
.
string_types
)
filename
=
path_mod
.
pathsplit
(
path
)[
-
1
]
library
=
filename
[:
-
5
]
# making some poor assumptions here.
entity
=
filename
[:
-
5
]
# and here.
filename
=
os
.
path
.
basename
(
path
)
entity
=
filename
.
rsplit
(
"."
,
1
)[
0
]
# making some poor assumptions here.
library
=
entity
# and here.
SourceFile
.
__init__
(
self
,
path
=
path
,
module
=
module
,
...
...
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