Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9fdc3856e17c
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6e92e3dcfc8f
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Oct 28, 2020

  1. Copy the full SHA
    6e92e3d View commit details
Showing with 7 additions and 3 deletions.
  1. +7 −3 scopeprotocols/DPhySymbolDecoder.cpp
10 changes: 7 additions & 3 deletions scopeprotocols/DPhySymbolDecoder.cpp
Original file line number Diff line number Diff line change
@@ -206,7 +206,7 @@ void DPhySymbolDecoder::Refresh()

if( (vp < 0.55) && (vn < 0.55) )
{
//Can only go to a HS state from another HS state or LP00
//Can only go to a HS state from another HS state or LP-00
if( (state == DPhySymbol::STATE_HS0) ||
(state == DPhySymbol::STATE_HS1) ||
(state == DPhySymbol::STATE_LP00) )
@@ -223,8 +223,12 @@ void DPhySymbolDecoder::Refresh()
}
}

if( (fabs(vd) < 0.07) && (vp < 0.15) && (vn < 0.15) )
nextstate = DPhySymbol::STATE_LP00;
//Can only go to LP-00 from another LP state
if( (state != DPhySymbol::STATE_HS0) && (state != DPhySymbol::STATE_HS1) )
{
if( (vp < 0.15) && (vn < 0.15) )
nextstate = DPhySymbol::STATE_LP00;
}
}
else if( (vp < 0.55) && (vn > 0.80) )
nextstate = DPhySymbol::STATE_LP01;