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
5e59ab44
Commit
5e59ab44
authored
4 years ago
by
Tristan Gingold
Browse files
Options
Downloads
Patches
Plain Diff
sim: modify testbench to test long p2l dma transfers.
parent
4221b112
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/sim/example_tb/main.sv
+5
-5
5 additions, 5 deletions
hdl/sim/example_tb/main.sv
with
5 additions
and
5 deletions
hdl/sim/example_tb/main.sv
+
5
−
5
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
...
...
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