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
fab02f84
Commit
fab02f84
authored
12 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Download
Email Patches
Plain Diff
fhdl: fix implicit slice index
parent
82f77180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
migen/fhdl/structure.py
migen/fhdl/structure.py
+2
-0
No files found.
migen/fhdl/structure.py
View file @
fab02f84
...
@@ -72,6 +72,8 @@ class Value:
...
@@ -72,6 +72,8 @@ class Value:
elif
isinstance
(
key
,
slice
):
elif
isinstance
(
key
,
slice
):
start
=
key
.
start
or
0
start
=
key
.
start
or
0
stop
=
key
.
stop
or
self
.
bv
.
width
stop
=
key
.
stop
or
self
.
bv
.
width
if
stop
>
self
.
bv
.
width
:
stop
=
self
.
bv
.
width
if
key
.
step
!=
None
:
if
key
.
step
!=
None
:
raise
KeyError
raise
KeyError
return
Slice
(
self
,
start
,
stop
)
return
Slice
(
self
,
start
,
stop
)
...
...
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