?? utra_lib.mdl
字號:
Library { Name "utra_lib" Version 3.00 BlockDataTips off BlockParametersDataTip off BlockAttributesDataTip off BlockPortWidthsDataTip off BlockDescriptionStringDataTip off BlockMaskParametersDataTip off ToolBar off StatusBar off BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Tue Jun 15 14:23:40 1999" Creator "maarit" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%<Auto>" LastModifiedBy "maarit" ModifiedDateFormat "%<Auto>" LastModifiedDate "Sun Jun 27 11:06:29 1999" ModelVersionFormat "1.%<AutoIncrement:286>" ConfigurationManager "none" BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } System { Name "utra_lib" Location [274, 210, 1503, 1012] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom off ReportName "simulink-default.rpt" Block { BlockType SubSystem Name "Channel coding block" Ports [0, 0, 0, 0, 0] Position [209, 483, 384, 600] Orientation "left" FontName "helvetica" ShowPortLabels on MaskDisplay "disp('CHANNEL CODING\\nCHANNEL DECODING\\n+\\nC""RC\\nRATE MATCHING')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "Channel coding block" Location [217, 276, 886, 709] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Reference Name "Channel coding test" Ports [0, 0, 0, 0, 0] Position [408, 75, 607, 236] Orientation "left" SourceBlock "utra_lib/Test library/Channel coding test" SourceType "" tx_ch "Dedicated Transport channel" cType "Convolutional coding" Kindex "2" nC "256" Inter_int_mode "block interleaver" nFrames "1" cols "1" Intra_int_flag off } Block { BlockType SubSystem Name "dl_RX_channel_decoding" Ports [2, 2, 0, 0, 0] Position [40, 216, 315, 389] Orientation "left" FontName "helvetica" ShowPortLabels on MaskPromptString "size vector|CRC Parameters|Channel coding p""arameters" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskVariables "sizes=@1;CRC=@2;chCode=@3;" MaskInitialization "N=sizes(1);bits_in_frame=sizes(2);nFrames=s""izes(3); %N=input_block_size\nnCRC=CRC(1);crc_poly=CRC(2);\ncType=chCode(1);""K=chCode(2); nTail=chCode(3);ch_poly=[chCode(4:6)];\n" MaskDisplay "disp('RATE MATCHING\\nCHANNEL DECODING\\nCR""C CALCULATION')\nport_label('input',1,'coded soft bits');\nport_label('input'"",2,'flag')\nport_label('output',1,'bits');\nport_label('output',2,'FER and CR""C')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "sizes|crc|chCode" System { Name "dl_RX_channel_decoding" Location [282, 37, 1182, 584] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "in" Position [790, 320, 820, 330] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Inport Name "flag" Position [795, 380, 825, 390] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 Port "2" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType "S-Function" Name "ch_decoding" Ports [2, 2, 0, 0, 0] Position [375, 294, 530, 416] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 FunctionName "s_chdecoding" Parameters "N_chdecode,poly,cType,K,nTail,nFrames,s""p0,sp1" PortCounts "[]" SFunctionModules "''" MaskType "wcdma" MaskDescription " CHANNEL CODING\n\nThe block ""performs convolutional coding. The parameters need to correspondd to the para""meters given for the channel decoder.\n\nThe block initializationn is done in"" file utra.m to make sure that all the blocks get same block size, scrambling"" codes etc. This block calls an s-function s_chcoding with arguments\n\n1) Si""ze of the input vector is the block size, N.\n2) Generator polynomials for co""nvolutional coder \n (initialization in coding_init.m)\n3) Coding type (1"" = convolution, 2 = turbo) \n4) Coding ratio\n5) Tail length\n" MaskPromptString "Input datablock size|Coding Type (1= Co""nvolutional 2= turbo)|Coding Gain|Tail length|Generator Polynomials for decod""ing|Number of frames|soft prob for 0|soft prob for 1" MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on,on,on,on" MaskCallbackString "|||||||" MaskEnableString "on,on,on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on,on,on" MaskVariables "N_chdecode=@1;cType=@2;K=@3;nTail=@4;po""ly=@5;nFrames=@6;sp0=@7;sp1=@8;" MaskDisplay "disp('CHANNEL\\nDECODING');\nport_label""('output',1,'bits');\nport_label('input',2,'flag');\nport_label('input',1,'co""ded bits');\nport_label('output',2,'flag');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "(nCRC+N)*K+nTail|cType|K|nTail|ch_poly|""nFrames|[1 0]|[ 0 1]" } Block { BlockType "S-Function" Name "rate_dematching" Ports [2, 2, 0, 0, 0] Position [605, 294, 745, 416] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 FunctionName "s_derate" Parameters "dr_in,dr_out,punk,nFrames" PortCounts "[]" SFunctionModules "''" MaskPromptString "Size of input block|Size of the output ""block|Max puncturation rate (DO NOT CHANGE)|Number of frames" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskVariables "dr_in=@1;dr_out=@2;punk=@3;nFrames=@4;" MaskDisplay "disp('RATE\\nMATCHING\\n\nwith flag')\n""port_label('input',2,'flag');\nport_label('output',2,'flag');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "nFrames*bits_in_frame|K*(N+nCRC)+nTail|""0.2|nFrames" } Block { BlockType "S-Function" Name "remove CRC" Ports [2, 2, 0, 0, 0] Position [130, 293, 280, 417] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 FunctionName "s_crc_remove" Parameters "nReCRC,nCRC,crc_poly,nFrames" PortCounts "[]" SFunctionModules "''" MaskPromptString "Size of input Block|Number of CRC bits|""Generator polynomy for CRC|Number of frames in one block" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskVariables "nReCRC=@1;nCRC=@2;crc_poly=@3;nFrames=@""4;" MaskDisplay "disp('CRC\\nCALCULATION');\nport_label(""'input',1,'input bits');\nport_label('input',2,'flag');\nport_label('output',""1,'bits');\nport_label('output',2,'crc');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "N+nCRC|nCRC|crc_poly|nFrames" } Block { BlockType Outport Name "Out1" Position [25, 320, 55, 330] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Outport Name "CRC" Position [25, 380, 55, 390] Orientation "left" NamePlacement "alternate" FontName "helvetica" FontSize 12 Port "2" OutputWhenDisabled "held" InitialOutput "[]" } Line { SrcBlock "remove CRC" SrcPort 2 DstBlock "CRC" DstPort 1 } Line { SrcBlock "remove CRC" SrcPort 1 DstBlock "Out1" DstPort 1 } Line { SrcBlock "ch_decoding" SrcPort 1 DstBlock "remove CRC" DstPort 1 } Line { SrcBlock "ch_decoding" SrcPort 2 DstBlock "remove CRC" DstPort 2 } Line { SrcBlock "flag" SrcPort 1 DstBlock "rate_dematching" DstPort 2 } Line { SrcBlock "in" SrcPort 1 DstBlock "rate_dematching" DstPort 1 } Line { SrcBlock "rate_dematching" SrcPort 1 DstBlock "ch_decoding" DstPort 1 } Line { SrcBlock "rate_dematching" SrcPort 2 DstBlock "ch_decoding" DstPort 2 } Annotation { Position [663, 158] Text "INITIALIZATION:\n\ninput_block_size = n""umber of input bits\nbits_in_frame = number of coded bits in a frame\nnFrames"" = number of frames in a block\nnCRC = number of CRC bits\ncrc_poly = CRC gen""erator polynomial\ncType = channel coding type\nK = coding ratio\nnTail = num""ber of tail bits\nch_poly = generator polynomials for encoder\n" FontName "helvetica" FontSize 14 } Annotation { Position [206, 132] Text "INPUT PARAMETERS: \n\nsizes\ncrc\nchCod""e" FontName "helvetica" FontSize 14 } Annotation { Position [428, 31] Text "CHANNEL DECODING MODULE\n" FontName "helvetica" FontSize 18 FontWeight "bold" } } } Block { BlockType SubSystem Name "dl_TX_channel_coding" Ports [2, 1, 0, 0, 0] Position [55, 18, 305, 167] ShowPortLabels on MaskPromptString "size vector|CRC Parameters|Channel coding p""arameters" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskVariables "sizes=@1;CRC=@2;chCode=@3;" MaskInitialization "N=sizes(1);bits_in_frame=sizes(2);nFrames=s""izes(3);\nnCRC=CRC(1);crc_poly=CRC(2);\ncType=chCode(1);K=chCode(2); nTail=ch""Code(3);ch_poly=[chCode(4:6)];" MaskDisplay "disp('ADDING CRC\\nCHANNEL CODING\\nRATE MA""TCHING')\nport_label('input',1,'input bits');\nport_label('input',2,'length')""\nport_label('output',1,'coded bits');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "sizes|crc|chCode" System { Name "dl_TX_channel_coding" Location [293, 491, 1560, 1238] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" AutoZoom on Block { BlockType Inport Name "bits" Position [60, 308, 90, 322] FontName "helvetica" FontSize 14 FontWeight "bold" Port "1" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType Inport Name "length" Position [225, 368, 255, 382] FontName "helvetica" FontSize 14 FontWeight "bold" Port "2" PortWidth "-1" SampleTime "-1" DataType "auto" SignalType "auto" Interpolate on } Block { BlockType "S-Function" Name "Add CRC2" Ports [1, 1, 0, 0, 0] Position [135, 287, 225, 343] ShowName off FontName "helvetica" FontSize 14 FontWeight "bold" FunctionName "s_crc_add" Parameters "N,nCRC,crc_poly,nFrames"
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -