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
e73d287a
Commit
e73d287a
authored
Mar 12, 2017
by
Javier D. Garcia-Lasheras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IceStorm doesn't use a project, so move the stuff to synthesize
parent
9d12aab0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
icestorm.py
hdlmake/tools/icestorm.py
+12
-15
No files found.
hdlmake/tools/icestorm.py
View file @
e73d287a
...
...
@@ -51,13 +51,13 @@ class ToolIcestorm(ToolSyn):
'mrproper'
:
[
"$(PROJECT).bin"
]}
TCL_CONTROLS
=
{
'
create'
:
''
,
'open'
:
''
,
'save'
:
''
,
'close'
:
''
,
'synthesize'
:
''
,
'translate'
:
''
,
'map'
:
'
'
,
'
synthesize'
:
'yosys -import
\n
'
+
'$(TCL_FILES)
\n
'
+
'foreach filename $$hdl_files {
\n
'
+
' read_verilog $$filename
\n
'
+
' puts "Adding file $$filename to the project."
\n
'
+
'}
\n
'
+
'synth_ice40 -top $(TOP_MODULE) -blif $(PROJECT).blif
'
,
'par'
:
'catch {{exec arachne-pnr'
+
' -d {0}'
+
' -P {1}'
+
...
...
@@ -80,14 +80,11 @@ class ToolIcestorm(ToolSyn):
"""Write the files TCL section of the Makefile"""
ret
=
[]
ret
.
append
(
"define TCL_FILES"
)
ret
.
append
(
"yosys -import"
)
# First stage: linking files
ret
.
append
(
"set hdl_files {"
)
for
file_aux
in
self
.
fileset
:
if
isinstance
(
file_aux
,
VerilogFile
):
ret
.
append
(
'read_verilog {0}'
.
format
(
file_aux
.
rel_path
()))
ret
.
append
(
"synth_ice40 -top {0} -blif {1}.blif"
.
format
(
self
.
manifest_dict
[
"syn_top"
],
self
.
manifest_dict
[
"syn_project"
]))
ret
.
append
(
" {0}"
.
format
(
file_aux
.
rel_path
()))
ret
.
append
(
"}"
)
ret
.
append
(
"endef"
)
ret
.
append
(
"export TCL_FILES"
)
self
.
writeln
(
'
\n
'
.
join
(
ret
))
...
...
@@ -103,8 +100,8 @@ class ToolIcestorm(ToolSyn):
if
constraints_file
==
None
:
logging
.
error
(
"No Arachne-pnr constraints file found!"
)
quit
()
tmp
=
self
.
_tcl_controls
[
"par"
]
self
.
_tcl_controls
[
"par"
]
=
tmp
.
format
(
par_
tmp
=
self
.
_tcl_controls
[
"par"
]
self
.
_tcl_controls
[
"par"
]
=
par_
tmp
.
format
(
syn_device
,
syn_package
,
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