⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 koe_buffer.mdl

📁 两个Nokia研究人员写的W-CDMA的仿真代码。 包含信道编码
💻 MDL
字号:
Model {  Name			  "koe_buffer"  Version		  3.00  SimParamPage		  "Solver"  SampleTimeColors	  on  InvariantConstants	  off  WideVectorLines	  off  ShowLineWidths	  on  ShowPortDataTypes	  off  StartTime		  "0.0"  StopTime		  "4"  SolverMode		  "Auto"  Solver		  "ode45"  RelTol		  "1e-3"  AbsTol		  "auto"  Refine		  "1"  MaxStep		  "auto"  InitialStep		  "auto"  FixedStep		  "auto"  MaxOrder		  5  OutputOption		  "RefineOutputTimes"  OutputTimes		  "[]"  LoadExternalInput	  off  ExternalInput		  "[t, u]"  SaveTime		  on  TimeSaveName		  "tout"  SaveState		  off  StateSaveName		  "xout"  SaveOutput		  on  OutputSaveName	  "yout"  LoadInitialState	  off  InitialState		  "xInitial"  SaveFinalState	  off  FinalStateName	  "xFinal"  SaveFormat		  "Matrix"  LimitMaxRows		  off  MaxRows		  "1000"  Decimation		  "1"  AlgebraicLoopMsg	  "warning"  MinStepSizeMsg	  "warning"  UnconnectedInputMsg	  "warning"  UnconnectedOutputMsg	  "warning"  UnconnectedLineMsg	  "warning"  InheritedTsInSrcMsg	  "warning"  IntegerOverflowMsg	  "warning"  UnnecessaryDatatypeConvMsg "none"  Int32ToFloatConvMsg	  "warning"  SignalLabelMismatchMsg  "none"  ConsistencyChecking	  "off"  ZeroCross		  on  SimulationMode	  "normal"  BlockDataTips		  on  BlockParametersDataTip  on  BlockAttributesDataTip  off  BlockPortWidthsDataTip  off  BlockDescriptionStringDataTip	off  BlockMaskParametersDataTip off  ToolBar		  on  StatusBar		  on  BrowserShowLibraryLinks off  BrowserLookUnderMasks	  off  OptimizeBlockIOStorage  on  BufferReuse		  on  BooleanDataType	  off  RTWSystemTargetFile	  "grt.tlc"  RTWInlineParameters	  off  RTWRetainRTWFile	  off  RTWTemplateMakefile	  "grt_default_tmf"  RTWMakeCommand	  "make_rtw"  RTWGenerateCodeOnly	  off  ExtModeMexFile	  "ext_comm"  ExtModeBatchMode	  off  ExtModeTrigType	  "manual"  ExtModeTrigMode	  "oneshot"  ExtModeTrigPort	  "1"  ExtModeTrigElement	  "any"  ExtModeTrigDuration	  1000  ExtModeTrigHoldOff	  0  ExtModeTrigDelay	  0  ExtModeTrigDirection	  "rising"  ExtModeTrigLevel	  0  ExtModeArchiveMode	  "off"  ExtModeAutoIncOneShot	  off  ExtModeIncDirWhenArm	  off  ExtModeAddSuffixToVar	  off  ExtModeWriteAllDataToWs off  ExtModeArmWhenConnect	  off  PreLoadFcn		  "N=20;"  Created		  "Wed Jun  2 11:10:56 1999"  Creator		  "maarit"  UpdateHistory		  "UpdateHistoryNever"  ModifiedByFormat	  "%<Auto>"  LastModifiedBy	  "maarit"  ModifiedDateFormat	  "%<Auto>"  LastModifiedDate	  "Tue Jun 22 08:47:20 1999"  ModelVersionFormat	  "1.%<AutoIncrement:57>"  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		    "koe_buffer"    Location		    [1, 379, 894, 1038]    Open		    on    ModelBrowserVisibility  off    ModelBrowserWidth	    200    ScreenColor		    "white"    PaperOrientation	    "landscape"    PaperPositionMode	    "auto"    PaperType		    "usletter"    PaperUnits		    "inches"    ZoomFactor		    "100"    AutoZoom		    on    ReportName		    "simulink-default.rpt"    Block {      BlockType		      SubSystem      Name		      " 15"      Ports		      [0, 1, 0, 0, 0]      Position		      [385, 315, 465, 365]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      FontName		      "helvetica"      FontSize		      14      FontWeight	      "bold"      ShowPortLabels	      on      MaskPromptString	      "koko"      MaskStyleString	      "edit"      MaskTunableValueString  "on"      MaskEnableString	      "on"      MaskVisibilityString    "on"      MaskVariables	      "N=@1;"      MaskDisplay	      "disp('Data\\nramp');"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "autoscale"      MaskValueString	      "N"      System {	Name			" 15"	Location		[685, 54, 1257, 779]	Open			off	ModelBrowserVisibility	off	ModelBrowserWidth	200	ScreenColor		"white"	PaperOrientation	"landscape"	PaperPositionMode	"auto"	PaperType		"usletter"	PaperUnits		"inches"	ZoomFactor		"100"	AutoZoom		on	Block {	  BlockType		  Constant	  Name			  "Constant5"	  Position		  [25, 52, 140, 88]	  ShowName		  off	  Value			  "0*(1:N)"	}	Block {	  BlockType		  Display	  Name			  "Display1"	  Ports			  [1, 0, 0, 0, 0]	  Position		  [335, 61, 425, 599]	  Format		  "short"	  Decimation		  "1"	  Floating		  off	  SampleTime		  "-1"	}	Block {	  BlockType		  Reference	  Name			  "Ramp"	  Ports			  [0, 1, 0, 0, 0]	  Position		  [125, 105, 155, 135]	  SourceBlock		  "simulink3/Sources/Ramp"	  SourceType		  "Ramp"	  slope			  "1"	  start			  "0"	  X0			  "0"	}	Block {	  BlockType		  Sum	  Name			  "Sum"	  Ports			  [2, 1, 0, 0, 0]	  Position		  [165, 60, 185, 80]	  ShowName		  off	  IconShape		  "round"	  Inputs		  "|++"	  SaturateOnIntegerOverflow on	}	Block {	  BlockType		  Outport	  Name			  "Out1"	  Position		  [245, 63, 275, 77]	  ShowName		  off	  Port			  "1"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Line {	  SrcBlock		  "Sum"	  SrcPort		  1	  Points		  [25, 0]	  Branch {	    Points		    [0, 260]	    DstBlock		    "Display1"	    DstPort		    1	  }	  Branch {	    DstBlock		    "Out1"	    DstPort		    1	  }	}	Line {	  SrcBlock		  "Ramp"	  SrcPort		  1	  Points		  [15, 0]	  DstBlock		  "Sum"	  DstPort		  2	}	Line {	  SrcBlock		  "Constant5"	  SrcPort		  1	  DstBlock		  "Sum"	  DstPort		  1	}      }    }    Block {      BlockType		      SubSystem      Name		      " 7"      Ports		      [0, 1, 0, 0, 0]      Position		      [545, 100, 625, 150]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      FontName		      "helvetica"      FontSize		      14      FontWeight	      "bold"      ShowPortLabels	      on      MaskPromptString	      "koko"      MaskStyleString	      "edit"      MaskTunableValueString  "on"      MaskEnableString	      "on"      MaskVisibilityString    "on"      MaskVariables	      "N=@1;"      MaskDisplay	      "disp('Data\\n 1:N');"      MaskIconFrame	      on      MaskIconOpaque	      on      MaskIconRotate	      "none"      MaskIconUnits	      "normalized"      MaskValueString	      "12"      System {	Name			" 7"	Location		[562, 523, 972, 1114]	Open			off	ModelBrowserVisibility	off	ModelBrowserWidth	200	ScreenColor		"white"	PaperOrientation	"landscape"	PaperPositionMode	"auto"	PaperType		"usletter"	PaperUnits		"inches"	ZoomFactor		"100"	AutoZoom		on	Block {	  BlockType		  Constant	  Name			  "Constant5"	  Position		  [25, 52, 140, 88]	  ShowName		  off	  Value			  "(1:N)"	}	Block {	  BlockType		  Display	  Name			  "Display1"	  Ports			  [1, 0, 0, 0, 0]	  Position		  [225, 76, 365, 354]	  Format		  "short"	  Decimation		  "1"	  Floating		  off	  SampleTime		  "-1"	}	Block {	  BlockType		  Outport	  Name			  "Out1"	  Position		  [190, 63, 220, 77]	  ShowName		  off	  Port			  "1"	  OutputWhenDisabled	  "held"	  InitialOutput		  "[]"	}	Line {	  SrcBlock		  "Constant5"	  SrcPort		  1	  Points		  [15, 0]	  Branch {	    DstBlock		    "Out1"	    DstPort		    1	  }	  Branch {	    Points		    [0, 145]	    DstBlock		    "Display1"	    DstPort		    1	  }	}      }    }    Block {      BlockType		      Constant      Name		      "Constant1"      Position		      [475, 75, 505, 105]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      Value		      "6"    }    Block {      BlockType		      Constant      Name		      "Constant2"      Position		      [465, 145, 495, 175]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      Value		      "6"    }    Block {      BlockType		      Display      Name		      "Display"      Ports		      [1, 0, 0, 0, 0]      Position		      [15, 79, 100, 121]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      Format		      "short"      Decimation	      "1"      Floating		      off      SampleTime	      "-1"    }    Block {      BlockType		      Display      Name		      "Display1"      Ports		      [1, 0, 0, 0, 0]      Position		      [50, 173, 145, 207]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      Format		      "short"      Decimation	      "1"      Floating		      off      SampleTime	      "-1"    }    Block {      BlockType		      Terminator      Name		      "Terminator6"      Position		      [320, 335, 340, 355]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off    }    Block {      BlockType		      ToWorkspace      Name		      "To Workspace"      Position		      [105, 35, 165, 65]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      VariableName	      "q1"      Buffer		      "inf"      Decimation	      "1"      SampleTime	      "1"      SaveFormat	      "Matrix"    }    Block {      BlockType		      ToWorkspace      Name		      "To Workspace1"      Position		      [195, 130, 255, 160]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off      VariableName	      "q2"      Buffer		      "inf"      Decimation	      "1"      SampleTime	      "1"      SaveFormat	      "Matrix"    }    Block {      BlockType		      ToWorkspace      Name		      "To Workspace2"      Position		      [505, 15, 565, 45]      ShowName		      off      VariableName	      "in"      Buffer		      "inf"      Decimation	      "1"      SampleTime	      "-1"      SaveFormat	      "Matrix"    }    Block {      BlockType		      ToWorkspace      Name		      "To Workspace3"      Position		      [550, 160, 610, 190]      ShowName		      off      VariableName	      "in2"      Buffer		      "inf"      Decimation	      "1"      SampleTime	      "-1"      SaveFormat	      "Matrix"    }    Block {      BlockType		      Width      Name		      "Width2"      Position		      [135, 80, 165, 110]      Orientation	      "left"      NamePlacement	      "alternate"      ShowName		      off    }    Block {      BlockType		      Reference      Name		      "data source 01 ..10"      Ports		      [0, 1, 0, 0, 0]      Position		      [650, 25, 740, 85]      Orientation	      "left"      NamePlacement	      "alternate"      SourceBlock	      "utra_lib/Source blocks/data source 01 ..10"      SourceType	      "koe"      nFrames		      "1/16"      N			      "12"    }    Block {      BlockType		      Reference      Name		      "demodulation1"      Ports		      [4, 2, 0, 0, 0]      Position		      [285, 33, 450, 182]      Orientation	      "left"      ForegroundColor	      "blue"      NamePlacement	      "alternate"      FontName		      "helvetica"      SourceBlock	      "utra_lib/Modulation  blocks/dl_RX_demodulation/""demodulation"      SourceType	      ""      nBuff_in		      "12"      nBuff_out		      "10*16"      nSlot		      "16"      nControl		      "2"    }    Line {      SrcBlock		      "demodulation1"      SrcPort		      1      Points		      [-80, 0]      Branch {	Points			[-20, 0]	DstBlock		"To Workspace"	DstPort			1      }      Branch {	Points			[-20, 0]	DstBlock		"Width2"	DstPort			1      }    }    Line {      SrcBlock		      "Width2"      SrcPort		      1      Points		      [-15, 0]      DstBlock		      "Display"      DstPort		      1    }    Line {      SrcBlock		      " 15"      SrcPort		      1      Points		      [-25, 0]      DstBlock		      "Terminator6"      DstPort		      1    }    Line {      SrcBlock		      "Constant1"      SrcPort		      1      DstBlock		      "demodulation1"      DstPort		      2    }    Line {      SrcBlock		      "Constant2"      SrcPort		      1      Points		      [0, 0]      DstBlock		      "demodulation1"      DstPort		      4    }    Line {      SrcBlock		      "data source 01 ..10"      SrcPort		      1      Points		      [-165, 0]      Branch {	DstBlock		"demodulation1"	DstPort			1      }      Branch {	Points			[0, -25]	DstBlock		"To Workspace2"	DstPort			1      }    }    Line {      SrcBlock		      " 7"      SrcPort		      1      Points		      [-30, 0]      Branch {	DstBlock		"demodulation1"	DstPort			3      }      Branch {	Points			[0, 50]	DstBlock		"To Workspace3"	DstPort			1      }    }    Line {      SrcBlock		      "demodulation1"      SrcPort		      2      Points		      [-5, 0]      Branch {	DstBlock		"To Workspace1"	DstPort			1      }      Branch {	Points			[0, 45]	DstBlock		"Display1"	DstPort			1      }    }    Annotation {      Position		      [588, 204]      Text		      "NOTE: REMOVES CONTROL BITS FROM THE BEGINNING"    }    Annotation {      Position		      [505, 531]      Text		      "PreLoadFcn set \nN=20"      FontName		      "helvetica"      FontSize		      14      FontWeight	      "bold"    }    Annotation {      Position		      [150, 339]      Text		      "For nCode = 256  \nTFI = 2\nTPC = 3\n(Pilot = 8"" removed by rake)\ncoded bits in slot = 7 \n-> coded bits in frame = 112\n\no""utput from rake 2*((7+5)/2) = 12\nmodulation -> /2\nroom for buffering -> 2*"      FontName		      "helvetica"      FontSize		      14    }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -