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
b01dd1bb
Commit
b01dd1bb
authored
Jan 27, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more special cases in PRD length tested
parent
e151f409
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
11 deletions
+13
-11
ahci_dma.v
ahci/ahci_dma.v
+1
-1
tb_ahci.tf
tb/tb_ahci.tf
+5
-3
tb_ahci_01.sav
tb_ahci_01.sav
+7
-7
No files found.
ahci/ahci_dma.v
View file @
b01dd1bb
...
@@ -447,7 +447,7 @@ module ahci_dma (
...
@@ -447,7 +447,7 @@ module ahci_dma (
if
(
prd_wr
)
qw_datawr_last
<=
qwcount
[
21
:
3
]
==
0
;
if
(
prd_wr
)
qw_datawr_last
<=
qwcount
[
21
:
3
]
==
0
;
/// else if (afi_wvalid) qw_datawr_last <= qw_datawr_burst == 1;
/// else if (afi_wvalid) qw_datawr_last <= qw_datawr_burst == 1;
else
if
(
afi_wvalid
)
qw_datawr_last
<=
(
qw_datawr_burst
==
1
)
||
(
qw_datawr_last
&&
!
(
|
qw_datawr_left
[
21
:
3
]
))
;
// last case - n*16 + 1 (last burst single)
else
if
(
afi_wvalid
)
qw_datawr_last
<=
(
qw_datawr_burst
==
1
)
||
(
qw_datawr_last
&&
(
qw_datawr_left
[
21
:
3
]
==
16
))
;
// last case - n*16 + 1 (last burst single)
if
(
prd_wr
)
qw_datawr_burst
<=
(
|
qwcount
[
21
:
7
])
?
4'hf
:
qwcount
[
6
:
3
]
;
if
(
prd_wr
)
qw_datawr_burst
<=
(
|
qwcount
[
21
:
7
])
?
4'hf
:
qwcount
[
6
:
3
]
;
/// else if (afi_wvalid && qw_datawr_last && (qw_datawr_left[21:7] == 0)) qw_datawr_burst <= qw_datawr_left[6:3]; // if not last roll over to 'hf
/// else if (afi_wvalid && qw_datawr_last && (qw_datawr_left[21:7] == 0)) qw_datawr_burst <= qw_datawr_left[6:3]; // if not last roll over to 'hf
...
...
tb/tb_ahci.tf
View file @
b01dd1bb
...
@@ -895,9 +895,11 @@ initial begin //Host
...
@@ -895,9 +895,11 @@ initial begin //Host
maxigp1_print (HBA_PORT__PxSSTS__DET__ADDR << 2,"HBA_PORT__PxSSTS__DET__ADDR");
maxigp1_print (HBA_PORT__PxSSTS__DET__ADDR << 2,"HBA_PORT__PxSSTS__DET__ADDR");
setup_pio_read_identify_command_simple(1); // prdt interrupt for entry 0
//
setup_pio_read_identify_command_simple(1); // prdt interrupt for entry 0
// setup_pio_read_identify_command_shifted(1); // prdt interrupt for entry 0
// setup_pio_read_identify_command_shifted(1); // prdt interrupt for entry 0
// setup_pio_read_identify_command_multi4(1,27,71,83); // prdt interrupt for entry 0
/// setup_pio_read_identify_command_multi4(1,27,71,83); // prdt interrupt for entry 0
/// setup_pio_read_identify_command_multi4(1,27,64,83); // prdt interrupt for entry 0
setup_pio_read_identify_command_multi4(1,64,63,64); // prdt interrupt for entry 0
maxigp1_print (HBA_PORT__PxCI__CI__ADDR << 2,"HBA_PORT__PxCI__CI__ADDR");
maxigp1_print (HBA_PORT__PxCI__CI__ADDR << 2,"HBA_PORT__PxCI__CI__ADDR");
maxigp1_writep (HBA_PORT__PxIE__PSE__ADDR << 2, HBA_PORT__PxIE__PSE__MASK); // allow PS only interrupts (PIO setup)
maxigp1_writep (HBA_PORT__PxIE__PSE__ADDR << 2, HBA_PORT__PxIE__PSE__MASK); // allow PS only interrupts (PIO setup)
...
...
tb_ahci_01.sav
View file @
b01dd1bb
[*]
[*]
[*] GTKWave Analyzer v3.3.66 (w)1999-2015 BSI
[*] GTKWave Analyzer v3.3.66 (w)1999-2015 BSI
[*] Wed Jan 27 20:
13:54
2016
[*] Wed Jan 27 20:
37:20
2016
[*]
[*]
[dumpfile] "/home/andrey/git/x393_sata/simulation/tb_ahci-2016012713
1132886
.fst"
[dumpfile] "/home/andrey/git/x393_sata/simulation/tb_ahci-2016012713
3150634
.fst"
[dumpfile_mtime] "Wed Jan 27 20:
12:0
1 2016"
[dumpfile_mtime] "Wed Jan 27 20:
32:2
1 2016"
[dumpfile_size] 3824
547
[dumpfile_size] 3824
683
[savefile] "/home/andrey/git/x393_sata/tb_ahci_01.sav"
[savefile] "/home/andrey/git/x393_sata/tb_ahci_01.sav"
[timestart] 2
470
4000
[timestart] 2
209
4000
[size] 1823 11
80
[size] 1823 11
73
[pos] 1994 0
[pos] 1994 0
*-1
6.995279 25103334
23903334 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
*-1
9.117058 23716667
23903334 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[treeopen] tb_ahci.
[treeopen] tb_ahci.
[treeopen] tb_ahci.dev.phy.
[treeopen] tb_ahci.dev.phy.
[treeopen] tb_ahci.dut.
[treeopen] tb_ahci.dut.
...
...
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