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
aaa3f33b
Commit
aaa3f33b
authored
14 years ago
by
Matthieu Cattin
Browse files
Options
Downloads
Patches
Plain Diff
Fix bug in packet generator
parent
5bfa00e9
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/l2p_dma_master.vhd
+11
-6
11 additions, 6 deletions
hdl/gn4124core/rtl/l2p_dma_master.vhd
with
11 additions
and
6 deletions
hdl/gn4124core/rtl/l2p_dma_master.vhd
+
11
−
6
View file @
aaa3f33b
...
...
@@ -262,7 +262,7 @@ begin
else
l2p_len_cnt
<=
(
others
=>
'0'
);
end
if
;
elsif
(
l2p_dma_current_state
=
L2P_DATA
)
then
elsif
(
l2p_dma_current_state
=
L2P_DATA
and
data_fifo_valid
=
'1'
)
then
l2p_data_cnt
<=
l2p_data_cnt
-
1
;
elsif
(
l2p_last_packet
=
'0'
and
l2p_dma_current_state
=
L2P_LAST_DATA
)
then
-- load the host address of the next packet
...
...
@@ -382,9 +382,14 @@ begin
end
if
;
when
L2P_DATA
=>
-- send data with byte swap if requested
ldm_arb_data_o
<=
f_byte_swap
(
g_BYTE_SWAP
,
data_fifo_dout
,
l2p_byte_swap
);
ldm_arb_valid_o
<=
'1'
;
if
(
data_fifo_valid
=
'1'
)
then
-- send data with byte swap if requested
ldm_arb_data_o
<=
f_byte_swap
(
g_BYTE_SWAP
,
data_fifo_dout
,
l2p_byte_swap
);
ldm_arb_valid_o
<=
'1'
;
else
ldm_arb_valid_o
<=
'0'
;
end
if
;
if
(
dma_ctrl_abort_i
=
'1'
)
then
l2p_edb_o
<=
'1'
;
l2p_dma_current_state
<=
L2P_IDLE
;
...
...
@@ -425,7 +430,7 @@ begin
when
L2P_WAIT_DATA
=>
ldm_arb_valid_o
<=
'0'
;
if
(
data_fifo_empty
=
'0'
)
then
if
(
l2p_data_cnt
<=
2
)
then
if
(
l2p_data_cnt
<=
1
)
then
-- Only one 32-bit data word to send
l2p_dma_current_state
<=
L2P_LAST_DATA
;
-- Stop reading from fifo
...
...
@@ -544,7 +549,7 @@ begin
l2p_dma_adr_o
<=
addr_fifo_dout
;
end
if
;
-- stb and sel signals management
if
(
addr_fifo_valid
=
'1'
)
then
--or (l2p_dma_stall_i = '1' and l2p_dma_stb_t = '1') then
if
(
addr_fifo_valid
=
'1'
)
then
--or (l2p_dma_stall_i = '1' and l2p_dma_stb_t = '1') then
l2p_dma_stb_t
<=
'1'
;
l2p_dma_sel_o
<=
(
others
=>
'1'
);
else
...
...
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