Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 2cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
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
FMC DEL 1ns 2cha
Commits
1ca03bbf
Commit
1ca03bbf
authored
Apr 10, 2017
by
Jan Pospisil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added AD9512 synchronization pulse to the simulation
parent
28f3b2fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
TestbenchPackage.sv
hdl/ffpg/sim/testbench/TestbenchPackage.sv
+11
-1
No files found.
hdl/ffpg/sim/testbench/TestbenchPackage.sv
View file @
1ca03bbf
...
...
@@ -552,7 +552,17 @@ package TestbenchPackage;
int
SetMemBaseAddress
=
(
Channel
==
1
)
?
`GET_WB_FFPG_ADDR
(
`BASE_FFPG_CH1_SET_MEM
)
:
`GET_WB_FFPG_ADDR
(
`BASE_FFPG_CH2_SET_MEM
)
;
int
ResMemBaseAddress
=
(
Channel
==
1
)
?
`GET_WB_FFPG_ADDR
(
`BASE_FFPG_CH1_RES_MEM
)
:
`GET_WB_FFPG_ADDR
(
`BASE_FFPG_CH2_RES_MEM
)
;
int
OverflowInWords
=
getOverflowInWords
()
;
// sync AD9512
tx
=
td_wb_tx
::
type_id
::
create
(
"tx"
)
;
start_item
(
tx
)
;
assert
(
tx
.
randomize
())
;
tx
.
direction_e
=
WB_B3_DIR_WRITE
;
tx
.
address
=
`GET_WB_FFPG_ADDR
(
`ADDR_FFPG_CONTROL
)
;
tx
.
data
=
1
<<
`FFPG_CONTROL_AD9512_SYNC_OFFSET
;
finish_item
(
tx
)
;
assert
(
tx
.
response_e
==
WB_B3_RESPONSE_ACK_OK
)
;
// configure overflow
tx
=
td_wb_tx
::
type_id
::
create
(
"tx"
)
;
start_item
(
tx
)
;
...
...
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