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
30e76327
Commit
30e76327
authored
Jul 23, 2016
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Start moving the module stuff to a dedicated folder
parent
8b810c56
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
19 additions
and
18 deletions
+19
-18
__init__.py
hdlmake/mod/__init__.py
+0
-0
altera.py
hdlmake/mod/altera.py
+3
-3
content.py
hdlmake/mod/content.py
+4
-4
core.py
hdlmake/mod/core.py
+1
-1
plugin.py
hdlmake/mod/plugin.py
+0
-0
simulation.py
hdlmake/mod/simulation.py
+3
-3
synthesis.py
hdlmake/mod/synthesis.py
+1
-1
module.py
hdlmake/module.py
+7
-6
No files found.
hdlmake/mod/__init__.py
0 → 100644
View file @
30e76327
hdlmake/mod
ule_
altera.py
→
hdlmake/mod
/
altera.py
View file @
30e76327
import
os
from
.
module_
plugin
import
ModulePlugin
from
.util
import
path
as
path_mod
from
.plugin
import
ModulePlugin
from
hdlmake
.util
import
path
as
path_mod
class
ModuleAltera
(
ModulePlugin
):
def
__init__
(
self
):
...
...
@@ -16,7 +16,7 @@ class ModuleAltera(ModulePlugin):
super
(
ModuleAltera
,
self
)
.
process_manifest
()
def
_process_manifest_altera
(
self
):
from
.srcfile
import
TCLFile
from
hdlmake
.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
):
...
...
hdlmake/mod
ule_
content.py
→
hdlmake/mod
/
content.py
View file @
30e76327
import
logging
from
.
import
fetch
from
.
module_
plugin
import
ModulePlugin
from
.util
import
path
as
path_mod
from
hdlmake
import
fetch
from
.plugin
import
ModulePlugin
from
hdlmake
.util
import
path
as
path_mod
class
ModuleContent
(
ModulePlugin
):
def
__init__
(
self
):
...
...
@@ -20,7 +20,7 @@ class ModuleContent(ModulePlugin):
super
(
ModuleContent
,
self
)
.
process_manifest
()
def
_process_manifest_files
(
self
):
from
.srcfile
import
TCLFile
,
VerilogFile
,
VHDLFile
,
SourceFileSet
from
hdlmake
.srcfile
import
TCLFile
,
VerilogFile
,
VHDLFile
,
SourceFileSet
# HDL files provided by the module
if
self
.
manifest_dict
[
"files"
]
==
[]:
self
.
files
=
SourceFileSet
()
...
...
hdlmake/mod
ule_
core.py
→
hdlmake/mod
/
core.py
View file @
30e76327
from
.
module_
plugin
import
ModulePlugin
from
.plugin
import
ModulePlugin
class
ModuleCore
(
ModulePlugin
):
def
__init__
(
self
):
...
...
hdlmake/mod
ule_
plugin.py
→
hdlmake/mod
/
plugin.py
View file @
30e76327
File moved
hdlmake/mod
ule_
simulation.py
→
hdlmake/mod
/
simulation.py
View file @
30e76327
from
.
module_
plugin
import
ModulePlugin
from
.plugin
import
ModulePlugin
class
ModuleSimulation
(
object
):
class
ModuleSimulation
(
ModulePlugin
):
def
__init__
(
self
):
# Manifest Simulation Properties
...
...
@@ -24,7 +24,7 @@ class ModuleSimulation(object):
super
(
ModuleSimulation
,
self
)
.
process_manifest
()
def
_process_manifest_simulation
(
self
):
from
.srcfile
import
SourceFileSet
from
hdlmake
.srcfile
import
SourceFileSet
# Simulation properties
self
.
sim_tool
=
self
.
manifest_dict
[
"sim_tool"
]
self
.
sim_top
=
self
.
manifest_dict
[
"sim_top"
]
...
...
hdlmake/mod
ule_
synthesis.py
→
hdlmake/mod
/
synthesis.py
View file @
30e76327
from
.
module_
plugin
import
ModulePlugin
from
.plugin
import
ModulePlugin
class
ModuleSynthesis
(
ModulePlugin
):
def
__init__
(
self
):
...
...
hdlmake/module.py
View file @
30e76327
...
...
@@ -28,11 +28,11 @@ import logging
from
.manifest_parser
import
Manifest
,
ManifestParser
from
.util
import
path
as
path_mod
from
.
import
fetch
from
.mod
ule_
core
import
ModuleCore
from
.mod
ule_
synthesis
import
ModuleSynthesis
from
.mod
ule_
simulation
import
ModuleSimulation
from
.mod
ule_
content
import
ModuleContent
from
.mod
ule_
altera
import
ModuleAltera
from
.mod
.
core
import
ModuleCore
from
.mod
.
synthesis
import
ModuleSynthesis
from
.mod
.
simulation
import
ModuleSimulation
from
.mod
.
content
import
ModuleContent
from
.mod
.
altera
import
ModuleAltera
class
Module
(
ModuleCore
,
ModuleSynthesis
,
ModuleSimulation
,
ModuleContent
,
ModuleAltera
):
...
...
@@ -155,8 +155,9 @@ class Module(ModuleCore, ModuleSynthesis, ModuleSimulation, ModuleContent, Modul
break
def
process_manifest
(
self
):
super
(
Module
,
self
)
.
process_manifest
()
logging
.
debug
(
"Process manifest at: "
+
os
.
path
.
dirname
(
self
.
path
))
super
(
Module
,
self
)
.
process_manifest
()
def
parse_manifest
(
self
):
"""
...
...
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