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
a4b10b99
Commit
a4b10b99
authored
8 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added func_wpfb_maximum_sop_latency().
parent
6169504a
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
libraries/dsp/wpfb/src/vhdl/wpfb_pkg.vhd
+22
-1
22 additions, 1 deletion
libraries/dsp/wpfb/src/vhdl/wpfb_pkg.vhd
with
22 additions
and
1 deletion
libraries/dsp/wpfb/src/vhdl/wpfb_pkg.vhd
+
22
−
1
View file @
a4b10b99
...
...
@@ -89,9 +89,30 @@ package wpfb_pkg is
8
,
0
,
8
,
16
,
9
,
true
,
false
,
false
,
16
,
16
,
0
,
c_dsp_mult_w
,
2
,
true
,
56
,
2
,
c_fft_pipeline
,
c_fft_pipeline
,
c_fil_ppf_pipeline
);
-- Estimate maximum number of blocks of latency between WPFB input and output
function
func_wpfb_maximum_sop_latency
(
wpfb
:
t_wpfb
)
return
natural
;
end
package
wpfb_pkg
;
package
body
wpfb_pkg
is
function
func_wpfb_maximum_sop_latency
(
wpfb
:
t_wpfb
)
return
natural
is
constant
c_nof_channels
:
natural
:
=
2
**
wpfb
.
nof_chan
;
constant
c_block_size
:
natural
:
=
c_nof_channels
*
wpfb
.
nof_points
/
wpfb
.
wb_factor
;
constant
c_block_dly
:
natural
:
=
10
;
begin
-- The prefilter, pipelined FFT, pipelined reorder and the wideband separate reorder
-- cause block latency.
-- The parallel FFT has no block latency.
-- The parallel FFT reorder is merely a rewiring and causes no latency.
-- ==> This yields maximim 4 block latency
-- ==> Add one extra block latency to round up
-- Each block in the Wideband FFT also introduces about c_block_dly clock cycles of
-- pipeline latency.
-- ==> This yields maximum ( 5 * c_block_dly ) / c_block_size of block latency
return
4
+
1
+
(
5
*
c_block_dly
)
/
c_block_size
;
end
func_wpfb_maximum_sop_latency
;
end
wpfb_pkg
;
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