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
b6763c28
Commit
b6763c28
authored
12 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
constant: equality
parent
7b395b56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
migen/fhdl/structure.py
migen/fhdl/structure.py
+3
-0
No files found.
migen/fhdl/structure.py
View file @
b6763c28
...
@@ -121,6 +121,9 @@ class Constant(Value):
...
@@ -121,6 +121,9 @@ class Constant(Value):
def
__repr__
(
self
):
def
__repr__
(
self
):
return
str
(
self
.
bv
)
+
str
(
self
.
n
)
return
str
(
self
.
bv
)
+
str
(
self
.
n
)
def
__eq__
(
self
,
other
):
return
self
.
bv
==
other
.
bv
and
self
.
n
==
other
.
n
def
_cst
(
x
):
def
_cst
(
x
):
if
isinstance
(
x
,
int
):
if
isinstance
(
x
,
int
):
...
...
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