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
18
Issues
18
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
41901efb
Commit
41901efb
authored
Sep 06, 2017
by
Tomasz Wlostowski
Committed by
Tristan Gingold
Sep 09, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wb_axi4lite_bridge: now conforms to AXI4 standard
parent
224ece82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
wb_axi4lite_bridge.vhd
modules/wishbone/wb_axi4lite_bridge/wb_axi4lite_bridge.vhd
+1
-1
xwb_axi4lite_bridge.vhd
modules/wishbone/wb_axi4lite_bridge/xwb_axi4lite_bridge.vhd
+10
-3
No files found.
modules/wishbone/wb_axi4lite_bridge/wb_axi4lite_bridge.vhd
View file @
41901efb
...
...
@@ -38,7 +38,7 @@ entity wb_axi4lite_bridge is
AWVALID
:
in
std_logic
;
BREADY
:
in
std_logic
;
RREADY
:
in
std_logic
;
WLAST
:
in
std_logic
;
WLAST
:
in
std_logic
:
=
'1'
;
WVALID
:
in
std_logic
;
ARADDR
:
in
std_logic_vector
(
31
downto
0
);
AWADDR
:
in
std_logic_vector
(
31
downto
0
);
...
...
modules/wishbone/wb_axi4lite_bridge/xwb_axi4lite_bridge.vhd
View file @
41901efb
...
...
@@ -130,6 +130,7 @@ begin
wb_master_o
.
stb
<=
'0'
;
if
(
wb_master_i
.
ack
=
'1'
)
then
state
<=
RESPONSE_WRITE
;
axi4_slave_o
.
BVALID
<=
'1'
;
axi4_slave_o
.
BRESP
<=
c_AXI4_RESP_EXOKAY
;
wb_master_o
.
cyc
<=
'0'
;
else
...
...
@@ -142,10 +143,12 @@ begin
when
WAIT_ACK_WRITE
=>
if
(
wb_master_i
.
ack
=
'1'
)
then
state
<=
RESPONSE_WRITE
;
axi4_slave_o
.
BVALID
<=
'1'
;
axi4_slave_o
.
BRESP
<=
c_AXI4_RESP_EXOKAY
;
wb_master_o
.
cyc
<=
'0'
;
elsif
count
=
c_timeout
then
state
<=
RESPONSE_WRITE
;
axi4_slave_o
.
BVALID
<=
'1'
;
axi4_slave_o
.
BRESP
<=
c_AXI4_RESP_SLVERR
;
wb_master_o
.
cyc
<=
'0'
;
end
if
;
...
...
@@ -153,14 +156,14 @@ begin
when
WAIT_ACK_READ
=>
if
(
wb_master_i
.
ack
=
'1'
)
then
state
<=
IDLE
;
state
<=
RESPONSE_READ
;
axi4_slave_o
.
RRESP
<=
c_AXI4_RESP_EXOKAY
;
axi4_slave_o
.
RVALID
<=
'1'
;
axi4_slave_o
.
RLAST
<=
'1'
;
axi4_slave_o
.
RDATA
<=
wb_master_i
.
dat
;
wb_master_o
.
cyc
<=
'0'
;
elsif
count
=
c_timeout
then
state
<=
IDLE
;
state
<=
RESPONSE_READ
;
axi4_slave_o
.
RRESP
<=
c_AXI4_RESP_SLVERR
;
axi4_slave_o
.
RVALID
<=
'1'
;
axi4_slave_o
.
RLAST
<=
'1'
;
...
...
@@ -172,11 +175,15 @@ begin
when
RESPONSE_WRITE
=>
if
(
axi4_slave_i
.
BREADY
=
'1'
)
then
axi4_slave_o
.
BVALID
<=
'
1
'
;
axi4_slave_o
.
BVALID
<=
'
0
'
;
state
<=
IDLE
;
end
if
;
when
RESPONSE_READ
=>
null
;
if
(
axi4_slave_i
.
RREADY
=
'1'
)
then
axi4_slave_o
.
RVALID
<=
'0'
;
state
<=
IDLE
;
end
if
;
end
case
;
...
...
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