Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
483b8213
Commit
483b8213
authored
11 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
fhdl/structure: do not create Signal in Instance when parameter is int
parent
62187aa2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
migen/fhdl/structure.py
migen/fhdl/structure.py
+4
-5
No files found.
migen/fhdl/structure.py
View file @
483b8213
...
...
@@ -242,12 +242,11 @@ class Instance(HUID):
self
.
items
=
items
class
_IO
:
def
__init__
(
self
,
name
,
expr
=
1
):
def
__init__
(
self
,
name
,
expr
=
None
):
self
.
name
=
name
if
isinstance
(
expr
,
(
int
,
tuple
)):
self
.
expr
=
Signal
(
expr
,
name
)
else
:
self
.
expr
=
expr
if
expr
is
None
:
expr
=
Signal
()
self
.
expr
=
expr
class
Input
(
_IO
):
pass
class
Output
(
_IO
):
...
...
This diff is collapsed.
Click to expand it.
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