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
4ccbedb6
Commit
4ccbedb6
authored
Mar 18, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initial multi-shell support for Quartus
parent
044c49ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
11 deletions
+8
-11
quartus.py
hdlmake/tools/quartus.py
+8
-11
No files found.
hdlmake/tools/quartus.py
View file @
4ccbedb6
...
...
@@ -48,7 +48,7 @@ class ToolQuartus(ToolSyn):
STANDARD_LIBS
=
[
'altera'
,
'altera_mf'
,
'lpm'
,
'ieee'
,
'std'
]
_QUARTUS_SOURCE
=
'set_global_assignment -name {0} $
$filename
'
_QUARTUS_SOURCE
=
'set_global_assignment -name {0} $
(sourcefile)
'
SUPPORTED_FILES
=
{
SignalTapFile
:
_QUARTUS_SOURCE
.
format
(
'SIGNALTAP_FILE'
),
...
...
@@ -80,12 +80,12 @@ class ToolQuartus(ToolSyn):
'mrproper'
:
[
"*.sof"
,
"*.pof"
,
"*.jam"
,
"*.jbc"
,
"*.ekp"
,
"*.jic"
]}
TCL_CONTROLS
=
{
'create'
:
'load_package flow
\n
'
TCL_CONTROLS
=
{
'create'
:
'load_package flow
;
'
'project_new $(PROJECT)'
,
'open'
:
'load_package flow
\n
'
'open'
:
'load_package flow
;
'
'project_open $(PROJECT)'
,
'project'
:
'$(TCL_CREATE)
\n
'
'
$(TCL_FILES)
'
,
'
source files.tcl
'
,
'bitstream'
:
'$(TCL_OPEN)
\n
'
'execute_flow -compile'
,
'install_source'
:
''
}
...
...
@@ -166,24 +166,21 @@ class ToolQuartus(ToolSyn):
family_string
=
__get_family_string
(
family
=
self
.
manifest_dict
.
get
(
"syn_family"
,
None
),
device
=
self
.
manifest_dict
.
get
(
"syn_device"
,
''
))
device_string
=
(
self
.
manifest_dict
[
"syn_device"
]
+
self
.
manifest_dict
[
"syn_package"
]
+
self
.
manifest_dict
[
"syn_grade"
])
.
upper
()
device_string
=
"$(SYN_DEVICE)$(SYN_PACKAGE)$(SYN_GRADE)"
command_list
=
[]
command_list
.
append
(
self
.
_tcl_controls
[
"project"
])
command_list
.
append
(
_emit_property
(
self
.
SET_GLOBAL_ASSIGNMENT
,
name_type
=
'FAMILY'
,
name
=
'
"'
+
family_string
+
'
"'
))
name
=
'
\\
"$(SYN_FAMILY)
\\
"'
))
command_list
.
append
(
_emit_property
(
self
.
SET_GLOBAL_ASSIGNMENT
,
name_type
=
'DEVICE'
,
name
=
device_string
))
name
=
'
\\
"'
+
device_string
+
'
\\
"'
))
command_list
.
append
(
_emit_property
(
self
.
SET_GLOBAL_ASSIGNMENT
,
name_type
=
'TOP_LEVEL_ENTITY'
,
name
=
self
.
manifest_dict
[
"syn_top"
]
))
name
=
'
\\
"$(TOP_MODULE)
\\
"'
))
# Insert the Quartus standard control TCL files
if
"quartus_preflow"
in
self
.
manifest_dict
:
path
=
path_mod
.
compose
(
...
...
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