Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
14
Issues
14
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
Platform-independent core collection
Commits
c590dfac
Commit
c590dfac
authored
Aug 15, 2017
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lm32: fix strip_undefined function for Vivado
Fix it the same way as f_x_to_zero() is fixed in wbgen.
parent
36f62c0a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
gen_lmcores.py
modules/wishbone/wb_lm32/gen_lmcores.py
+3
-3
xwb_lm32.vhd
modules/wishbone/wb_lm32/generated/xwb_lm32.vhd
+3
-3
No files found.
modules/wishbone/wb_lm32/gen_lmcores.py
View file @
c590dfac
...
...
@@ -241,10 +241,10 @@ architecture rtl of xwb_lm32 is \n""");
variable tmp : std_logic_vector(x'left downto 0);
begin
for i in 0 to x'left loop
if(x(i)='
X' or x(i)='U' or x(i)='Z
') then
tmp(i) := '
0
';
if(x(i)='
1
') then
tmp(i) := '
1
';
else
tmp(i) :=
x(i)
;
tmp(i) :=
'0'
;
end if;
end loop; -- i
return tmp;
...
...
modules/wishbone/wb_lm32/generated/xwb_lm32.vhd
View file @
c590dfac
...
...
@@ -348,10 +348,10 @@ end component;
variable
tmp
:
std_logic_vector
(
x
'left
downto
0
);
begin
for
i
in
0
to
x
'left
loop
if
(
x
(
i
)
=
'
X'
or
x
(
i
)
=
'U'
or
x
(
i
)
=
'Z
'
)
then
tmp
(
i
)
:
=
'
0
'
;
if
(
x
(
i
)
=
'
1
'
)
then
tmp
(
i
)
:
=
'
1
'
;
else
tmp
(
i
)
:
=
x
(
i
)
;
tmp
(
i
)
:
=
'0'
;
end
if
;
end
loop
;
-- i
return
tmp
;
...
...
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