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
fa3045f0
Commit
fa3045f0
authored
Apr 09, 2014
by
Pawel Szostek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert project.vhd data according to t_sdb_synthesis
parent
b0ccccc6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
ise_project.py
hdlmake/action/ise_project.py
+14
-2
No files found.
hdlmake/action/ise_project.py
View file @
fa3045f0
...
@@ -52,6 +52,10 @@ class GenerateISEProject(Action):
...
@@ -52,6 +52,10 @@ class GenerateISEProject(Action):
else
:
else
:
logging
.
info
(
"Generating project for ISE v.
%
s"
%
env
[
"ise_version"
])
logging
.
info
(
"Generating project for ISE v.
%
s"
%
env
[
"ise_version"
])
def
_to_bcd
(
self
,
integer
):
assert
integer
>=
0
and
integer
<=
0
def
run
(
self
):
def
run
(
self
):
self
.
_check_all_fetched_or_quit
()
self
.
_check_all_fetched_or_quit
()
logging
.
info
(
"Generating/updating ISE project file."
)
logging
.
info
(
"Generating/updating ISE project file."
)
...
@@ -126,7 +130,7 @@ package sdb_meta_pkg is
...
@@ -126,7 +130,7 @@ package sdb_meta_pkg is
-- Synthesis tool version (bcd encoded, 32-bit)
-- Synthesis tool version (bcd encoded, 32-bit)
syn_tool_version => "$syn_tool_version",
syn_tool_version => "$syn_tool_version",
-- Synthesis date (bcd encoded, 32-bit)
-- Synthesis date (bcd encoded, 32-bit)
syn_date =>
x
"$syn_date",
syn_date => "$syn_date",
-- Synthesised by (string, 15 char)
-- Synthesised by (string, 15 char)
syn_username => "$syn_username");
syn_username => "$syn_username");
...
@@ -136,12 +140,20 @@ package body sdb_meta_pkg is
...
@@ -136,12 +140,20 @@ package body sdb_meta_pkg is
end sdb_meta_pkg;"""
)
end sdb_meta_pkg;"""
)
project_vhd
=
open
(
"project.vhd"
,
'w'
)
project_vhd
=
open
(
"project.vhd"
,
'w'
)
date_std_logic_vector
=
[]
import
re
for
digit
in
date_string
:
date_std_logic_vector
.
append
(
"{0:b}"
.
format
(
digit
))
syn_tool_version
=
global_mod
.
env
[
"ise_version"
]
syn_tool_version
=
re
.
sub
(
"
\
D"
,
""
,
syn_tool_version
)
filled_template
=
template
.
substitute
(
repo_url
=
global_mod
.
top_module
.
url
,
filled_template
=
template
.
substitute
(
repo_url
=
global_mod
.
top_module
.
url
,
syn_module_name
=
global_mod
.
top_module
.
top_module
,
syn_module_name
=
global_mod
.
top_module
.
top_module
,
syn_commit_id
=
global_mod
.
top_module
.
revision
,
syn_commit_id
=
global_mod
.
top_module
.
revision
,
syn_tool_name
=
"ISE"
,
syn_tool_name
=
"ISE"
,
syn_tool_version
=
global_mod
.
env
[
"ise_version"
],
syn_tool_version
=
global_mod
.
env
[
"ise_version"
],
syn_date
=
date_string
,
syn_date
=
''
.
join
(
date_std_logic_vector
)
,
syn_username
=
getpass
.
getuser
())
syn_username
=
getpass
.
getuser
())
project_vhd
.
write
(
filled_template
)
project_vhd
.
write
(
filled_template
)
project_vhd
.
close
()
project_vhd
.
close
()
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