Model {
  Name			  "tstbchcd"
  Version		  4.00
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  BlockNameDataTip	  off
  BlockParametersDataTip  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  PreLoadFcn		  "N_bch_demo=15;K_bch_demo=5;T_bch_demo=3;"
  Created		  "Tue Oct 20 09:09:36 1998"
  Creator		  "tdelve"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "ysong"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Wed Aug 23 10:20:07 2000"
  ModelVersionFormat	  "1.%<AutoIncrement:10>"
  ConfigurationManager	  "none"
  SimParamPage		  "Solver"
  StartTime		  "0.0"
  StopTime		  "99999"
  SolverMode		  "SingleTasking"
  Solver		  "VariableStepDiscrete"
  RelTol		  "1e-3"
  AbsTol		  "1e-6"
  Refine		  "1"
  MaxStep		  "auto"
  MinStep		  "auto"
  MaxNumMinSteps	  "-1"
  InitialStep		  "auto"
  FixedStep		  "auto"
  MaxOrder		  5
  OutputOption		  "RefineOutputTimes"
  OutputTimes		  "[]"
  LoadExternalInput	  off
  ExternalInput		  "[t, u]"
  SaveTime		  off
  TimeSaveName		  "tout"
  SaveState		  off
  StateSaveName		  "xout"
  SaveOutput		  off
  OutputSaveName	  "yout"
  LoadInitialState	  off
  InitialState		  "xInitial"
  SaveFinalState	  off
  FinalStateName	  "xFinal"
  SaveFormat		  "Array"
  LimitDataPoints	  off
  MaxDataPoints		  "1000"
  Decimation		  "1"
  AlgebraicLoopMsg	  "warning"
  MinStepSizeMsg	  "warning"
  UnconnectedInputMsg	  "warning"
  UnconnectedOutputMsg	  "warning"
  UnconnectedLineMsg	  "warning"
  InheritedTsInSrcMsg	  "warning"
  SingleTaskRateTransMsg  "none"
  MultiTaskRateTransMsg	  "error"
  IntegerOverflowMsg	  "warning"
  CheckForMatrixSingularity "none"
  UnnecessaryDatatypeConvMsg "none"
  Int32ToFloatConvMsg	  "warning"
  SignalLabelMismatchMsg  "none"
  LinearizationMsg	  "none"
  VectorMatrixConversionMsg "none"
  SfunCompatibilityCheckMsg "none"
  BlockPriorityViolationMsg "warning"
  ArrayBoundsChecking	  "none"
  ConsistencyChecking	  "none"
  ZeroCross		  on
  Profile		  off
  SimulationMode	  "normal"
  RTWSystemTargetFile	  "grt.tlc"
  RTWInlineParameters	  off
  RTWRetainRTWFile	  off
  RTWTemplateMakefile	  "grt_default_tmf"
  RTWMakeCommand	  "make_rtw"
  RTWGenerateCodeOnly	  off
  TLCProfiler		  off
  TLCDebug		  off
  TLCCoverage		  off
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  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
  ExtModeLogAll		  on
  OptimizeBlockIOStorage  on
  BufferReuse		  on
  ParameterPooling	  on
  BlockReductionOpt	  off
  BooleanDataType	  off
  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		    "tstbchcd"
    Location		    [72, 208, 924, 497]
    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		      "BCH code\nlength table"
      Ports		      []
      Position		      [230, 103, 310, 147]
      BackgroundColor	      "yellow"
      ShowName		      off
      OpenFcn		      "bchpoly"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskDisplay	      "disp('BCH code\\nview table')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"BCH code\nlength table"
	Location		[360, 145, 487, 298]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"yellow"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	AutoZoom		on
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Binary vector\nBCH decode"
      Ports		      [2, 2]
      Position		      [530, 43, 610, 87]
      ForegroundColor	      "magenta"
      ShowName		      off
      SourceBlock	      "comcdbch/Binary vector\nBCH decode"
      SourceType	      "Vector I/O BCH decode"
      n			      "N_bch_demo"
      k			      "K_bch_demo"
      t			      "T_bch_demo"
    }
    Block {
      BlockType		      Reference
      Name		      "Binary vector\nBCH encode"
      Ports		      [1, 1]
      Position		      [220, 43, 300, 87]
      ShowName		      off
      SourceBlock	      "comcdbch/Binary vector\nBCH encode"
      SourceType	      "Vector I/O BCH encode"
      n			      "N_bch_demo"
      k			      "K_bch_demo"
    }
    Block {
      BlockType		      Reference
      Name		      "Compare placed and\ndetected number of errors"
      Ports		      [1]
      Position		      [770, 106, 800, 144]
      ShowName		      off
      SourceBlock	      "com_sour/Graph"
      SourceType	      "Graph scope."
      tr		      "50"
      ym		      "-1"
      yma		      "T_bch_demo+1"
      color		      "'rx/b+/m-/w-/b+'"
    }
    Block {
      BlockType		      Constant
      Name		      "Constant1"
      Position		      [480, 65, 500, 85]
      ShowName		      off
      Value		      "1"
      VectorParams1D	      on
    }
    Block {
      BlockType		      Reference
      Name		      "Error rate1"
      Ports		      [2]
      Position		      [760, 23, 840, 67]
      ShowName		      off
      SourceBlock	      "com_sour/Error rate"
      SourceType	      "Symbol/bit error counter"
      K			      "K_bch_demo"
      num_lin		      "20"
      TDelay		      "0"
      Sample		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer scalar\nto vector"
      Ports		      [1, 1]
      Position		      [120, 43, 200, 87]
      ShowName		      off
      SourceBlock	      "com_util/Integer scalar\nto vector"
      SourceType	      "Decimal to base M vector"
      len		      "K_bch_demo"
      p			      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Integer vector\nto scalar"
      Ports		      [1, 1]
      Position		      [640, 33, 720, 77]
      ShowName		      off
      SourceBlock	      "com_util/Integer vector\nto scalar"
      SourceType	      "Base M vector to decimal integer"
      p			      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Max-err lmtd\nb-err channel"
      Ports		      [1, 2]
      Position		      [340, 43, 420, 87]
      ShowName		      off
      SourceBlock	      "com_chan/Max-err lmtd\nb-err channel"
      SourceType	      "Limited binary error channel"
      leng		      "N_bch_demo"
      prob		      "ones(1,T_bch_demo)/(T_bch_demo+1)"
      seed		      "12345"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux1"
      Ports		      [2, 1]
      Position		      [675, 105, 710, 140]
      ShowName		      off
      Inputs		      "2"
      DisplayOption	      "none"
    }
    Block {
      BlockType		      Reference
      Name		      "Random-integer\ngenerator1"
      Ports		      [0, 1]
      Position		      [5, 43, 85, 87]
      ShowName		      off
      SourceBlock	      "com_sour/Random-integer\ngenerator"
      SourceType	      "Random integer generator"
      mul		      "2^K_bch_demo"
      seed		      "[12345]"
    }
    Block {
      BlockType		      Sum
      Name		      "Sum3"
      Ports		      [1, 1]
      Position		      [545, 120, 565, 140]
      ForegroundColor	      "cyan"
      ShowName		      off
      IconShape		      "rectangular"
      Inputs		      "+"
      SaturateOnIntegerOverflow	on
    }
    Line {
      SrcBlock		      "Max-err lmtd\nb-err channel"
      SrcPort		      2
      Points		      [25, 0; 0, 55]
      DstBlock		      "Sum3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Max-err lmtd\nb-err channel"
      SrcPort		      1
      DstBlock		      "Binary vector\nBCH decode"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Binary vector\nBCH encode"
      SrcPort		      1
      DstBlock		      "Max-err lmtd\nb-err channel"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Sum3"
      SrcPort		      1
      DstBlock		      "Mux1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Binary vector\nBCH decode"
      SrcPort		      2
      Points		      [10, 0; 0, 40]
      DstBlock		      "Mux1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux1"
      SrcPort		      1
      DstBlock		      "Compare placed and\ndetected number of errors"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Constant1"
      SrcPort		      1
      DstBlock		      "Binary vector\nBCH decode"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Integer scalar\nto vector"
      SrcPort		      1
      DstBlock		      "Binary vector\nBCH encode"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Binary vector\nBCH decode"
      SrcPort		      1
      DstBlock		      "Integer vector\nto scalar"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Random-integer\ngenerator1"
      SrcPort		      1
      Points		      [10, 0]
      Branch {
	Points			[0, -40; 640, 0; 0, 10]
	DstBlock		"Error rate1"
	DstPort			1
      }
      Branch {
	DstBlock		"Integer scalar\nto vector"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Integer vector\nto scalar"
      SrcPort		      1
      DstBlock		      "Error rate1"
      DstPort		      2
    }
    Annotation {
      Position		      [332, 162]
      VerticalAlignment	      "top"
      Text		      "This demo uses the MATLAB workspace variable to"
" set the code world length N_bch_demo=15,\nmessage length K_bch_demo= 5, and "
"error correction capability T_bch_demo=3.                      "
    }
    Annotation {
      Position		      [332, 197]
      VerticalAlignment	      "top"
      Text		      "Double click \"BCH code view table\" block to v"
"iew most frequently used code word length/message\nlength/error-correction ca"
"pability table.                                                              "
"                      "
    }
    Annotation {
      Position		      [415, 272]
      Text		      "Warning: This model is obsolete and may be remo"
"ved in the future."
      FontName		      "Arial"
      FontSize		      12
    }
  }
}
