New MPI mitigation schemes // Duobinary // Start of FTN schemes
This commit is contained in:
54
projects/standard_system/sensitivity_analysis.m
Normal file
54
projects/standard_system/sensitivity_analysis.m
Normal file
@@ -0,0 +1,54 @@
|
||||
M = wh.parameter.M.values(1);
|
||||
datarates = wh.parameter.datarate.values;
|
||||
rop = wh.parameter.rop.values;
|
||||
|
||||
|
||||
cnt = 1;
|
||||
for dr = datarates
|
||||
|
||||
ber_ffe = wh.getStoValue('ber_ffe',M,dr,rop);
|
||||
|
||||
sens_ffe(cnt) = getIntersection(ber_ffe,rop);
|
||||
|
||||
figure(112)
|
||||
hold on
|
||||
plot(rop,ber_ffe,"LineWidth",0.5,"LineStyle","-","Marker",".","MarkerSize",15,"DisplayName",['FFE only; ',num2str(dr), ' Gbps']);
|
||||
yline(3.8e-3,'DisplayName','HD-FEC','LineStyle','--','HandleVisibility','off');
|
||||
xlabel('Received Optical Power (dBm)');
|
||||
ylabel('Bit Error Rate (BER)');
|
||||
title('Bit Error Rate vs. ROP');
|
||||
set(gca,'yscale','log');
|
||||
set(gca,'Box','on');
|
||||
grid on;
|
||||
grid minor
|
||||
legend
|
||||
|
||||
cnt = cnt+1;
|
||||
|
||||
end
|
||||
|
||||
|
||||
figure(223);
|
||||
hold on; % Retain the plot so new points can be added without complete redraw
|
||||
plot(datarates,sens_ffe,"LineWidth",1,"LineStyle","-","Marker",".","MarkerSize",10,"DisplayName",['Linewidth: ',num2str(laser_linewidth.*1e-6),' MHz']);
|
||||
xlabel('Signal to Interference Ratio (dB)');
|
||||
ylabel('Receiver Sensitivity');
|
||||
title(['Bit Error Rate vs. SIR']);
|
||||
grid on;
|
||||
legend
|
||||
|
||||
|
||||
function i = getIntersection(ber,rop)
|
||||
|
||||
%get intersection between rop curve and hd-fec limit
|
||||
hdfec = 3.8e-3 .* ones(size(ber));
|
||||
i = InterX([rop;hdfec'],[rop;ber']);
|
||||
|
||||
if isempty(i)
|
||||
i = NaN;
|
||||
else
|
||||
i = i(1);
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user