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
66b1b71a
Commit
66b1b71a
authored
6 months ago
by
Pascal Engeler
Browse files
Options
Downloads
Patches
Plain Diff
Fixed boolean bug, fixed number of states
parent
4fa925a0
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Resolve "Distance wrapping invalidates lock sum"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
stitch_project/stitch/DistanceUnwrapper.vhd
+4
-4
4 additions, 4 deletions
stitch_project/stitch/DistanceUnwrapper.vhd
with
4 additions
and
4 deletions
stitch_project/stitch/DistanceUnwrapper.vhd
+
4
−
4
View file @
66b1b71a
...
...
@@ -33,7 +33,7 @@ end DistanceUnwrapper;
architecture
Behavioral
of
DistanceUnwrapper
is
type
STATE_T
is
(
IDLE_S
,
STATE1
,
STATE2
,
STATE3
,
STATE4
,
STATE5
,
STATE6
);
type
STATE_T
is
(
IDLE_S
,
STATE1
,
STATE2
,
STATE3
);
signal
current_state
:
STATE_T
:
=
IDLE_S
;
...
...
@@ -102,7 +102,7 @@ begin
--calculate change to offset here
if
calcDelta
>
maxDelta
then
--we have wrapped around
if
newIsLarger
then
if
newIsLarger
=
'1'
then
--went negative
currentOffset
<=
currentOffset
+
corrDeltaN
;
else
...
...
@@ -116,7 +116,7 @@ begin
newIsLarger
<=
newIsLarger
;
calcDelta
<=
calcDelta
;
currentDistance
<=
currentDistance
;
dr_out
<=
dr_out
;
dr_out
<=
'0'
;
prevDistance
<=
prevDistance
;
when
STATE2
=>
...
...
@@ -127,7 +127,7 @@ begin
newIsLarger
<=
newIsLarger
;
calcDelta
<=
calcDelta
;
currentOffset
<=
currentOffset
;
dr_out
<=
dr_out
;
dr_out
<=
'0'
;
prevDistance
<=
latchedDistance
;
when
STATE3
=>
...
...
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