Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
litex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jonathan Currier
litex
Commits
a48858f8
Unverified
Commit
a48858f8
authored
May 30, 2019
by
enjoy-digital
Committed by
GitHub
May 30, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #188 from gsomlo/gls-csr-cleanup
Miscellaneous cleanup patches
parents
08a811b1
273a3ea1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
litex/soc/integration/cpu_interface.py
litex/soc/integration/cpu_interface.py
+3
-6
No files found.
litex/soc/integration/cpu_interface.py
View file @
a48858f8
...
...
@@ -140,12 +140,9 @@ def get_csr_header(regions, constants, with_access_functions=True, with_shadow_b
for
name
,
origin
,
busword
,
obj
in
regions
:
if
not
with_shadow_base
:
origin
&=
(
~
shadow_base
)
if
isinstance
(
obj
,
Memory
):
r
+=
"
\
n
/* "
+
name
+
" */
\
n
"
r
+=
"#define CSR_"
+
name
.
upper
()
+
"_BASE "
+
hex
(
origin
)
+
"L
\
n
"
else
:
r
+=
"
\
n
/* "
+
name
+
" */
\
n
"
r
+=
"#define CSR_"
+
name
.
upper
()
+
"_BASE "
+
hex
(
origin
)
+
"L
\
n
"
r
+=
"
\
n
/* "
+
name
+
" */
\
n
"
r
+=
"#define CSR_"
+
name
.
upper
()
+
"_BASE "
+
hex
(
origin
)
+
"L
\
n
"
if
not
isinstance
(
obj
,
Memory
):
for
csr
in
obj
:
nr
=
(
csr
.
size
+
busword
-
1
)
//
busword
r
+=
_get_rw_functions_c
(
name
+
"_"
+
csr
.
name
,
origin
,
nr
,
busword
,
isinstance
(
csr
,
CSRStatus
),
with_access_functions
)
...
...
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