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
fa1e9c1b
Commit
fa1e9c1b
authored
Apr 14, 2016
by
Stefan Rauch
Committed by
Javier D. Garcia-Lasheras
Apr 14, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] quartus: added legacy file support | Patch rebased by manager
parent
c29256fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
2 deletions
+36
-2
srcfile.py
hdlmake/srcfile.py
+25
-0
quartus.py
hdlmake/tools/quartus/quartus.py
+11
-2
No files found.
hdlmake/srcfile.py
View file @
fa1e9c1b
...
...
@@ -167,6 +167,23 @@ class QSFFile(File):
# Quartus Settings File
pass
class
BSFFile
(
File
):
# Quartus Block Symbol File
pass
class
BDFFile
(
File
):
# Quartus Block Design File
pass
class
TDFFile
(
File
):
# Quartus Text Design File
pass
class
GDFFile
(
File
):
# Quartus Graphic Design File
pass
class
SourceFileSet
(
set
):
def
__init__
(
self
):
...
...
@@ -282,4 +299,12 @@ class SourceFileFactory:
nf
=
PDCFile
(
path
=
path
,
module
=
module
)
elif
extension
==
'qsf'
:
nf
=
QSFFile
(
path
=
path
,
module
=
module
)
elif
extension
==
'bsf'
:
nf
=
BSFFile
(
path
=
path
,
module
=
module
)
elif
extension
==
'bdf'
:
nf
=
BDFFile
(
path
=
path
,
module
=
module
)
elif
extension
==
'tdf'
:
nf
=
TDFFile
(
path
=
path
,
module
=
module
)
elif
extension
==
'gdf'
:
nf
=
GDFFile
(
path
=
path
,
module
=
module
)
return
nf
hdlmake/tools/quartus/quartus.py
View file @
fa1e9c1b
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright (c) 2013 - 201
5
CERN
# Copyright (c) 2013 - 201
6
CERN
# Author: Pawel Szostek (pawel.szostek@cern.ch)
# Multi-tool support by Javier D. Garcia-Lasheras (javier@garcialasheras.com)
#
...
...
@@ -178,7 +178,8 @@ mrproper:
return
pre
+
'
\n
'
+
mod
+
'
\n
'
+
post
+
'
\n
'
def
__emit_files
(
self
):
from
hdlmake.srcfile
import
VHDLFile
,
VerilogFile
,
SignalTapFile
,
SDCFile
,
QIPFile
,
DPFFile
,
QSFFile
from
hdlmake.srcfile
import
VHDLFile
,
VerilogFile
,
SignalTapFile
,
SDCFile
,
QIPFile
,
DPFFile
,
QSFFile
,
BSFFile
,
BDFFile
,
TDFFile
,
GDFFile
tmp
=
"set_global_assignment -name {0} {1}"
tmplib
=
tmp
+
" -library {2}"
ret
=
[]
...
...
@@ -197,6 +198,14 @@ mrproper:
line
=
tmp
.
format
(
"MISC_FILE"
,
f
.
rel_path
())
elif
isinstance
(
f
,
QSFFile
):
line
=
tmp
.
format
(
"SOURCE_TCL_SCRIPT_FILE"
,
f
.
rel_path
())
elif
isinstance
(
f
,
BSFFile
):
line
=
tmp
.
format
(
"BSF_FILE"
,
f
.
rel_path
())
elif
isinstance
(
f
,
BDFFile
):
line
=
tmp
.
format
(
"BDF_FILE"
,
f
.
rel_path
())
elif
isinstance
(
f
,
TDFFile
):
line
=
tmp
.
format
(
"AHDL_FILE"
,
f
.
rel_path
())
elif
isinstance
(
f
,
GDFFile
):
line
=
tmp
.
format
(
"GDF_FILE"
,
f
.
rel_path
())
else
:
continue
ret
.
append
(
line
)
...
...
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