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
2
Merge Requests
2
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
573ef26e
Commit
573ef26e
authored
Oct 29, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve coverage of libero.
parent
4ebfaf4f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
sourcefileset.py
hdlmake/sourcefiles/sourcefileset.py
+1
-1
libero.py
hdlmake/tools/libero.py
+1
-1
Makefile.ref
testsuite/013libero/Makefile.ref
+5
-1
Manifest.py
testsuite/013libero/Manifest.py
+1
-4
No files found.
hdlmake/sourcefiles/sourcefileset.py
View file @
573ef26e
...
...
@@ -59,5 +59,5 @@ class SourceFileSet(set):
def
sort
(
self
):
"""Return a sorted list of the fileset. This is useful to have always
the same output"""
return
sorted
(
self
,
key
=
(
lambda
x
:
x
.
file_
path
))
return
sorted
(
self
,
key
=
(
lambda
x
:
x
.
path
))
hdlmake/tools/libero.py
View file @
573ef26e
...
...
@@ -94,7 +94,7 @@ class ToolLibero(MakefileSyn):
compilation_constraints
=
[]
ret
=
[]
# First stage: linking files
for
file_aux
in
self
.
fileset
:
for
file_aux
in
self
.
fileset
.
sort
()
:
if
isinstance
(
file_aux
,
SDCFile
):
synthesis_constraints
.
append
(
file_aux
)
compilation_constraints
.
append
(
file_aux
)
...
...
testsuite/013libero/Makefile.ref
View file @
573ef26e
...
...
@@ -34,9 +34,13 @@ SOURCES_VHDLFile := \
SOURCES_SDCFile
:=
\
syn.sdc
SOURCES_PDCFile
:=
\
comp.pdc
files.tcl
:
@
$
(
foreach sourcefile,
$(SOURCES_VHDLFile)
,
echo
"create_links -hdl_source
$(sourcefile)
"
>>
$@
&
)
@
$
(
foreach sourcefile,
$(SOURCES_SDCFile)
,
echo
"create_links -sdc
$(sourcefile)
"
>>
$@
&
)
@
$
(
foreach sourcefile,
$(SOURCES_PDCFile)
,
echo
"create_links -pdc
$(sourcefile)
"
>>
$@
&
)
SYN_PRE_PROJECT_CMD
:=
SYN_POST_PROJECT_CMD
:=
...
...
@@ -48,7 +52,7 @@ project.tcl:
echo
$(TCL_CREATE)
>>
$@
echo source
files.tcl
>>
$@
echo
organize_tool_files
-tool
{
SYNTHESIZE
}
-file
{
syn.sdc
}
-module
{
$(TOP_MODULE)
::work
}
-input_type
{
constraint
}
>>
$@
echo
organize_tool_files
-tool
{
COMPILE
}
-file
{
syn.sdc
}
-module
{
$(TOP_MODULE)
::work
}
-input_type
{
constraint
}
>>
$@
echo
organize_tool_files
-tool
{
COMPILE
}
-file
{
comp.pdc
}
-file
{
syn.sdc
}
-module
{
$(TOP_MODULE)
::work
}
-input_type
{
constraint
}
>>
$@
echo
set_root
-module
{
$(TOP_MODULE)
::work
}
>>
$@
echo
$(TCL_SAVE)
>>
$@
echo
$(TCL_CLOSE)
>>
$@
...
...
testsuite/013libero/Manifest.py
View file @
573ef26e
...
...
@@ -8,7 +8,4 @@ syn_project="gate"
top_module
=
"gate"
# Not reliable.
#files = [ "../files/gate.vhdl", "syn.sdc", "comp.pdc" ]
files
=
[
"../files/gate.vhdl"
,
"syn.sdc"
]
files
=
[
"../files/gate.vhdl"
,
"syn.sdc"
,
"comp.pdc"
]
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