Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
d3aca53d
Commit
d3aca53d
authored
May 12, 2015
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Added pps
parent
be4e8b3b
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/apertif/designs/apertif_unb1_fn_beamformer/revisions/apertif_unb1_fn_beamformer_tp_bg/tc_apertif_unb1_fn_beamformer_tp_bg.py
+11
-6
11 additions, 6 deletions
...n_beamformer_tp_bg/tc_apertif_unb1_fn_beamformer_tp_bg.py
with
11 additions
and
6 deletions
applications/apertif/designs/apertif_unb1_fn_beamformer/revisions/apertif_unb1_fn_beamformer_tp_bg/tc_apertif_unb1_fn_beamformer_tp_bg.py
+
11
−
6
View file @
d3aca53d
...
@@ -42,6 +42,7 @@ import pi_ss_ss_wide
...
@@ -42,6 +42,7 @@ import pi_ss_ss_wide
import
pi_bf_bf
import
pi_bf_bf
import
pi_io_ddr
import
pi_io_ddr
import
pi_bsn_monitor
import
pi_bsn_monitor
import
pi_ppsh
import
dsp_test
import
dsp_test
import
sys
,
os
import
sys
,
os
...
@@ -149,6 +150,8 @@ ddr = pi_io_ddr.PiIoDdr(tc, io, nof_inst = 1)
...
@@ -149,6 +150,8 @@ ddr = pi_io_ddr.PiIoDdr(tc, io, nof_inst = 1)
# Create dsp_test instance for helpful methods
# Create dsp_test instance for helpful methods
dsp_test_bg
=
dsp_test
.
DspTest
(
inDatW
=
c_bf_in_dat_w
)
dsp_test_bg
=
dsp_test
.
DspTest
(
inDatW
=
c_bf_in_dat_w
)
pps
=
pi_ppsh
.
PiPpsh
(
tc
,
io
,
nodeNr
=
tc
.
nodeFnNrs
)
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
...
@@ -174,10 +177,8 @@ if __name__ == "__main__":
...
@@ -174,10 +177,8 @@ if __name__ == "__main__":
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>> Write settings to the block generator
'
)
tc
.
append_log
(
3
,
'
>>> Write settings to the block generator
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
if
tc
.
sim
==
True
:
#bg.write_block_gen_settings(c_samples_per_packet, g_blocks_per_sync, c_gapsize, c_mem_low_addr, c_mem_high_addr, c_bsn_init)
bg
.
write_block_gen_settings
(
256
,
g_blocks_per_sync
,
0
,
0
,
127
,
c_bsn_init
)
bg
.
write_block_gen_settings
(
256
,
g_blocks_per_sync
,
0
,
0
,
127
,
c_bsn_init
)
else
:
bg
.
write_block_gen_settings
(
c_samples_per_packet
,
g_blocks_per_sync
,
c_gapsize
,
c_mem_low_addr
,
c_mem_high_addr
,
c_bsn_init
)
# - Create a list with the input data and write it to the RAMs of the block generator
# - Create a list with the input data and write it to the RAMs of the block generator
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
...
@@ -269,10 +270,14 @@ if __name__ == "__main__":
...
@@ -269,10 +270,14 @@ if __name__ == "__main__":
# - Enable the block generator
# - Enable the block generator
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
Enable
the block generator
'
)
tc
.
append_log
(
3
,
'
>>>
Arm
the block generator
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
'
>>>
'
)
tc
.
append_log
(
3
,
''
)
tc
.
append_log
(
3
,
''
)
bg
.
write_enable
()
toggle
=
pps
.
read_ppsh_toggle
()
do_until_ne
(
pps
.
read_ppsh_toggle
,
ms_retry
=
1000
,
val
=
toggle
,
s_timeout
=
13600
)
bg
.
write_enable_pps
()
bsn_out
.
read_bsn_monitor
(
0
)
bsn_out
.
read_bsn_monitor
(
0
)
bsn_out
.
read_bsn_monitor
(
1
)
bsn_out
.
read_bsn_monitor
(
1
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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