?? koe_ch_auki.mdl
字號:
SampleTime "nFrames" SaveFormat "Matrix" } Block { BlockType ToWorkspace Name "To Workspace26" Position [60, 440, 120, 470] Orientation "left" NamePlacement "alternate" ShowName off VariableName "out" Buffer "inf" Decimation "1" SampleTime "nFrames" SaveFormat "Matrix" } Block { BlockType Reference Name "ch_coding" Ports [2, 2, 0, 0, 0] Position [355, 82, 495, 178] ForegroundColor "blue" SourceBlock "utra_lib/Channel coding block/dl_TX_channel""_coding/ch_coding" SourceType "wcdma" N_chcode "N+nCRC" cType "cType" K "K" nTail "nTail" poly "ch_poly" nFrames "nFrames" } Block { BlockType "S-Function" Name "ch_decoding" Ports [2, 2, 0, 0, 0] Position [455, 424, 595, 546] Orientation "left" ForegroundColor "blue" NamePlacement "alternate" FunctionName "s_chdecoding" Parameters "N_chdecode,poly,cType,K,nTail,nFrames,sp0,s""p1" PortCounts "[]" SFunctionModules "''" MaskType "wcdma" MaskDescription " CHANNEL CODING\n\nThe block perf""orms convolutional coding. The parameters need to correspondd to the paramete""rs given for the channel decoder.\n\nThe block initializationn is done in fil""e utra.m to make sure that all the blocks get same block size, scrambling cod""es etc. This block calls an s-function s_chcoding with arguments\n\n1) Size o""f the input vector is the block size, N.\n2) Generator polynomials for convol""utional coder \n (initialization in coding_init.m)\n3) Coding type (1 = c""onvolution, 2 = turbo) \n4) Coding ratio\n5) Tail length\n" MaskPromptString "Input datablock size|Coding Type (1= Convol""utional 2= turbo)|Coding Gain|Tail length|Generator Polynomials for decoding|""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;poly=@""5;nFrames=@6;sp0=@7;sp1=@8;" MaskDisplay "disp('CHANNEL\\n\\nDECODING');\nport_label(""'output',1,'bits');\nport_label('input',2,'flag');\nport_label('input',1,'cod""ed bits');\nport_label('output',2,'flag');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "(nCRC+N)*K+nTail|cType|K|nTail|ch_poly|nFra""mes|[1 0]|[ 0 1]" } Block { BlockType Reference Name "data source 01 ..10" Ports [0, 1, 0, 0, 0] Position [45, 70, 135, 130] SourceBlock "utra_lib/Source blocks/data source 01 ..10" SourceType "koe" nFrames "nFrames" N "input_block_size" } Block { BlockType "S-Function" Name "rate_dematching" Ports [2, 2, 0, 0, 0] Position [675, 424, 795, 546] Orientation "left" NamePlacement "alternate" FunctionName "s_derate" Parameters "dr_in,dr_out,punk,nFrames" PortCounts "[]" SFunctionModules "''" MaskPromptString "Size of input block|Size of the output bloc""k|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('De ratematching')\nport_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 [205, 425, 345, 545] Orientation "left" NamePlacement "alternate" FunctionName "s_crc_remove" Parameters "nReCRC,nCRC,crc_poly,nFrames" PortCounts "[]" SFunctionModules "''" MaskPromptString "Size of input Block|Number of CRC bits|Gene""rator 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\\n\\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 Mux Name "tail_mux" Ports [2, 1, 0, 0, 0] Position [550, 80, 555, 180] ShowName off FontName "helvetica" FontSize 12 Inputs "2" DisplayOption "bar" } Line { SrcBlock "Add CRC2" SrcPort 1 DstBlock "ch_coding" DstPort 1 } Line { SrcBlock "ch_coding" SrcPort 1 DstBlock "tail_mux" DstPort 1 } Line { SrcBlock "ch_coding" SrcPort 2 DstBlock "tail_mux" DstPort 2 } Line { SrcBlock "tail_mux" SrcPort 1 DstBlock "Rate Matching" DstPort 1 } Line { SrcBlock "rate_dematching" SrcPort 2 DstBlock "ch_decoding" DstPort 2 } Line { SrcBlock "rate_dematching" SrcPort 1 DstBlock "ch_decoding" DstPort 1 } Line { SrcBlock "ch_decoding" SrcPort 2 DstBlock "remove CRC" DstPort 2 } Line { SrcBlock "ch_decoding" SrcPort 1 DstBlock "remove CRC" DstPort 1 } Line { SrcBlock "Rate Matching" SrcPort 1 Points [175, 0; 0, 325] DstBlock "rate_dematching" DstPort 1 } Line { SrcBlock "Constant2" SrcPort 1 Points [-30, 0] DstBlock "rate_dematching" DstPort 2 } Line { SrcBlock "Constant" SrcPort 1 Points [0, -5] DstBlock "ch_coding" DstPort 2 } Line { SrcBlock "data source 01 ..10" SrcPort 1 Points [10, 0] Branch { Points [35, 0] DstBlock "Add CRC2" DstPort 1 } Branch { Points [0, 160] DstBlock "Direct ber calculation" DstPort 1 } } Line { SrcBlock "remove CRC" SrcPort 2 Points [-35, 0] DstBlock "To Workspace24" DstPort 1 } Line { SrcBlock "remove CRC" SrcPort 1 Points [-15, 0; 0, -5] Branch { Points [0, -140] DstBlock "Direct ber calculation" DstPort 2 } Branch { Points [-50, 0] DstBlock "To Workspace26" DstPort 1 } } Line { SrcBlock "Direct ber calculation" SrcPort 1 Points [85, 0] Branch { DstBlock "To Workspace23" DstPort 1 } Branch { Points [0, 5] DstBlock "Display7" DstPort 1 } } } } }}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -