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
a9445efc
Commit
a9445efc
authored
Mar 05, 2012
by
Paweł Szostek
Committed by
Tomasz Wlostowski
Jul 30, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ultimate no-modelsim-bug solution
Conflicts: hdlmake src/flow.py src/srcfile.py
parent
f6147b13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
flow.py
src/flow.py
+7
-0
srcfile.py
src/srcfile.py
+13
-3
No files found.
src/flow.py
View file @
a9445efc
...
...
@@ -22,9 +22,15 @@
import
xml.dom.minidom
as
xml
import
msg
as
p
import
global_mod
xmlimpl
=
xml
.
getDOMImplementation
()
ISE_STANDARD_LIBS
=
[
'ieee'
,
'ieee_proposed'
,
'iSE'
,
'simprims'
,
'std'
,
'synopsys'
,
'unimacro'
,
'unisim'
,
'XilinxCoreLib'
]
QUARTUS_STANDARD_LIBS
=
[
'altera'
,
'altera_mf'
,
'lpm'
,
'ieee'
,
'std'
]
MODELSIM_STANDARD_LIBS
=
[
'ieee'
,
'std'
]
class
ISEProjectProperty
:
def
__init__
(
self
,
name
,
value
,
is_default
=
False
):
self
.
name
=
name
...
...
@@ -271,6 +277,7 @@ class ISEProject:
top_element
.
appendChild
(
version
)
class
ModelsiminiReader
(
object
):
def
__init__
(
self
,
path
=
None
):
if
path
==
None
:
path
=
self
.
modelsim_ini_dir
()
+
"/modelsim.ini"
...
...
src/srcfile.py
View file @
a9445efc
...
...
@@ -21,6 +21,8 @@
from
dep_solver
import
IDependable
import
os
import
msg
as
p
import
global_mod
import
flow
class
File
(
object
):
def
__init__
(
self
,
path
):
...
...
@@ -127,10 +129,18 @@ class VHDLFile(SourceFile):
non-standard library a tuple (lib, file) is returned in a list.
"""
import
re
from
flow
import
ModelsiminiReader
std_libs
=
ModelsiminiReader
()
.
get_libraries
()
if
global_mod
.
top_module
.
action
==
"simulation"
:
try
:
std_libs
=
flow
.
ModelsiminiReader
()
.
get_libraries
()
except
RuntimeError
:
std_libs
=
flow
.
MODELSIM_STANDARD_LIBS
elif
global_mod
.
top_module
.
action
==
"synthesis"
:
if
global_mod
.
top_module
.
target
==
"xilinx"
:
std_libs
=
flow
.
ISE_STANDARD_LIBS
elif
global_mod
.
top_module
.
target
==
"altera"
:
std_libs
=
flow
.
MODELSIM_STANDARD_LIBS
import
re
f
=
open
(
self
.
path
,
"r"
)
try
:
text
=
f
.
readlines
()
...
...
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