Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Gateware
Commits
bddcfc8c
Commit
bddcfc8c
authored
Jan 03, 2013
by
Adrian Byszuk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix testbench not starting mult-desc usDMA case
parent
2733e2db
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
162 additions
and
17 deletions
+162
-17
Test01.wcfg
hdl/testbench/pcie/Test01.wcfg
+156
-0
tf64_pcie_axi.v
hdl/testbench/pcie/tf64_pcie_axi.v
+6
-17
No files found.
hdl/testbench/pcie/Test01.wcfg
View file @
bddcfc8c
This diff is collapsed.
Click to expand it.
hdl/testbench/pcie/tf64_pcie_axi.v
View file @
bddcfc8c
...
...
@@ -693,6 +693,7 @@ begin
board
.
CplD_Index
=
board
.
CplD_Index
+
board
.
Rx_TLP_Length
;
end
TSK_TX_CLK_EAT
(
50
)
;
//wait a bit to distinguish payloads in waveform dump
// feeding the payload CplD (2nd descriptor)
$
display
(
"%d ns: feeding the payload CplD (2nd descriptor)"
,
$
time
)
;
...
...
@@ -767,23 +768,9 @@ begin
$
display
(
"
\n
%d ns: >DMA Read"
,
$
time
)
;
board
.
DMA_us_is_Last
=
'
B0
;
dword_pack_data_store
(
0
,
0
)
;
dword_pack_data_store
(
board
.
DMA_PA
[
31
:
00
]
,
1
)
;
dword_pack_data_store
(
board
.
DMA_HA
[
63
:
32
]
,
2
)
;
// 0
dword_pack_data_store
(
board
.
DMA_HA
[
31
:
00
]
,
3
)
;
dword_pack_data_store
(
board
.
DMA_BDA
[
63
:
32
]
,
4
)
;
// 0
dword_pack_data_store
(
board
.
DMA_BDA
[
31
:
00
]
+
'
H10000
,
5
)
;
dword_pack_data_store
(
board
.
DMA_L1
,
6
)
;
dword_pack_data_store
(
{
4
'
H0
,
3
'
H1
,
board
.
DMA_us_is_Last
,
3
'
H0
,
1
'
B1
,
1
'
B0
,
board
.
DMA_bar
,
1
'
B1
,
15
'
H0
},
7
)
;
board
.
Rx_TLP_Length
=
'
H01
;
board
.
Hdr_Array
[
0
]
=
`HEADER0_MWR3_
|
board
.
Rx_TLP_Length
[
9
:
0
]
;
board
.
Hdr_Array
[
1
]
=
{
`C_HOST_WRREQ_ID
,
board
.
Rx_MWr_Tag
,
4
'
Hf
,
4
'
Hf
};
board
.
Hdr_Array
[
2
]
=
`C_ADDR_DMA_US_PAH
;
...
...
@@ -837,7 +824,7 @@ begin
// Write LENG
$
display
(
"%d ns: Write LENG"
,
$
time
)
;
board
.
Hdr_Array
[
2
]
=
board
.
Hdr_Array
[
2
]
+
'
H4
;
dword_pack_data_store
(
board
.
DMA_L
eng
,
0
)
;
//'H100
dword_pack_data_store
(
board
.
DMA_L
1
,
0
)
;
//'H100
TLP_Feed_Rx
(
`C_BAR0_HIT
)
;
board
.
Rx_MWr_Tag
=
board
.
Rx_MWr_Tag
+
1
;
...
...
@@ -846,12 +833,14 @@ begin
$
display
(
"%d ns: Write CTRL and start the DMA"
,
$
time
)
;
board
.
Hdr_Array
[
2
]
=
board
.
Hdr_Array
[
2
]
+
'
H4
;
dword_pack_data_store
(
{
4
'
H0
,
3
'
H1
,
board
.
DMA_
d
s_is_Last
,
3
'
H1
,
board
.
DMA_
u
s_is_Last
,
3
'
H0
,
1
'
B1
,
1
'
B0
,
board
.
DMA_bar
,
1
'
B1
,
15
'
H0
},
0
)
;
TLP_Feed_Rx
(
`C_BAR0_HIT
)
;
board
.
Rx_MWr_Tag
=
board
.
Rx_MWr_Tag
+
1
;
board
.
Desc_tx_MRd_TAG
=
'hE0
;
board
.
RP
.
com_usrapp
.
TSK_EXPECT_MEMRD
(
3'b000
,
1'b0
,
1'b0
,
2'b00
,
...
...
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