www.pudn.com > wcdma_simulink.rar > koe_chcode_crc_mask.mdl


Model {
  Name			  "koe_chcode_crc_mask"
  Version		  3.00
  SimParamPage		  "Solver"
  SampleTimeColors	  off
  InvariantConstants	  off
  WideVectorLines	  off
  ShowLineWidths	  on
  ShowPortDataTypes	  off
  StartTime		  "0.0"
  StopTime		  "10.0"
  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
  Created		  "Wed Jun 23 21:34:48 1999"
  Creator		  "maarit"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%"
  LastModifiedBy	  "maarit"
  ModifiedDateFormat	  "%"
  LastModifiedDate	  "Thu Jun 24 12:03:37 1999"
  ModelVersionFormat	  "1.%"
  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_chcode_crc_mask"
    Location		    [601, 150, 1101, 410]
    Open		    off
    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		      "dl_empty1"
      Ports		      [0, 0, 0, 0, 0]
      Position		      [93, 30, 292, 191]
      Orientation	      "left"
      ShowPortLabels	      on
      MaskPromptString	      "TX channel Type|Channel coding  |Coding ratio  "
"     |Spreading code length|Inter frame interleaver |Number of frames for int"
"er frame interleaver|Number of columns for inter frame interleaver |Intra fra"
"me interleaver (on or off)"
      MaskStyleString	      "popup(Dedicated Transport channel|Primary commo"
"n control|Secondary common control (FACH or PCH)),popup(Convolutional coding|"
"Turbo),popup(2|3),popup(4|8|16|32|64|128|256),popup(block interleaver|multist"
"age interleaver),edit,edit,checkbox"
      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	      "tx_ch=@1;cType=@2;Kindex=@3;nC=@4;Inter_int_mod"
"e=@5;nFrames=@6;cols=@7;Intra_int_flag=@8;"
      MaskInitialization      "nCode=2^(nC+1);\n      % if you want to specify"
" which code is used define ncode=[nCode index]\n[sizes,crc,chCode,C,control]="
"dl_start(nCode,cType,Kindex,nFrames,tx_ch);\ninput_block_size=sizes(1);N=size"
"s(1);bits_in_frame=sizes(2);nFrames=sizes(3);\nnSlot=sizes(5); chips_in_slot="
"sizes(6);nCRC=crc(1);crc_poly=crc(2);\ncType=chCode(1);K=chCode(2); nTail=chC"
"ode(3);ch_poly=[chCode(4:6)];\nnPilot=control(1);TPC=control(2);TFI=control(3"
");"
      MaskDisplay	      "disp('EMPTY SUBSYSTEM MASK\\n\\nDOWNLINK\\n\\nT"
"ransportChannel\\n\\n\\n\\n\\n1 - Decicated transport \nchannel\\n2 - Primary"
" common control channel\\n3 - Secondary common control channel')\ndisp(tx_ch)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "Dedicated Transport channel|Convolutional codin"
"g|3|256|block interleaver|1|1|off"
      System {
	Name			"dl_empty1"
	Location		[59, 133, 1035, 1112]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
	Block {
	  BlockType		  Reference
	  Name			  "Add CRC2"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [145, 42, 235, 98]
	  ShowName		  off
	  FontName		  "helvetica"
	  SourceBlock		  "utra_lib/Channel coding block/dl_TX_channel"
"_coding/Add CRC2"
	  SourceType		  ""
	  N			  "N"
	  nCRC			  "nCRC"
	  crc_poly		  "crc_poly"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Add CRC3"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [185, 507, 275, 563]
	  ShowName		  off
	  FontName		  "helvetica"
	  SourceBlock		  "utra_lib/Channel coding block/dl_TX_channel"
"_coding/Add CRC2"
	  SourceType		  ""
	  N			  "N"
	  nCRC			  "nCRC"
	  crc_poly		  "crc_poly"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [165, 104, 235, 136]
	  ShowName		  off
	  Value			  "N+nCRC"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [620, 415, 650, 445]
	  Orientation		  "left"
	  Value			  "1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant2"
	  Position		  [205, 569, 275, 601]
	  ShowName		  off
	  Value			  "N+nCRC"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant3"
	  Position		  [525, 895, 555, 925]
	  Orientation		  "left"
	  Value			  "1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Direct ber calculation"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [155, 199, 340, 301]
	  SourceBlock		  "utra_lib/Test functions/Direct ber calculat"
"ion"
	  SourceType		  ""
	  N			  "N"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Direct ber calculation1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [195, 649, 380, 751]
	  SourceBlock		  "utra_lib/Test functions/Direct ber calculat"
"ion"
	  SourceType		  ""
	  N			  "N"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Display
	  Name			  "Display"
	  Ports			  [1, 0, 0, 0, 0]
	  Position		  [390, 200, 480, 230]
	  ShowName		  off
	  Format		  "short"
	  Decimation		  "1"
	  Floating		  off
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Display
	  Name			  "Display1"
	  Ports			  [1, 0, 0, 0, 0]
	  Position		  [425, 640, 515, 670]
	  ShowName		  off
	  Format		  "short"
	  Decimation		  "1"
	  Floating		  off
	  SampleTime		  "-1"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Rate Matching"
	  Ports			  [1, 1, 0, 0, 0]
	  Position		  [525, 69, 610, 121]
	  SourceBlock		  "utra_lib/Channel coding block/dl_TX_channel"
"_coding/Rate Matching"
	  SourceType		  ""
	  r_in			  "K*(N+nCRC)+nTail"
	  r_out			  "nFrames*bits_in_frame"
	  punk			  "0.2"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace23"
	  Position		  [395, 235, 455, 265]
	  ShowName		  off
	  VariableName		  "ber"
	  Buffer		  "inf"
	  Decimation		  "1"
	  SampleTime		  "nFrames"
	  SaveFormat		  "Matrix"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace24"
	  Position		  [110, 470, 170, 500]
	  ShowName		  off
	  VariableName		  "crc"
	  Buffer		  "inf"
	  Decimation		  "1"
	  SampleTime		  "nFrames"
	  SaveFormat		  "Matrix"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace25"
	  Position		  [135, 315, 195, 345]
	  ShowName		  off
	  VariableName		  "out"
	  Buffer		  "inf"
	  Decimation		  "1"
	  SampleTime		  "nFrames"
	  SaveFormat		  "Matrix"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace26"
	  Position		  [105, 160, 165, 190]
	  ShowName		  off
	  VariableName		  "in"
	  Buffer		  "inf"
	  Decimation		  "1"
	  SampleTime		  "nFrames"
	  SaveFormat		  "Matrix"
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace27"
	  Position		  [435, 685, 495, 715]
	  ShowName		  off
	  VariableName		  "ber2"
	  Buffer		  "inf"
	  Decimation		  "1"
	  SampleTime		  "nFrames"
	  SaveFormat		  "Matrix"
	}
	Block {
	  BlockType		  Reference
	  Name			  "ch_coding"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [310, 47, 450, 143]
	  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		  Reference
	  Name			  "ch_coding1"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [350, 512, 490, 608]
	  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		  Reference
	  Name			  "ch_decoding"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [280, 362, 380, 453]
	  Orientation		  "left"
	  ForegroundColor	  "blue"
	  NamePlacement		  "alternate"
	  SourceBlock		  "utra_lib/Channel coding block/dl_RX_channel"
"_decoding/ch_decoding"
	  SourceType		  "wcdma"
	  N_chdecode		  "(nCRC+N)*K+nTail"
	  cType			  "cType"
	  K			  "K"
	  nTail			  "nTail"
	  poly			  "ch_poly"
	  nFrames		  "nFrames"
	  sp0			  "[1 0]"
	  sp1			  "[ 0 1]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "ch_decoding1"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [320, 811, 420, 964]
	  Orientation		  "left"
	  ForegroundColor	  "blue"
	  NamePlacement		  "alternate"
	  SourceBlock		  "utra_lib/Channel coding block/dl_RX_channel"
"_decoding/ch_decoding"
	  SourceType		  "wcdma"
	  N_chdecode		  "(nCRC+N)*K+nTail"
	  cType			  "cType"
	  K			  "K"
	  nTail			  "nTail"
	  poly			  "ch_poly"
	  nFrames		  "nFrames"
	  sp0			  "[1 0]"
	  sp1			  "[ 0 1]"
	}
	Block {
	  BlockType		  Reference
	  Name			  "data source 01 ..10"
	  Ports			  [0, 1, 0, 0, 0]
	  Position		  [32, 15, 118, 55]
	  Orientation		  "down"
	  NamePlacement		  "alternate"
	  ShowName		  off
	  SourceBlock		  "utra_lib/Source blocks/data source 01 ..10"
	  SourceType		  "koe"
	  nFrames		  "nFrames"
	  N			  "N"
	}
	Block {
	  BlockType		  Reference
	  Name			  "data source 01 ..11"
	  Ports			  [0, 1, 0, 0, 0]
	  Position		  [20, 510, 110, 550]
	  ShowName		  off
	  SourceBlock		  "utra_lib/Source blocks/data source 01 ..10"
	  SourceType		  "koe"
	  nFrames		  "nFrames"
	  N			  "N"
	}
	Block {
	  BlockType		  Reference
	  Name			  "rate_dematching"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [440, 361, 570, 454]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  SourceBlock		  "utra_lib/Channel coding block/dl_RX_channel"
"_decoding/rate_dematching"
	  SourceType		  ""
	  dr_in			  "nFrames*bits_in_frame"
	  dr_out		  "K*(N+nCRC)+nTail"
	  punk			  "0.2"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Reference
	  Name			  "remove CRC"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [135, 362, 250, 453]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  SourceBlock		  "utra_lib/Channel coding block/dl_RX_channel"
"_decoding/remove CRC"
	  SourceType		  ""
	  nReCRC		  "N+nCRC"
	  nCRC			  "nCRC"
	  crc_poly		  "crc_poly"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Reference
	  Name			  "remove CRC1"
	  Ports			  [2, 2, 0, 0, 0]
	  Position		  [200, 813, 285, 962]
	  Orientation		  "left"
	  NamePlacement		  "alternate"
	  SourceBlock		  "utra_lib/Channel coding block/dl_RX_channel"
"_decoding/remove CRC"
	  SourceType		  ""
	  nReCRC		  "N+nCRC"
	  nCRC			  "nCRC"
	  crc_poly		  "crc_poly"
	  nFrames		  "nFrames"
	}
	Block {
	  BlockType		  Mux
	  Name			  "tail_mux"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [495, 45, 500, 145]
	  ShowName		  off
	  FontName		  "helvetica"
	  FontSize		  12
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "tail_mux1"
	  Ports			  [2, 1, 0, 0, 0]
	  Position		  [535, 510, 540, 610]
	  ShowName		  off
	  FontName		  "helvetica"
	  FontSize		  12
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  DstBlock		  "ch_coding"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add CRC2"
	  SrcPort		  1
	  DstBlock		  "ch_coding"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "data source 01 ..10"
	  SrcPort		  1
	  Points		  [0, 10]
	  Branch {
	    DstBlock		    "Add CRC2"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 105]
	    Branch {
	      Points		      [0, 50]
	      DstBlock		      "Direct ber calculation"
	      DstPort		      1
	    }
	    Branch {
	      DstBlock		      "To Workspace26"
	      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		  "ch_decoding1"
	  SrcPort		  2
	  DstBlock		  "remove CRC1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constant3"
	  SrcPort		  1
	  Points		  [-85, 0]
	  DstBlock		  "ch_decoding1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "remove CRC"
	  SrcPort		  2
	  Points		  [-35, 0]
	  DstBlock		  "To Workspace24"
	  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		  "remove CRC"
	  SrcPort		  1
	  Points		  [-55, 0; 0, -55]
	  Branch {
	    Points		    [0, -55]
	    DstBlock		    "Direct ber calculation"
	    DstPort		    2
	  }
	  Branch {
	    DstBlock		    "To Workspace25"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Direct ber calculation"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    DstBlock		    "To Workspace23"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, -35]
	    DstBlock		    "Display"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Rate Matching"
	  SrcPort		  1
	  Points		  [60, 0; 0, 290]
	  DstBlock		  "rate_dematching"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "rate_dematching"
	  SrcPort		  1
	  DstBlock		  "ch_decoding"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  DstBlock		  "rate_dematching"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "rate_dematching"
	  SrcPort		  2
	  DstBlock		  "ch_decoding"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Add CRC3"
	  SrcPort		  1
	  DstBlock		  "ch_coding1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "ch_decoding1"
	  SrcPort		  1
	  DstBlock		  "remove CRC1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "ch_coding1"
	  SrcPort		  1
	  DstBlock		  "tail_mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Direct ber calculation1"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, -45]
	    DstBlock		    "Display1"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "To Workspace27"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Constant2"
	  SrcPort		  1
	  DstBlock		  "ch_coding1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "ch_coding1"
	  SrcPort		  2
	  DstBlock		  "tail_mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "tail_mux1"
	  SrcPort		  1
	  Points		  [0, 290]
	  DstBlock		  "ch_decoding1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "remove CRC1"
	  SrcPort		  1
	  Points		  [-35, 0; 0, -125]
	  DstBlock		  "Direct ber calculation1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "data source 01 ..11"
	  SrcPort		  1
	  Points		  [25, 0]
	  Branch {
	    Points		    [30, 0]
	    DstBlock		    "Add CRC3"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 145]
	    DstBlock		    "Direct ber calculation1"
	    DstPort		    1
	  }
	}
	Annotation {
	  Position		  [290, 27]
	  Text			  "N = input block size"
	}
	Annotation {
	  Position		  [315, 592]
	  Text			  "N = input block size"
	}
      }
    }
  }
}