Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
Wishbone slave generator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
24
Issues
24
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Wishbone slave generator
Commits
9c7e6c41
Commit
9c7e6c41
authored
Jun 26, 2012
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C headers : add RAM base address define
parent
04a79f31
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
cgen_c_headers.lua
cgen_c_headers.lua
+1
-0
No files found.
cgen_c_headers.lua
View file @
9c7e6c41
...
...
@@ -57,6 +57,7 @@ function cgen_c_ramdefs(ram)
emit
(
"/* definitions for RAM: "
..
ram
.
name
..
" */"
);
emit
(
string.format
(
"#define "
..
prefix
..
"_BASE 0x%08x %-50s"
,
ram
.
base
*
DATA_BUS_WIDTH
/
8
,
"/* base address */"
));
emit
(
string.format
(
"#define "
..
prefix
..
"_BYTES 0x%08x %-50s"
,
ram
.
size
*
ram
.
width
/
8
,
"/* size in bytes */"
));
emit
(
string.format
(
"#define "
..
prefix
..
"_WORDS 0x%08x %-50s"
,
ram
.
size
,
"/* size in "
..
ram
.
width
..
"-bit words, 32-bit aligned */"
));
end
...
...
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