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
4b361036
Commit
4b361036
authored
Apr 26, 2019
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
axi_gpio_expander: bugfix to allow using a subset of bank0
parent
9af7902f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
axi_gpio_expander.vhd
modules/axi/axi_gpio_expander.vhd
+4
-2
No files found.
modules/axi/axi_gpio_expander.vhd
View file @
4b361036
...
...
@@ -139,8 +139,10 @@ architecture behav of axi_gpio_expander is
variable
tmp
:
std_logic_vector
(
g_num
-1
downto
0
);
begin
tmp
:
=
orig
;
if
(
bank
=
0
)
then
tmp
(
31
downto
0
)
:
=
rdata
;
if
(
bank
=
0
and
g_num
>=
c_GPIOPS_BANK0
)
then
tmp
(
c_GPIOPS_BANK0
-1
downto
0
)
:
=
rdata
;
elsif
(
bank
=
0
and
g_num
<
c_GPIOPS_BANK0
)
then
tmp
:
=
rdata
(
g_num
-1
downto
0
);
else
tmp
(
g_num
-1
downto
c_GPIOPS_BANK0
)
:
=
rdata
(
g_num
-
c_GPIOPS_BANK0
-1
downto
0
);
end
if
;
...
...
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