Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
Gennum GN4124 core
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Gennum GN4124 core
Commits
d7a01602
Commit
d7a01602
authored
14 years ago
by
Matthieu Cattin
Browse files
Options
Downloads
Patches
Plain Diff
Clear stb when waiting for ack in CSR wishbone master
parent
35669405
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/gn4124core/rtl/wbmaster32.vhd
+9
-9
9 additions, 9 deletions
hdl/gn4124core/rtl/wbmaster32.vhd
with
9 additions
and
9 deletions
hdl/gn4124core/rtl/wbmaster32.vhd
+
9
−
9
View file @
d7a01602
...
...
@@ -83,15 +83,15 @@ entity wbmaster32 is
---------------------------------------------------------
-- CSR wishbone interface
wb_clk_i
:
in
std_logic
;
-- Wishbone bus clock
wb_clk_i
:
in
std_logic
;
-- Wishbone bus clock
wb_adr_o
:
out
std_logic_vector
(
g_BAR0_APERTURE
-
log2_ceil
(
g_WB_SLAVES_NB
)
-1
downto
0
);
-- Address
wb_dat_o
:
out
std_logic_vector
(
31
downto
0
);
-- Data out
wb_sel_o
:
out
std_logic_vector
(
3
downto
0
);
-- Byte select
wb_stb_o
:
out
std_logic
;
-- Strobe
wb_we_o
:
out
std_logic
;
-- Write
wb_cyc_o
:
out
std_logic_vector
(
g_WB_SLAVES_NB
-1
downto
0
);
-- Cycle
wb_dat_i
:
in
std_logic_vector
((
32
*
g_WB_SLAVES_NB
)
-1
downto
0
);
-- Data in
wb_ack_i
:
in
std_logic_vector
(
g_WB_SLAVES_NB
-1
downto
0
)
-- Acknowledge
wb_dat_o
:
out
std_logic_vector
(
31
downto
0
);
-- Data out
wb_sel_o
:
out
std_logic_vector
(
3
downto
0
);
-- Byte select
wb_stb_o
:
out
std_logic
;
-- Strobe
wb_we_o
:
out
std_logic
;
-- Write
wb_cyc_o
:
out
std_logic_vector
(
g_WB_SLAVES_NB
-1
downto
0
);
-- Cycle
wb_dat_i
:
in
std_logic_vector
((
32
*
g_WB_SLAVES_NB
)
-1
downto
0
);
-- Data in
wb_ack_i
:
in
std_logic_vector
(
g_WB_SLAVES_NB
-1
downto
0
)
-- Acknowledge
);
end
wbmaster32
;
...
...
@@ -388,6 +388,7 @@ begin
wishbone_current_state
<=
WB_WAIT_ACK
;
when
WB_WAIT_ACK
=>
wb_stb_t
<=
'0'
;
if
(
wb_ack_t
=
'1'
)
then
-- for read cycles write read data to fifo
if
(
wb_we_t
=
'0'
)
then
...
...
@@ -395,7 +396,6 @@ begin
from_wb_fifo_wr
<=
'1'
;
end
if
;
-- end of the bus cycle
wb_stb_t
<=
'0'
;
wb_cyc_t
<=
'0'
;
wishbone_current_state
<=
WB_IDLE
;
end
if
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment