Skip to content
GitLab
Explore
Sign in
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
294767f2
Commit
294767f2
authored
8 years ago
by
Pepping
Browse files
Options
Downloads
Patches
Plain Diff
Fixed the RAMsize to 256 Added c_dat_db_w
parent
a16415d1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/apertif/designs/apertif_unb1_correlator/revisions/apertif_unb1_correlator_mesh_ref/tc_apertif_unb1_correlator_mesh_ref.py
+12
-11
12 additions, 11 deletions
...orrelator_mesh_ref/tc_apertif_unb1_correlator_mesh_ref.py
with
12 additions
and
11 deletions
applications/apertif/designs/apertif_unb1_correlator/revisions/apertif_unb1_correlator_mesh_ref/tc_apertif_unb1_correlator_mesh_ref.py
+
12
−
11
View file @
294767f2
...
...
@@ -66,18 +66,19 @@ g_blocks_per_sync = 16 #32 # 781250
# Define settings for the block generator
c_bg_nof_streams
=
g_nof_input_streams
c_bg_ram_size
=
128
c_bg_ram_size
=
256
c_db_nof_streams
=
g_nof_input_streams
c_db_ram_size
=
8
c_samples_per_packet
=
1
28
c_samples_per_packet
=
1
76
c_gapsize
=
64
c_mem_low_addr
=
0
c_mem_high_addr
=
c_
samples_per_packet
-
1
c_mem_high_addr
=
c_
bg_ram_size
-
1
c_bsn_init
=
42
c_in_dat_w
=
8
c_nof_read_back_samples
=
1
c_nof_read_back_samples
=
8
c_dat_db_w
=
8
c_write_bg_data
=
Fals
e
c_write_bg_data
=
Tru
e
c_write_bg_data_to_file
=
False
tc
.
append_log
(
3
,
'
>>>
'
)
...
...
@@ -100,7 +101,7 @@ db_mesh = pi_diag_data_buffer.PiDiagDataBuffer(tc, io, instanceName = 'MESH', no
bsn
=
pi_bsn_monitor
.
PiBsnMonitor
(
tc
,
io
,
nofStreams
=
2
)
# Create dsp_test instance for helpful methods
dsp_test_bg
=
dsp_test
.
DspTest
(
inDatW
=
c_in_dat_w
)
#
dsp_test_bg = dsp_test.DspTest(inDatW=c_in_dat_w)
pps
=
pi_ppsh
.
PiPpsh
(
tc
,
io
,
nodeNr
=
tc
.
nodeFnNrs
)
...
...
@@ -129,9 +130,9 @@ if __name__ == "__main__":
nodeData
=
[]
for
i
in
xrange
(
0
,
g_nof_input_streams
):
data
=
[]
for
j
in
xrange
(
0
,
c_
samples_per_packet
):
real
=
h
&
(
2
**
c_in_dat_w
-
1
)
# Node number in real part
imag
=
i
&
(
2
**
c_in_dat_w
-
1
)
# Streamnumber in imag part
for
j
in
xrange
(
0
,
c_
bg_ram_size
):
real
=
h
&
(
2
**
c_in_dat_w
-
1
)
# Node number in real part
= Source
imag
=
i
&
(
2
**
c_in_dat_w
-
1
)
# Streamnumber in imag part
= Destination
data
.
append
((
imag
<<
c_in_dat_w
)
+
real
)
nodeData
.
append
(
data
)
dataList
.
append
(
nodeData
)
...
...
@@ -172,7 +173,7 @@ if __name__ == "__main__":
###############################################################################
db_out
=
[]
for
i
in
range
(
c_bg_nof_streams
):
db_out
.
append
(
flatten
(
db_mesh
.
read_data_buffer
(
streamNr
=
i
,
n
=
c_nof_read_back_samples
,
radix
=
'
uns
'
,
width
=
c_nof_complex
*
c_
in_
dat_w
,
nofColumns
=
8
)))
db_out
.
append
(
flatten
(
db_mesh
.
read_data_buffer
(
streamNr
=
i
,
n
=
c_nof_read_back_samples
,
radix
=
'
uns
'
,
width
=
c_nof_complex
*
c_dat
_db
_w
,
nofColumns
=
8
)))
###############################################################################
#
...
...
@@ -195,7 +196,7 @@ if __name__ == "__main__":
for
i
in
db_out
:
db_im
=
[]
for
j
in
i
:
imag
=
(
j
&
0xFF00
)
>>
c_
in_
dat_w
imag
=
(
j
&
0xFF00
)
>>
c_dat
_db
_w
db_im
.
append
(
imag
)
tc
.
append_log
(
0
,
'
Imag part(=dest) of RX channel %d for every node: %s
'
%
(
cnt
,
str
(
db_im
)))
cnt
+=
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