Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
STITCH
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
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
Pascal Engeler
STITCH
Commits
e8a3ac35
Commit
e8a3ac35
authored
4 months ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
DR bugfix, sped up BRAM parameters
parent
9c11bed0
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
stitch_project/stitch/LockinChainTestbench.vhd
+15
-12
15 additions, 12 deletions
stitch_project/stitch/LockinChainTestbench.vhd
with
15 additions
and
12 deletions
stitch_project/stitch/LockinChainTestbench.vhd
+
15
−
12
View file @
e8a3ac35
...
...
@@ -181,48 +181,51 @@ BEGIN
--can program longer laser traces here, which will just be repeated
--can also use IFs to make them dependent on dphi
UNWRAPPER_distance_in
<=
"000110101100110010100"
;
UNWRAPPER_
DR
<=
'0'
;
UNWRAPPER_
dr_in
<=
'0'
;
wait
for
840
ns
;
UNWRAPPER_
DR
<=
'1'
;
UNWRAPPER_
dr_in
<=
'1'
;
wait
for
70
ns
;
end
process
;
-- Memory process
mem_proc
:
process
begin
wait
for
1
ns
;
--mem_dphi
if
SWEEPER_dphi_mem_rd_addr
=
"0000000000"
then
SWEEPER_dphi_mem_rd_data
<=
"00000000000
1
01001
1111
00"
;
SWEEPER_dphi_mem_rd_data
<=
"0000
1
00000
11
000100100
11
"
;
elsif
SWEEPER_dphi_mem_rd_addr
=
"0000000001"
then
SWEEPER_dphi_mem_rd_data
<=
"00001111100100001001011"
;
else
SWEEPER_dphi_mem_rd_data
<=
"00011000100100110111010"
;
end
if
;
--mem_ddphi
SWEEPER_ddphi_mem_rd_data
<=
"
00
011
0
11
0
11111
00110
1111"
;
SWEEPER_ddphi_mem_rd_data
<=
"0111111111
111111111
1111"
;
--mem_n_ringup
if
SWEEPER_n_ringup_mem_rd_addr
=
"0000000000"
then
SWEEPER_n_ringup_mem_rd_data
<=
"00000
101111101011
1100001
0
0000000"
;
SWEEPER_n_ringup_mem_rd_data
<=
"00000
00000000
1100001
10101
0000000"
;
elsif
SWEEPER_n_ringup_mem_rd_addr
=
"0000000001"
then
SWEEPER_n_ringup_mem_rd_data
<=
"000000000000
1000000
0011111101011"
;
SWEEPER_n_ringup_mem_rd_data
<=
"0000000000000011
00
11
0
110
0
1011
110
"
;
else
SWEEPER_n_ringup_mem_rd_data
<=
"0000000000000
1
01000
101
1000010101"
;
SWEEPER_n_ringup_mem_rd_data
<=
"000000000000001000
00
1000
11
010101"
;
end
if
;
--mem_n_sweep
if
SWEEPER_n_sweep_mem_rd_addr
=
"0000000000"
then
SWEEPER_n_sweep_mem_rd_data
<=
"00000000000000000000000000000000"
;
elsif
SWEEPER_n_sweep_mem_rd_addr
=
"0000000001"
then
SWEEPER_n_sweep_mem_rd_data
<=
"000000000
10010
0000
0
11
001000
01100"
;
SWEEPER_n_sweep_mem_rd_data
<=
"000000000000011
101011111
0110
111
0"
;
else
SWEEPER_n_sweep_mem_rd_data
<=
"0000000000
1
01001
11110110001100
10"
;
SWEEPER_n_sweep_mem_rd_data
<=
"0000000000
0
01001
00000010110111
10"
;
end
if
;
--mem_n_meas
if
SWEEPER_n_ringup_mem_rd_addr
=
"0000000000"
then
SWEEPER_n_meas_mem_rd_data
<=
"00000
101111101011
1100001
0
0000000"
;
SWEEPER_n_meas_mem_rd_data
<=
"00000
00000000
1100001
10101
0000000"
;
elsif
SWEEPER_n_ringup_mem_rd_addr
=
"0000000001"
then
SWEEPER_n_meas_mem_rd_data
<=
"000000000000
1000000
0011111101011"
;
SWEEPER_n_meas_mem_rd_data
<=
"0000000000000011
00
11
0
110
0
1011
110
"
;
else
SWEEPER_n_meas_mem_rd_data
<=
"0000000000000
1
01000
101
1000010101"
;
SWEEPER_n_meas_mem_rd_data
<=
"000000000000001000
00
1000
11
010101"
;
end
if
;
...
...
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