📄 wireless_ofdm.mdl
字号:
SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" } Block { BlockType Terminator } } 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 "wireless_ofdm" Location [29, 74, 907, 586] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" ReportName "simulink-default.rpt" Block { BlockType Reference Name "Bernoulli Random\nBinary Generator" Ports [0, 1] Position [30, 63, 110, 107] SourceBlock "commrandsrc2/Bernoulli Binary\nGenerator" SourceType "Bernoulli Binary Generator" ShowPortLabels on P "0.5" seed "20394875" Ts "9.6e-6/96" frameBased on sampPerFrame "96" orient off } Block { BlockType SubSystem Name "Channel" Ports [1, 1] Position [720, 195, 780, 235] Orientation "down" NamePlacement "alternate" ShowName off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskPromptString "tap gain" MaskStyleString "edit" MaskTunableValueString "on" MaskEnableString "on" MaskVisibilityString "on" MaskToolTipString "on" MaskVariables "Gain=@1;" MaskDisplay "disp('Channel')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "0" System { Name "Channel" Location [335, 439, 884, 712] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In1" Position [25, 73, 55, 87] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Reference Name "AWGN\nChannel" Ports [1, 1] Position [280, 105, 320, 185] NamePlacement "alternate" ShowName off SourceBlock "commchan2/AWGN\nChannel" SourceType "AWGN Channel" ShowPortLabels on seed "1" noiseMode "Signal to noise ratio (Eb/No)" EbNodB "10" EsNodB "6" SNRdB "10" bitsPerSym "2" Ps "1/256" Tsym "(9.6e-6)/96" variance "1" } Block { BlockType Sum Name "Add" Ports [2, 1] Position [180, 122, 210, 153] InputSameDT off OutDataTypeMode "Inherit via internal rule" OutScaling "2^-10" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "Delay" Ports [1, 1] Position [100, 25, 155, 65] SourceBlock "dspsigops/Delay" SourceType "Delay" dly_unit "Samples" delay "15" ic_detail off dif_ic_for_ch off dif_ic_for_dly off ic "0" reset_popup "None" } Block { BlockType Gain Name "Gain1" Position [185, 60, 215, 90] ShowName off Gain "Gain" } Block { BlockType Outport Name "Out1" Position [385, 138, 415, 152] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In1" SrcPort 1 Points [0, 0; 15, 0] Branch { Points [0, 65] DstBlock "Add" DstPort 2 } Branch { Points [0, -35] DstBlock "Delay" DstPort 1 } } Line { SrcBlock "Delay" SrcPort 1 Points [5, 0; 0, 30] DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [0, 35; -55, 0] DstBlock "Add" DstPort 1 } Line { SrcBlock "Add" SrcPort 1 Points [25, 0; 0, 5] DstBlock "AWGN\nChannel" DstPort 1 } Line { SrcBlock "AWGN\nChannel" SrcPort 1 DstBlock "Out1" DstPort 1 } } } Block { BlockType Display Name "Display" Ports [1] Position [275, 184, 360, 246] ShowName off Decimation "1" } Block { BlockType Reference Name "Error Rate Calculation" Ports [2, 1] Position [170, 187, 255, 238] ShowName off SourceBlock "commsink2/Error Rate\nCalculation" SourceType "Error Rate Calculation" N "0" st_delay "0" cp_mode "Entire frame" subframe "[]" PMode "Port" WsName "ErrorVec" RsMode2 off stop off numErr "100" maxBits "1e6" } Block { BlockType SubSystem Name "OFDM Receiver" Ports [1, 2] Position [575, 323, 660, 392] Orientation "left" ShowName off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDisplay "disp('OFDM\\nReceiver');\nport_label('output',2"",'pilots')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "OFDM Receiver" Location [72, 96, 894, 306] Open on ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Received signal" Position [45, 43, 75, 57] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Reference Name "FFT" Ports [1, 1] Position [210, 33, 250, 67] DialogController "dspDDGCreate" DialogControllerArgs "DataTag0" SourceBlock "dspxfrm3/FFT" SourceType "FFT" CompMethod "Table lookup" TableOpt "Speed" BitRevOrder off additionalParams off SkipNorm off allowOverrides on firstCoeffMode "User-defined" firstCoeffWordLength "16" firstCoeffFracLength "15" outputMode "Same as input" outputWordLength "16" outputFracLength "15" accumMode "Same as product output" accumWordLength "32" accumFracLength "30" prodOutputMode "Same as input" prodOutputWordLength "32" prodOutputFracLength "30" roundingMode "Floor" overflowMode off LockScale off } Block { BlockType Reference Name "Frame Status\nConversion" Ports [1, 1] Position [290, 34, 335, 66] SourceBlock "dspobslib/Frame Status\nConversion" SourceType "Frame Status Conversion" ShowPortLabels off growRefPort off outframe "Frame-based" } Block { BlockType Selector Name "Remove\n zero-padding\nand\nreorder" Ports [1, 1] Position [375, 28, 425, 72] Elements "[39:64 1:27]" InputPortWidth "64" } Block { BlockType Reference Name "Remove\nPilots" Ports [1, 2] Position [455, 12, 500, 83] SourceBlock "dspindex/Multiport\nSelector" SourceType "Multiport Selector" rowsOrCols "Rows" idxCellArray "{[1:2 4:10 12:14 16:18 20:25 27:29],[3 11 1""9 26]}" idxErrMode "Clip Index" Port { PortNumber 1 Name "Data" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" ShowSigGenPortName on } Port { PortNumber 2 Name "Pilots" RTWStorageClass "Auto" DataLoggingNameMode "SignalName" ShowSigGenPortName on } } Block { BlockType Selector Name "Remove Cyclic\nPrefix" Ports [1, 1] Position [120, 28, 170, 72] Elements "[3:66]" InputPortWidth "66" } Block { BlockType Outport Name "Data" Position [585, 23, 615, 37] IconDisplay "Port number" BusOutputAsStruct off } Block { BlockType Outport Name "PIlots" Position [585, 58, 615, 72] Port "2" IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Frame Status\nConversion" SrcPort 1 DstBlock "Remove\n zero-padding\nand\nreorder" DstPort 1 } Line { SrcBlock "FFT" SrcPort 1 DstBlock "Frame Status\nConversion" DstPort 1 } Line { SrcBlock "Received signal" SrcPort 1 DstBlock "Remove Cyclic\nPrefix" DstPort 1 } Line { SrcBlock "Remove Cyclic\nPrefix" SrcPort 1 DstBlock "FFT" DstPort 1 } Line { SrcBlock "Remove\n zero-padding\nand\nreorder" SrcPort 1 DstBlock "Remove\nPilots" DstPort 1 } Line { Name "Data" Labels [0, 0] SrcBlock "Remove\nPilots" SrcPort 1 DstBlock "Data" DstPort 1 } Line { Name "Pilots" Labels [0, 0] SrcBlock "Remove\nPilots" SrcPort 2 DstBlock "PIlots" DstPort 1 } } } Block { BlockType SubSystem Name "OFDM Transmitter" Ports [1, 1] Position [575, 51, 660, 119] ShowName off TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDisplay "disp('OFDM\\nTransmitter')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" System { Name "OFDM Transmitter" Location [38, 106, 886, 490] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [55, 223, 85, 237] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Selector Name "Add Cyclic\nPrefix" Ports [1, 1] Position [660, 208, 710, 252] Elements "[63:64,1:64]" InputPortWidth "64" } Block { BlockType Reference Name "DSP\nConstant" Ports [0, 1] Position [285, 218, 320, 242] ShowName off SourceBlock "dspsrcs4/DSP\nConstant" SourceType "DSP Constant" ShowPortLabels on Value "0+0i" SampleMode "Discrete" discreteOutput "Frame-based" continuousOutput "Sample-based" sampTime "4e-6" framePeriod "4e-6" additionalParams off allowOverrides on dataType "Inherit from 'Constant value'" isSigned on wordLen "16" udDataType "sfix(16)" fracBitsMode "Best precision" numFracBits "15" InterpretAs1D "off" Ts "4e-6" FramebasedOutput "on" } Block { BlockType Gain Name "Gain" Position [290, 295, 320, 325] ShowName off Gain "-1" } Block { BlockType Reference Name "IFFT" Ports [1, 1] Position [570, 214, 610, 246] DialogController "dspDDGCreate" DialogControllerArgs "DataTag1" SourceBlock "dspxfrm3/IFFT" SourceType "IFFT" CompMethod "Table lookup" TableOpt "Speed" BitRevOrder off cs_in off SkipNorm off mode "Complex" additionalParams off allowOverrides on firstCoeffMode "User-defined" firstCoeffWordLength "16" firstCoeffFracLength "15" outputMode "Same as input" outputWordLength "16" outputFracLength "15" accumMode "Same as product output" accumWordLength "32" accumFracLength "30" prodOutputMode "Same as input" prodOutputWordLength "32" prodOutputFracLength "30" roundingMode "Floor" overflowMode off LockScale off }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -