projects
/
soc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Actually forward the field width to field_slice()
[soc.git]
/
src
/
soc
/
consts.py
diff --git
a/src/soc/consts.py
b/src/soc/consts.py
index d555e55b4824deec060581afc5cdf1b5961849e3..108a730d5db8d47d7c7267104af3167b4a9efc24 100644
(file)
--- a/
src/soc/consts.py
+++ b/
src/soc/consts.py
@@
-77,7
+77,7
@@
def field(r, msb0_start, msb0_end=None, field_width=64):
if msb0_end is None:
return r[(field_width - 1) - msb0_start]
else:
- return r[field_slice(msb0_start, msb0_end)]
+ return r[field_slice(msb0_start, msb0_end
, field_width
)]
def sel(r, sel_bits, field_width=None):