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
5119a192
Commit
5119a192
authored
Mar 18, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use SOURCES_PCFFile variable in the IceStorm Makefile as an Arachne-pnr argument
parent
0d6be30f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
16 deletions
+3
-16
icestorm.py
hdlmake/tools/icestorm.py
+3
-16
No files found.
hdlmake/tools/icestorm.py
View file @
5119a192
...
...
@@ -54,12 +54,12 @@ class ToolIcestorm(ToolSyn):
'synthesize'
:
'yosys -import
\n
'
+
'source files.tcl
\n
'
+
'synth_ice40 -top $(TOP_MODULE) -blif $(PROJECT).blif'
,
'par'
:
'catch {
{
exec arachne-pnr'
+
'par'
:
'catch {exec arachne-pnr'
+
' -d $(SYN_DEVICE)'
+
' -P $(SYN_PACKAGE)'
+
' -p
{0}
'
+
' -p
$(SOURCES_PCFFile)
'
+
' -o $(PROJECT).asc'
+
' $(PROJECT).blif}
}
'
,
' $(PROJECT).blif}'
,
'bitstream'
:
'catch {exec icepack $(PROJECT).asc $(PROJECT).bin}'
,
'install_source'
:
''
}
...
...
@@ -72,16 +72,3 @@ class ToolIcestorm(ToolSyn):
self
.
_clean_targets
.
update
(
ToolIcestorm
.
CLEAN_TARGETS
)
self
.
_tcl_controls
.
update
(
ToolIcestorm
.
TCL_CONTROLS
)
def
makefile_syn_tcl
(
self
):
"""Create an IceStorm synthesis project by TCL"""
constraints_file
=
None
for
file_aux
in
self
.
fileset
:
if
isinstance
(
file_aux
,
PCFFile
):
constraints_file
=
file_aux
.
rel_path
()
if
constraints_file
==
None
:
logging
.
error
(
"No Arachne-pnr constraints file found!"
)
quit
()
par_tmp
=
self
.
_tcl_controls
[
"par"
]
self
.
_tcl_controls
[
"par"
]
=
par_tmp
.
format
(
constraints_file
)
super
(
ToolIcestorm
,
self
)
.
makefile_syn_tcl
()
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