Silas work PC

eye diagram working for all signals again...
A problem: I found that the Tx eyes look weird (i.e. PAM-8)
vibecoded ML_MLSE_GPU ... a bit faster :-)
This commit is contained in:
Silas Oettinghaus
2026-02-05 13:36:33 +01:00
parent 7c9577791d
commit 3d47813f1e
5 changed files with 565 additions and 6 deletions

View File

@@ -0,0 +1,34 @@
% plot_dispersion_models
% ------------------------------------------------------------
% Visualizes exact and linearized chromatic dispersion D(λ)
% around the zero-dispersion wavelength (ZDW).
%
% Inputs:
% lambda0_nm - ZDW in nm
% S0 - dispersion slope at ZDW [ps/(nm^2·km)]
% ------------------------------------------------------------
lambda0_nm = 1310;
S0 = 0.08;
% wavelength axis around ZDW
lambda_nm = linspace(lambda0_nm-40, lambda0_nm+40, 400);
% exact dispersion model
D_exact = (S0/4) .* ( ...
lambda_nm - (lambda0_nm^4)./(lambda_nm.^3) );
% linearized model around ZDW
D_lin = S0 .* (lambda_nm - lambda0_nm);
% plot
figure('Color','w'); hold on;
plot(lambda_nm, D_exact, 'LineWidth',2, 'DisplayName','Exact model');
plot(lambda_nm, D_lin, '--', 'LineWidth',2, 'DisplayName','Linearized model');
xlabel('Wavelength \lambda [nm]');
ylabel('Dispersion D(\lambda) [ps/(nm·km)]');
title('Chromatic Dispersion Around the ZDW');
legend('Location','best');
grid on; box on;

View File

@@ -9,7 +9,7 @@ L = 1; % km
% Dispersion berechnen (lineare Näherung)
D = S0 .* ( lambda - Lambda0 ) * L;
% D = (S0./4) .* ( lambda - (Lambda0.^4)./(lambda^3) ) * L;
D = (S0./4) .* ( lambda - (Lambda0.^4)./(lambda^3) ) * L;
%% 2D-Konturplot nur mit Linien und Text
figure('Color','w');