ML Equalizer works now.
Not yet perfectly integrated into all the routines
This commit is contained in:
@@ -22,7 +22,7 @@ function [Rx_sig_2sps,Symbols,Tx_bits] = standard_link_model(options)
|
||||
options.laser_linewidth (1,1) double = 1e6
|
||||
|
||||
% --- Channel parameters ---
|
||||
options.link_length_m (1,1) double = 0
|
||||
options.link_length_km (1,1) double = 0
|
||||
options.rop (1,:) double = -5
|
||||
options.fsym (1,:) double = (212:16:256)*1e9
|
||||
options.doub_mode (1,1) db_mode = db_mode.no_db
|
||||
@@ -57,7 +57,7 @@ function [Rx_sig_2sps,Symbols,Tx_bits] = standard_link_model(options)
|
||||
"randomkey",options.random_key+1).process(El_sig);
|
||||
|
||||
% --- Fiber ---
|
||||
Opt_sig = Fiber("fsimu",Opt_sig.fs,"fiber_length",options.link_length_m, ...
|
||||
Opt_sig = Fiber("fsimu",Opt_sig.fs,"fiber_length",options.link_length_km, ...
|
||||
"alpha",0.3,"D",0,"lambda0",1310,"gamma",0,"Dslope",0.07).process(Opt_sig);
|
||||
|
||||
% --- Amplifier (ROP set) ---
|
||||
@@ -90,6 +90,10 @@ function [Rx_sig_2sps,Symbols,Tx_bits] = standard_link_model(options)
|
||||
[~,Scpe_cell,~,found_sync] = Scpe_sig_2sps.tsynch( ...
|
||||
"reference",Symbols,"fs_ref",options.fsym,"debug_plots",0);
|
||||
|
||||
Rx_sig_2sps = Scpe_cell{1}.normalize("mode","rms");
|
||||
try
|
||||
Rx_sig_2sps = Scpe_cell{1}.normalize("mode","rms");
|
||||
catch
|
||||
Rx_sig_2sps = Scpe_sig_2sps.normalize("mode","rms");
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user