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
bd5b6b75
Commit
bd5b6b75
authored
Aug 26, 2016
by
Piotr Miedzik
Committed by
Javier D. Garcia-Lasheras
Aug 26, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tag support to Quartus
parent
b0ccccc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
quartus.py
hdlmake/tools/quartus.py
+11
-2
No files found.
hdlmake/tools/quartus.py
View file @
bd5b6b75
...
...
@@ -35,12 +35,13 @@ class _QuartusProjectProperty:
"set_location_assignment"
:
SET_LOCATION_ASSIGNMENT
,
"set_global_assignment"
:
SET_GLOBAL_ASSIGNMENT
}
def
__init__
(
self
,
command
,
what
=
None
,
name
=
None
,
name_type
=
None
,
from_
=
None
,
to
=
None
,
section_id
=
None
):
def
__init__
(
self
,
command
,
what
=
None
,
name
=
None
,
name_type
=
None
,
from_
=
None
,
t
ag_
=
None
,
t
o
=
None
,
section_id
=
None
):
self
.
command
=
command
self
.
what
=
what
self
.
name
=
name
self
.
name_type
=
name_type
self
.
from_
=
from_
self
.
tag_
=
tag_
self
.
to
=
to
self
.
section_id
=
section_id
...
...
@@ -63,6 +64,9 @@ class _QuartusProjectProperty:
if
self
.
section_id
is
not
None
:
words
.
append
(
"-section_id"
)
words
.
append
(
self
.
section_id
)
if
self
.
tag_
is
not
None
:
words
.
append
(
"-tag"
)
words
.
append
(
self
.
tag
)
return
' '
.
join
(
words
)
...
...
@@ -146,7 +150,7 @@ class QuartusProject:
for
line
in
lines
:
words
=
line
.
split
()
command
=
QPP
.
t
[
words
[
0
]]
what
=
name
=
name_type
=
from_
=
to
=
section_id
=
None
what
=
name
=
name_type
=
from_
=
t
ag_
=
t
o
=
section_id
=
None
i
=
1
while
True
:
if
i
>=
len
(
words
):
...
...
@@ -169,6 +173,10 @@ class QuartusProject:
from_
,
add
=
__gather_string
(
words
,
i
+
1
)
i
=
i
+
2
continue
elif
words
[
i
]
==
"-tag"
:
tag_
,
add
=
__gather_string
(
words
,
i
+
1
)
i
=
i
+
2
continue
else
:
what
=
words
[
i
]
i
=
i
+
1
...
...
@@ -177,6 +185,7 @@ class QuartusProject:
what
=
what
,
name
=
name
,
name_type
=
name_type
,
from_
=
from_
,
tag_
=
tag_
,
to
=
to
,
section_id
=
section_id
)
...
...
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