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
e90aa1e6
Commit
e90aa1e6
authored
7 years ago
by
Robert Jordens
Browse files
Options
Download
Email Patches
Plain Diff
Signal.like(): inherit more properties from other
parent
5ccee6c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
migen/fhdl/structure.py
migen/fhdl/structure.py
+5
-1
No files found.
migen/fhdl/structure.py
View file @
e90aa1e6
...
...
@@ -383,7 +383,11 @@ class Signal(_Value):
See `migen.fhdl.bitcontainer.value_bits_sign` for details.
"""
from
migen.fhdl.bitcontainer
import
value_bits_sign
return
cls
(
bits_sign
=
value_bits_sign
(
other
),
**
kwargs
)
kw
=
dict
(
bits_sign
=
value_bits_sign
(
other
),
variable
=
other
.
variable
,
reset
=
other
.
reset
,
reset_less
=
other
.
reset_less
,
related
=
other
.
related
,
attr
=
set
(
other
.
attr
))
kw
.
update
(
kwargs
)
return
cls
(
**
kwargs
)
def
__hash__
(
self
):
return
self
.
duid
...
...
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