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
38242bac
Commit
38242bac
authored
Oct 29, 2019
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify code, determinism.
parent
6de42805
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
8 deletions
+7
-8
srcfile.py
hdlmake/sourcefiles/srcfile.py
+6
-7
makefilevsim.py
hdlmake/tools/makefilevsim.py
+1
-1
No files found.
hdlmake/sourcefiles/srcfile.py
View file @
38242bac
...
@@ -326,15 +326,14 @@ def create_source_file(path, module, library=None,
...
@@ -326,15 +326,14 @@ def create_source_file(path, module, library=None,
include_dirs
=
None
,
is_include
=
False
):
include_dirs
=
None
,
is_include
=
False
):
"""Function that analyzes the given arguments and returns a new HDL source
"""Function that analyzes the given arguments and returns a new HDL source
file of the appropriated type"""
file of the appropriated type"""
if
path
is
None
or
path
==
""
:
assert
path
raise
RuntimeError
(
"Expected a file path, got: "
+
str
(
path
)
)
assert
os
.
path
.
isabs
(
path
)
if
not
os
.
path
.
isabs
(
path
):
_
,
extension
=
os
.
path
.
splitext
(
path
)
path
=
os
.
path
.
abspath
(
path
)
assert
extension
[
0
]
==
'.'
tmp
=
path
.
rsplit
(
'.'
)
# Remove '.'
extension
=
tmp
[
len
(
tmp
)
-
1
]
extension
=
extension
[
1
:
]
logging
.
debug
(
"add file "
+
path
)
logging
.
debug
(
"add file "
+
path
)
new_file
=
None
if
extension
in
[
'vhd'
,
'vhdl'
,
'vho'
]:
if
extension
in
[
'vhd'
,
'vhdl'
,
'vho'
]:
new_file
=
VHDLFile
(
path
=
path
,
new_file
=
VHDLFile
(
path
=
path
,
module
=
module
,
module
=
module
,
...
...
hdlmake/tools/makefilevsim.py
View file @
38242bac
...
@@ -105,7 +105,7 @@ class MakefileVsim(MakefileSim):
...
@@ -105,7 +105,7 @@ class MakefileVsim(MakefileSim):
# tell how to make libraries
# tell how to make libraries
self
.
write
(
'LIB_IND := '
)
self
.
write
(
'LIB_IND := '
)
self
.
write
(
' '
.
join
([
lib
+
shell
.
makefile_slash_char
()
+
self
.
write
(
' '
.
join
([
lib
+
shell
.
makefile_slash_char
()
+
"."
+
lib
for
lib
in
libs
]))
"."
+
lib
for
lib
in
sorted
(
libs
)
]))
self
.
write
(
'
\n
'
)
self
.
write
(
'
\n
'
)
self
.
writeln
()
self
.
writeln
()
self
.
writeln
(
self
.
writeln
(
...
...
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