Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Platform-independent core collection
Manage
Activity
Members
Labels
Plan
Issues
15
Issue boards
Milestones
Wiki
Code
Merge requests
5
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
Platform-independent core collection
Commits
19138543
Commit
19138543
authored
10 years ago
by
Wesley W. Terpstra
Browse files
Options
Downloads
Patches
Plain Diff
xwb_clock_crossing: support FIFO back-pressure on acks
Sometimes a master needs to stop the flow of acks.
parent
9dcdd6fd
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/wishbone/wb_clock_crossing/xwb_clock_crossing.vhd
+6
-2
6 additions, 2 deletions
modules/wishbone/wb_clock_crossing/xwb_clock_crossing.vhd
modules/wishbone/wishbone_pkg.vhd
+4
-1
4 additions, 1 deletion
modules/wishbone/wishbone_pkg.vhd
with
10 additions
and
3 deletions
modules/wishbone/wb_clock_crossing/xwb_clock_crossing.vhd
+
6
−
2
View file @
19138543
...
...
@@ -19,7 +19,10 @@ entity xwb_clock_crossing is
master_clk_i
:
in
std_logic
;
master_rst_n_i
:
in
std_logic
;
master_i
:
in
t_wishbone_master_in
;
master_o
:
out
t_wishbone_master_out
);
master_o
:
out
t_wishbone_master_out
;
-- Flow control back-channel for acks
slave_ready_o
:
out
std_logic
;
slave_stall_i
:
in
std_logic
);
end
xwb_clock_crossing
;
architecture
rtl
of
xwb_clock_crossing
is
...
...
@@ -192,7 +195,8 @@ begin
ssend
.
DAT
<=
master_i
.
DAT
;
-- Slave clock domain: sFIFO -> slave
sr_en
<=
not
sr_empty
;
slave_ready_o
<=
not
sr_empty
;
sr_en
<=
not
sr_empty
and
not
slave_stall_i
;
slave_o
.
DAT
<=
srecv
.
DAT
;
slave_o
.
ACK
<=
srecv
.
ACK
and
slave_o_PUSH
;
slave_o
.
RTY
<=
srecv
.
RTY
and
slave_o_PUSH
;
...
...
This diff is collapsed.
Click to expand it.
modules/wishbone/wishbone_pkg.vhd
+
4
−
1
View file @
19138543
...
...
@@ -414,7 +414,10 @@ package wishbone_pkg is
master_clk_i
:
in
std_logic
;
master_rst_n_i
:
in
std_logic
;
master_i
:
in
t_wishbone_master_in
;
master_o
:
out
t_wishbone_master_out
);
master_o
:
out
t_wishbone_master_out
;
-- Flow control back-channel for acks
slave_ready_o
:
out
std_logic
;
slave_stall_i
:
in
std_logic
:
=
'0'
);
end
component
;
-- g_size is in words
...
...
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