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
bd223117
Commit
bd223117
authored
4 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Simulate multiple in_sync intervals to show output pfs_sync.
parent
afedaa6f
Branches
Branches containing commit
No related tags found
1 merge request
!100
Removed text for XSub that is now written in Confluence Subband correlator...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
applications/lofar1/pfs/tb/vhdl/tb_pfs.vhd
+25
-10
25 additions, 10 deletions
applications/lofar1/pfs/tb/vhdl/tb_pfs.vhd
with
25 additions
and
10 deletions
applications/lofar1/pfs/tb/vhdl/tb_pfs.vhd
+
25
−
10
View file @
bd223117
...
...
@@ -69,7 +69,15 @@ BEGIN
in_dat_x
<=
TO_UVEC
(
0
,
in_dat_x
'LENGTH
);
WAIT
FOR
1
us
;
WAIT
UNTIL
rising_edge
(
clk
);
-- LOFAR1 sync is active one clk cycle before sync interval
-- create sync for first sync interval
in_sync
<=
'1'
;
WAIT
UNTIL
rising_edge
(
clk
);
in_sync
<=
'0'
;
in_val
<=
'1'
;
FOR
k
IN
1
TO
2
LOOP
-- issue impulse
FOR
j
IN
1
TO
16
LOOP
FOR
i
IN
1
TO
1024
LOOP
IF
j
=
1
THEN
...
...
@@ -80,8 +88,15 @@ BEGIN
WAIT
UNTIL
rising_edge
(
clk
);
END
LOOP
;
END
LOOP
;
-- continue some more
proc_common_wait_some_cycles
(
clk
,
1024
*
4
);
-- continue some more per sync interval
proc_common_wait_some_cycles
(
clk
,
1024
*
4-1
);
-- -1 to create sync for next sync interval
in_sync
<=
'1'
;
WAIT
UNTIL
rising_edge
(
clk
);
in_sync
<=
'0'
;
END
LOOP
;
-- continue some more to observe last pfs_sync
proc_common_wait_some_cycles
(
clk
,
1024
*
1
);
tb_end
<=
'1'
;
WAIT
;
END
PROCESS
;
...
...
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