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: f497877e7b56
Choose a base ref
...
head repository: ngscopeclient/scopehal
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d5270fbc43d8
Choose a head ref
  • 2 commits
  • 3 files changed
  • 1 contributor

Commits on Oct 28, 2020

  1. Copy the full SHA
    2be2920 View commit details
  2. Copy the full SHA
    d5270fb View commit details
Showing with 291 additions and 68 deletions.
  1. +13 −7 scopeprotocols/DPhySymbolDecoder.cpp
  2. +233 −60 scopeprotocols/DSIPacketDecoder.cpp
  3. +45 −1 scopeprotocols/DSIPacketDecoder.h
20 changes: 13 additions & 7 deletions scopeprotocols/DPhySymbolDecoder.cpp
Original file line number Diff line number Diff line change
@@ -158,17 +158,23 @@ void DPhySymbolDecoder::Refresh()
{
//Can only go to a HS state from another HS state or LP00
if( (state == DPhySymbol::STATE_HS0) ||
(state == DPhySymbol::STATE_HS1) ||
(state == DPhySymbol::STATE_LP00) )
(state == DPhySymbol::STATE_HS1) )
{
if(v > 0.88)
nextstate = DPhySymbol::STATE_LP11;
else if(v > 0.225)
else if(v > 0.21)
nextstate = DPhySymbol::STATE_HS1;
else if(v < 0.16)
nextstate = DPhySymbol::STATE_HS0;
}

//LP00 can go to HS0 or stay in LP00
else if(state == DPhySymbol::STATE_LP00)
{
if(v > 0.125)
nextstate = DPhySymbol::STATE_HS0;
else if(v < 0.025)
nextstate = DPhySymbol::STATE_LP00;
else if(v < 0.175)
nextstate = DPhySymbol::STATE_HS0;
}

//Otherwise, only consider other LP states
@@ -195,9 +201,9 @@ void DPhySymbolDecoder::Refresh()
(state == DPhySymbol::STATE_HS1) ||
(state == DPhySymbol::STATE_LP00) )
{
if(vd < -0.07)
if(vd < -0.05)
nextstate = DPhySymbol::STATE_HS0;
else if(vd > 0.07)
else if(vd > 0.05)
nextstate = DPhySymbol::STATE_HS1;
}

Loading