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
b1192242
Commit
b1192242
authored
Mar 05, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add error checking on the ISE synthesis TCL scripts
parent
66c41063
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
ise.py
hdlmake/tools/ise.py
+15
-6
No files found.
hdlmake/tools/ise.py
View file @
b1192242
...
...
@@ -82,15 +82,24 @@ class ToolISE(ToolSyn):
"par_usage_statistics.html"
,
"webtalk_pn.xml"
],
'mrproper'
:
[
"*.bit"
,
"*.bin"
,
"*.mcs"
]}
_ISE_RUN
=
'''
set process {{{0}}}
process run $$process
set result [process get $$process status]
if {{ $$result == "errors" }} {{
puts "$$process failed"
exit 1
}}'''
TCL_CONTROLS
=
{
'create'
:
'project new $(PROJECT_FILE)'
,
'open'
:
'project open $(PROJECT_FILE)'
,
'save'
:
'project save'
,
'close'
:
'project close'
,
'synthesize'
:
'process run {Synthesize - XST}'
,
'translate'
:
'process run {Translate}'
,
'map'
:
'process run {Map}'
,
'par'
:
'process run {Place & Route}'
,
'bitstream'
:
'process run {Generate Programming File}'
,
'synthesize'
:
_ISE_RUN
.
format
(
'Synthesize - XST'
)
,
'translate'
:
_ISE_RUN
.
format
(
'Translate'
)
,
'map'
:
_ISE_RUN
.
format
(
'Map'
)
,
'par'
:
_ISE_RUN
.
format
(
'Place & Route'
)
,
'bitstream'
:
_ISE_RUN
.
format
(
'Generate Programming File'
)
,
'install_source'
:
'*.bit *.bin'
}
def
__init__
(
self
):
...
...
@@ -114,7 +123,7 @@ class ToolISE(ToolSyn):
self
.
manifest_dict
[
"syn_device"
][
0
:
4
]
.
upper
())
if
syn_family
is
None
:
logging
.
error
(
"syn_family is not defin
i
ed in Manifest.py"
"syn_family is not defined in Manifest.py"
" and can not be guessed!"
)
quit
(
-
1
)
create_new
=
[]
...
...
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