Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wishbone-gen
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
wishbone-gen
Commits
bfe23ed8
Commit
bfe23ed8
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
45e99e8f
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 @
bfe23ed8
...
...
@@ -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 @
bfe23ed8
...
...
@@ -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