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
c761ca21
Commit
c761ca21
authored
Jul 23, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the altera-related stuff at module.py to a new class
parent
28ecb151
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
36 deletions
+43
-36
module.py
hdlmake/module.py
+2
-36
module_altera.py
hdlmake/module_altera.py
+41
-0
No files found.
hdlmake/module.py
View file @
c761ca21
...
...
@@ -30,9 +30,10 @@ from .util import path as path_mod
from
.
import
fetch
from
.module_synthesis
import
ModuleSynthesis
from
.module_simulation
import
ModuleSimulation
from
.module_altera
import
ModuleAltera
class
Module
(
ModuleSynthesis
,
ModuleSimulation
):
class
Module
(
ModuleSynthesis
,
ModuleSimulation
,
ModuleAltera
):
@
property
def
source
(
self
):
return
self
.
_source
...
...
@@ -90,12 +91,6 @@ class Module(ModuleSynthesis, ModuleSimulation):
self
.
svn
=
[]
self
.
git_submodules
=
[]
# Manifest Altera Properties
self
.
quartus_preflow
=
None
self
.
quartus_postmodule
=
None
self
.
quartus_postflow
=
None
self
.
hw_tcl_filename
=
None
# Manifest Included Makefiles
self
.
incl_makefiles
=
[]
...
...
@@ -371,35 +366,6 @@ class Module(ModuleSynthesis, ModuleSimulation):
# source=fetch.GITSUBMODULE))
def
_process_manifest_altera
(
self
):
if
self
.
manifest_dict
[
"quartus_preflow"
]
!=
None
:
path
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"quartus_preflow"
],
self
.
path
);
if
not
os
.
path
.
exists
(
path
):
p
.
error
(
"quartus_preflow file listed in "
+
self
.
manifest
.
path
+
" doesn't exist: "
+
path
+
".
\n
Exiting."
)
quit
()
self
.
quartus_preflow
=
TCLFile
(
path
)
if
self
.
manifest_dict
[
"quartus_postmodule"
]
!=
None
:
path
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"quartus_postmodule"
],
self
.
path
);
if
not
os
.
path
.
exists
(
path
):
p
.
error
(
"quartus_postmodule file listed in "
+
self
.
manifest
.
path
+
" doesn't exist: "
+
path
+
".
\n
Exiting."
)
quit
()
self
.
quartus_postmodule
=
TCLFile
(
path
)
if
self
.
manifest_dict
[
"quartus_postflow"
]
!=
None
:
path
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"quartus_postflow"
],
self
.
path
);
if
not
os
.
path
.
exists
(
path
):
p
.
error
(
"quartus_postflow file listed in "
+
self
.
manifest
.
path
+
" doesn't exist: "
+
path
+
".
\n
Exiting."
)
quit
()
self
.
quartus_postflow
=
TCLFile
(
path
)
if
"hw_tcl_filename"
in
self
.
manifest_dict
:
self
.
hw_tcl_filename
=
self
.
manifest_dict
[
"hw_tcl_filename"
]
def
_process_manifest_force_tool
(
self
):
if
self
.
manifest_dict
[
"force_tool"
]:
ft
=
self
.
manifest_dict
[
"force_tool"
]
...
...
hdlmake/module_altera.py
0 → 100644
View file @
c761ca21
import
os
from
.util
import
path
as
path_mod
class
ModuleAltera
(
object
):
def
__init__
(
self
):
super
(
ModuleAltera
,
self
)
.
__init__
()
# Manifest Altera Properties
self
.
quartus_preflow
=
None
self
.
quartus_postmodule
=
None
self
.
quartus_postflow
=
None
self
.
hw_tcl_filename
=
None
def
_process_manifest_altera
(
self
):
from
.srcfile
import
TCLFile
if
self
.
manifest_dict
[
"quartus_preflow"
]
!=
None
:
path
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"quartus_preflow"
],
self
.
path
);
if
not
os
.
path
.
exists
(
path
):
p
.
error
(
"quartus_preflow file listed in "
+
self
.
manifest
.
path
+
" doesn't exist: "
+
path
+
".
\n
Exiting."
)
quit
()
self
.
quartus_preflow
=
TCLFile
(
path
)
if
self
.
manifest_dict
[
"quartus_postmodule"
]
!=
None
:
path
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"quartus_postmodule"
],
self
.
path
);
if
not
os
.
path
.
exists
(
path
):
p
.
error
(
"quartus_postmodule file listed in "
+
self
.
manifest
.
path
+
" doesn't exist: "
+
path
+
".
\n
Exiting."
)
quit
()
self
.
quartus_postmodule
=
TCLFile
(
path
)
if
self
.
manifest_dict
[
"quartus_postflow"
]
!=
None
:
path
=
path_mod
.
rel2abs
(
self
.
manifest_dict
[
"quartus_postflow"
],
self
.
path
);
if
not
os
.
path
.
exists
(
path
):
p
.
error
(
"quartus_postflow file listed in "
+
self
.
manifest
.
path
+
" doesn't exist: "
+
path
+
".
\n
Exiting."
)
quit
()
self
.
quartus_postflow
=
TCLFile
(
path
)
if
"hw_tcl_filename"
in
self
.
manifest_dict
:
self
.
hw_tcl_filename
=
self
.
manifest_dict
[
"hw_tcl_filename"
]
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