Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
Gennum GN4124 core
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
Gennum GN4124 core
Commits
5e59ab44
Commit
5e59ab44
authored
Nov 05, 2020
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sim: modify testbench to test long p2l dma transfers.
parent
4221b112
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.sv
hdl/sim/example_tb/main.sv
+5
-5
No files found.
hdl/sim/example_tb/main.sv
View file @
5e59ab44
...
...
@@ -364,7 +364,7 @@ module main;
$
write
(
"PASS
\n
"
)
;
// ---------------------------------
$
write
(
"Test %0d/%0d:
2x4
KiB chained DMA write: "
,
$
write
(
"Test %0d/%0d:
8
KiB chained DMA write: "
,
ntest
++,
tests
)
;
// Setup data in BFM memory
...
...
@@ -372,16 +372,16 @@ module main;
i_gn4124
.
host_mem_write
(
4
*
addr
,
32'h80000020
-
addr
)
;
// Setup DMA chain info in BFM memory
i_gn4124
.
host_mem_write
(
'h20000
,
'h00001
0
00
)
;
// remote address
i_gn4124
.
host_mem_write
(
'h20004
,
'h20001
0
00
)
;
// hstartL
i_gn4124
.
host_mem_write
(
'h20000
,
'h00001
8
00
)
;
// remote address
i_gn4124
.
host_mem_write
(
'h20004
,
'h20001
8
00
)
;
// hstartL
i_gn4124
.
host_mem_write
(
'h20008
,
'h00000000
)
;
// hstartH
i_gn4124
.
host_mem_write
(
'h2000C
,
'h
10
00
)
;
// count
i_gn4124
.
host_mem_write
(
'h2000C
,
'h
8
00
)
;
// count
i_gn4124
.
host_mem_write
(
'h20010
,
'h00
)
;
// nextL
i_gn4124
.
host_mem_write
(
'h20014
,
'h00
)
;
// nextH
i_gn4124
.
host_mem_write
(
'h20018
,
'h01
)
;
// attrib
// Setup DMA
acc
.
write
(
'h14
,
'h1
0
00
)
;
// count
acc
.
write
(
'h14
,
'h1
8
00
)
;
// count
acc
.
write
(
'h20
,
'h03
)
;
// attrib
acc
.
write
(
'h0c
,
'h20000000
)
;
// hstartL
acc
.
write
(
'h10
,
'h00000000
)
;
// hstartH
...
...
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