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
2a889c4f
Commit
2a889c4f
authored
4 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
L2SDP-180
, processed review commnents 3
parent
49698cec
No related branches found
No related tags found
2 merge requests
!100
Removed text for XSub that is now written in Confluence Subband correlator...
,
!59
Resolve L2SDP-180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/common/src/vhdl/common_variable_delay.vhd
+10
-15
10 additions, 15 deletions
libraries/base/common/src/vhdl/common_variable_delay.vhd
with
10 additions
and
15 deletions
libraries/base/common/src/vhdl/common_variable_delay.vhd
+
10
−
15
View file @
2a889c4f
...
...
@@ -24,7 +24,7 @@
-- Description:
-- . delay input pulse by nof_cycles_delay
-- . output pulse is derived from low-high transition of input pulse.
-- .
during delay other input pulses are ignored
-- .
the actual pulse delay will be delay + 1, due to implementation latency of 1 clk cycle
-- --------------------------------------------------------------------------
LIBRARY
IEEE
,
technology_lib
;
...
...
@@ -54,31 +54,27 @@ ARCHITECTURE rtl OF common_variable_delay IS
SIGNAL
nxt_out_val
:
STD_LOGIC
;
SIGNAL
delay_cnt
:
NATURAL
;
SIGNAL
nxt_delay_cnt
:
NATURAL
;
SIGNAL
prev_in_val
:
STD_LOGIC
:
=
'0'
;
SIGNAL
prev_in_val
:
STD_LOGIC
;
BEGIN
out_val
<=
i_out_val
;
p_delay
:
PROCESS
(
enable
,
in_val
,
prev_in_val
,
nxt_
delay
_cnt
,
delay_cnt
,
delay
)
p_delay
:
PROCESS
(
enable
,
in_val
,
prev_in_val
,
delay
,
delay_cnt
)
BEGIN
nxt_out_val
<=
'0'
;
nxt_delay_cnt
<=
delay_cnt
+
1
;
nxt_delay_cnt
<=
0
;
IF
enable
=
'1'
THEN
IF
in_val
=
'1'
AND
prev_in_val
=
'0'
THEN
-- detect risingedge of in_val
IF
in_val
=
'1'
AND
prev_in_val
=
'0'
THEN
-- detect rising
edge of in_val
IF
delay
=
0
THEN
nxt_out_val
<=
'1'
;
nxt_delay_cnt
<=
g_max_delay
;
ELSE
nxt_delay_cnt
<=
1
;
END
IF
;
END
IF
;
IF
delay_cnt
=
delay
THEN
nxt_out_val
<=
'1'
;
ELSE
nxt_delay_cnt
<=
delay_cnt
+
1
;
IF
(
delay_cnt
+
1
)
=
delay
THEN
nxt_out_val
<=
'1'
;
END
IF
;
END
IF
;
ELSE
nxt_delay_cnt
<=
g_max_delay
;
END
IF
;
END
PROCESS
;
...
...
@@ -95,5 +91,4 @@ BEGIN
END
IF
;
END
PROCESS
;
END
rtl
;
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