FUNCTIONtech_nat_to_mbps_str(n:INNATURAL)RETURNSTRINGIS-- Converts a selection of naturals to Mbps strings, used for edited MegaWizard file in ip_stratixiv_hssi_*_generic.vhd
VARIABLEr:STRING(1TO9);
BEGIN
CASEnis
WHEN2500=>r:="2500 Mbps";
WHEN3125=>r:="3125 Mbps";
WHEN5000=>r:="5000 Mbps";
WHEN6250=>r:="6250 Mbps";
WHENOTHERS=>
r:="ERROR: tech_nat_to_mbps_str UNSUPPORTED DATA RATE";-- This too long string will cause an error in Quartus synthesis
REPORTrSEVERITYFAILURE;-- Severity Failure will stop the Modelsim simulation