Skip to content

Instantly share code, notes, and snippets.

@raytroop
Created November 26, 2021 01:14
Show Gist options
  • Save raytroop/5c3bc8f37e8afa54f59af0367bf46673 to your computer and use it in GitHub Desktop.
Save raytroop/5c3bc8f37e8afa54f59af0367bf46673 to your computer and use it in GitHub Desktop.
SBR ref. Fast and Accurate Estimation of Statistical Eye Diagram for Nonlinear High-Speed Links
A = zeros(10,21);
n = [1:10];
% post cursor
for m = 1:3
A(m, 11+n(m)) = 0.5;
A(m, 11-n(m)) = 0.5;
end
% one
for m = 4:10
A(m, 11) = 1;
end
% h0 or main cursor
h0 = zeros(1, 21);
h0(1, 1) = 0.5;
h0(1, 21) = 0.5;
out = h0;
for m = 1:10
out = conv(out, A(m, :), "full");
end
stem(out)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment