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
1bf7a3bf
Commit
1bf7a3bf
authored
Mar 09, 2015
by
Benoit Rat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
c_headers: correct small bug when fixedpoint is equal to size of field
parent
e0ce14ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cgen_c_headers.lua
cgen_c_headers.lua
+1
-1
wbgen2
wbgen2
+1
-1
No files found.
cgen_c_headers.lua
View file @
1bf7a3bf
...
...
@@ -26,7 +26,7 @@ function cgen_c_field_define(field, reg, index)
prefix
=
string.upper
(
periph
.
c_prefix
)
..
"_"
..
string.upper
(
reg
.
c_prefix
)
..
"_"
..
string.upper
(
field
.
c_prefix
);
end
if
(
field
.
nbfp
==
nil
or
field
.
nbfp
>
=
field
.
size
-
1
)
then
if
(
field
.
nbfp
==
nil
or
field
.
nbfp
>
field
.
size
)
then
field
.
nbfp
=
0
;
end
...
...
wbgen2
View file @
1bf7a3bf
...
...
@@ -1852,7 +1852,7 @@ return;
else
t
=
string.upper
(
periph
.
c_prefix
)
..
"_"
..
string.upper
(
a
.
c_prefix
)
..
"_"
..
string.upper
(
e
.
c_prefix
);
end
if
(
e
.
nbfp
==
nil
or
e
.
nbfp
>=
e
.
size
-
1
)
then
if
(
e
.
nbfp
==
nil
or
e
.
nbfp
>=
e
.
size
)
then
e
.
nbfp
=
0
;
end
emit
(
""
);
...
...
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