Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
x393_sata
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
x393_sata
Commits
b7a097b9
Commit
b7a097b9
authored
Jan 04, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished initial code ahci_dma.v, no command abort yet
parent
9c004cf3
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
185 additions
and
72 deletions
+185
-72
ahci_dma.v
utils/ahci_dma.v
+182
-70
ahci_dma_wr_fifo.v
utils/ahci_dma_wr_fifo.v
+3
-2
No files found.
utils/ahci_dma.v
View file @
b7a097b9
This diff is collapsed.
Click to expand it.
utils/ahci_dma_wr_fifo.v
View file @
b7a097b9
...
@@ -36,7 +36,7 @@ module ahci_dma_wr_fifo#(
...
@@ -36,7 +36,7 @@ module ahci_dma_wr_fifo#(
input
init
,
// initializes cross-clock 32->64 FIFO, disables FIFO read until confirmed back form mclk domain
input
init
,
// initializes cross-clock 32->64 FIFO, disables FIFO read until confirmed back form mclk domain
input
start
,
// start transfer
input
start
,
// start transfer
output
reg
[
63
:
0
]
dout
,
// allow only each 3-rd wr if not many
output
reg
[
63
:
0
]
dout
,
// allow only each 3-rd wr if not many
input
dout_av
,
// at least one QWORD space avaiable in AXI FIFO
//
input dout_av, // at least one QWORD space avaiable in AXI FIFO
input
dout_av_many
,
// several QWORD space avaiable in AXI FIFO
input
dout_av_many
,
// several QWORD space avaiable in AXI FIFO
input
last_prd
,
// last prd, flush partial dword if there were odd number of words transferred. valid @ start
input
last_prd
,
// last prd, flush partial dword if there were odd number of words transferred. valid @ start
// Or maybe use "last_prd"?
// Or maybe use "last_prd"?
...
@@ -107,7 +107,8 @@ module ahci_dma_wr_fifo#(
...
@@ -107,7 +107,8 @@ module ahci_dma_wr_fifo#(
(
!
wcntr
[
0
]
&&
(
&
swl
[
1
:
0
]))
)
;
(
!
wcntr
[
0
]
&&
(
&
swl
[
1
:
0
]))
)
;
wire
done_w
=
dout_we_w
&&
last_qword
;
wire
done_w
=
dout_we_w
&&
last_qword
;
wire
axi_ready
=
dout_av
&&
(
dout_av_many
||
(
!
dout_we_r
))
;
// wire axi_ready = dout_av && (dout_av_many || (!dout_we_r));
wire
axi_ready
=
dout_av_many
;
wire
fifo_out_ready
=
en_fifo_rd
&&
(
!
need_fifo
||
(
fifo_dav
&&
(
fifo_dav2
||
!
fifo_rd_r
)))
;
wire
fifo_out_ready
=
en_fifo_rd
&&
(
!
need_fifo
||
(
fifo_dav
&&
(
fifo_dav2
||
!
fifo_rd_r
)))
;
...
...
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