Skip to content

Commit

Permalink
Fix scaling
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Jan 26, 2024
1 parent d268e40 commit 62f1456
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions adi/jesd_internal.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class jesd_eye_scan(jesd):
_jesd_prbs = 7
_max_possible_lanes_index = 24

_half_rate = {"mode": "Half Fate", "scale": 0.004}
_half_rate = {"mode": "Half Fate", "scale": 1}
_quarter_rate = {"mode": "Quarter Rate", "scale": 4}

lanes = {}
Expand Down Expand Up @@ -205,8 +205,8 @@ def get_eye_data(self, device=None, lanes=None):
else:
spo = [float(x) for x in eye_line.split(",")]
x.append(spo[0])
y1.append(spo[1] * scale / 1000)
y2.append(spo[2] * scale / 1000)
y1.append(spo[1] * scale)
y2.append(spo[2] * scale)

if len(x) == 0:
raise Exception(f"No eye data found for lane {lane}.")
Expand Down

0 comments on commit 62f1456

Please sign in to comment.