Model { Name "L18_pipe_1_5bps" Version 5.0 SaveDefaultBlockParams on SampleTimeColors on LibraryLinkDisplay "none" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ExecutionOrder off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off Created "Fri Nov 01 16:49:11 2002" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "boser" ModifiedDateFormat "%" LastModifiedDate "Mon Nov 04 17:07:30 2002" ModelVersionFormat "1.%" ConfigurationManager "None" SimParamPage "Solver" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off ExtModeMexFile "ext_comm" ExtModeBatchMode off ExtModeTrigType "manual" ExtModeTrigMode "normal" 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 on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on RTWExpressionDepthLimit 5 SimulationMode "normal" Solver "FixedStepDiscrete" SolverMode "SingleTasking" StartTime "0.0" StopTime "4.5" MaxOrder 5 MaxStep "auto" MinStep "auto" MaxNumMinSteps "-1" InitialStep "auto" FixedStep "auto" RelTol "1e-3" AbsTol "1e-6" OutputOption "RefineOutputTimes" OutputTimes "[]" Refine "1" LoadExternalInput off ExternalInput "[t, u]" LoadInitialState off InitialState "xInitial" SaveTime on TimeSaveName "tout" SaveState off StateSaveName "xout" SaveOutput on OutputSaveName "yout" SaveFinalState off FinalStateName "xFinal" SaveFormat "Array" Decimation "1" LimitDataPoints off MaxDataPoints "1000" SignalLoggingName "sigsOut" ConsistencyChecking "none" ArrayBoundsChecking "none" AlgebraicLoopMsg "warning" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" CheckForMatrixSingularity "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterPrecisionLossMsg "warning" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SfunCompatibilityCheckMsg "none" RTWInlineParameters off BlockReductionOpt on BooleanDataType off ConditionallyExecuteInputs on ParameterPooling on OptimizeBlockIOStorage on ZeroCross on AssertionControl "UseLocalSettings" ProdHWDeviceType "Microprocessor" ProdHWWordLengths "8,16,32,32" RTWSystemTargetFile "grt.tlc" RTWTemplateMakefile "grt_vc.tmf" RTWMakeCommand "make_rtw" RTWGenerateCodeOnly off RTWRetainRTWFile off TLCProfiler off TLCDebug off TLCCoverage off TLCAssertion off BlockDefaults { Orientation "right" ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on } BlockParameterDefaults { Block { BlockType Clock DisplayTime off } Block { BlockType Constant Value "1" VectorParams1D on ShowAdditionalParam off OutDataTypeMode "Inherit from 'Constant value'" OutDataType "sfix(16)" ConRadixGroup "Use specified scaling" OutScaling "2^0" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ShowAdditionalParam off ParameterDataTypeMode "Same as input" ParameterDataType "sfix(16)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "2^0" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Inport Port "1" PortDimensions "-1" SampleTime "-1" ShowAdditionalParam off LatchInput off DataType "auto" OutDataType "sfix(16)" OutScaling "2^0" SignalType "auto" SamplingMode "auto" Interpolate on } Block { BlockType Lookup InputValues "[-4:5]" OutputValues " rand(1,10)-0.5" ShowAdditionalParam off LookUpMeth "Interpolation-Extrapolation" OutDataTypeMode "Same as input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType Mux Inputs "4" DisplayOption "none" } Block { BlockType Outport Port "1" OutputWhenDisabled "held" InitialOutput "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType "S-Function" FunctionName "system" PortCounts "[]" SFunctionModules "''" } Block { BlockType Step Time "1" Before "0" After "1" SampleTime "-1" VectorParams1D on ZeroCross on } Block { BlockType SubSystem ShowPortLabels on Permissions "ReadWrite" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" ShowAdditionalParam off InputSameDT on OutDataTypeMode "Same as first input" OutDataType "sfix(16)" OutScaling "2^0" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType ZeroOrderHold SampleTime "1" } } 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 "L18_pipe_1_5bps" Location [87, 84, 1039, 479] 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 "Dout" Ports [2] Position [810, 100, 870, 180] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-2.25" xmax "2.25" ymin "-1" ymax "16" st "-1" } Block { BlockType Gain Name "Gain5" Position [605, 320, 635, 350] Gain "4" } Block { BlockType Gain Name "Gain6" Position [650, 275, 680, 305] Gain "2" } Block { BlockType SubSystem Name "Pipeline Stage 1" Ports [1, 2] Position [135, 230, 200, 305] TreatAsAtomicUnit off MaskPromptString "ADC thresholds|DAC outputs|Gain|Sampling freque" "nce" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVarAliasString ",,," MaskVariables "ADCthresholds=@1;DACoutputs=@2;gain=@3;fs=@4;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[ -0.7 0.5 ]|[ -1 0 1 ]|2|points" System { Name "Pipeline Stage 1" Location [156, 490, 1189, 945] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Ain" Position [160, 160, 180, 180] } Block { BlockType Reference Name "ADC" Ports [1, 1] Position [375, 206, 425, 254] SourceBlock "library/ADC" SourceType "" levels "ADCthresholds" Port { PortNumber 1 Name "Dout" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "DAC" Ports [1, 1] Position [520, 206, 570, 254] SourceBlock "library/DAC" SourceType "" outputs "DACoutputs" } Block { BlockType Gain Name "Gain" Position [770, 185, 800, 215] Gain "gain" } Block { BlockType ZeroOrderHold Name "S/H" Position [240, 146, 290, 194] SampleTime "1/fs" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [640, 138, 670, 262] Inputs "+-" } Block { BlockType Outport Name "Error" Position [895, 190, 915, 210] InitialOutput "0" } Block { BlockType Outport Name "Dout" Position [545, 360, 565, 380] Port "2" InitialOutput "0" } Line { SrcBlock "DAC" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "S/H" SrcPort 1 Points [35, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 60] DstBlock "ADC" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "Dout" Labels [0, 0] SrcBlock "ADC" SrcPort 1 Points [50, 0] Branch { DstBlock "DAC" DstPort 1 } Branch { Labels [2, 0] Points [0, 140] DstBlock "Dout" DstPort 1 } } Line { SrcBlock "Ain" SrcPort 1 DstBlock "S/H" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Error" DstPort 1 } } } Block { BlockType SubSystem Name "Pipeline Stage 2" Ports [1, 2] Position [290, 210, 355, 285] TreatAsAtomicUnit off MaskPromptString "ADC thresholds|DAC outputs|Gain|Sampling freque" "nce" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVarAliasString ",,," MaskVariables "ADCthresholds=@1;DACoutputs=@2;gain=@3;fs=@4;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[ -0.5 0.3 ]|[ -1 0 1 ]|2|points" System { Name "Pipeline Stage 2" Location [156, 490, 1189, 945] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Ain" Position [160, 160, 180, 180] } Block { BlockType Reference Name "ADC" Ports [1, 1] Position [375, 206, 425, 254] SourceBlock "library/ADC" SourceType "" levels "ADCthresholds" Port { PortNumber 1 Name "Dout" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "DAC" Ports [1, 1] Position [520, 206, 570, 254] SourceBlock "library/DAC" SourceType "" outputs "DACoutputs" } Block { BlockType Gain Name "Gain" Position [770, 185, 800, 215] Gain "gain" } Block { BlockType ZeroOrderHold Name "S/H" Position [240, 146, 290, 194] SampleTime "1/fs" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [640, 138, 670, 262] Inputs "+-" } Block { BlockType Outport Name "Error" Position [895, 190, 915, 210] InitialOutput "0" } Block { BlockType Outport Name "Dout" Position [545, 360, 565, 380] Port "2" InitialOutput "0" } Line { SrcBlock "DAC" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "S/H" SrcPort 1 Points [35, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 60] DstBlock "ADC" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "Dout" Labels [0, 0] SrcBlock "ADC" SrcPort 1 Points [50, 0] Branch { DstBlock "DAC" DstPort 1 } Branch { Labels [2, 0] Points [0, 140] DstBlock "Dout" DstPort 1 } } Line { SrcBlock "Ain" SrcPort 1 DstBlock "S/H" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Error" DstPort 1 } } } Block { BlockType SubSystem Name "Pipeline Stage 3" Ports [1, 2] Position [465, 190, 530, 265] TreatAsAtomicUnit off MaskPromptString "ADC thresholds|DAC outputs|Gain|Sampling freque" "nce" MaskStyleString "edit,edit,edit,edit" MaskTunableValueString "on,on,on,on" MaskCallbackString "|||" MaskEnableString "on,on,on,on" MaskVisibilityString "on,on,on,on" MaskToolTipString "on,on,on,on" MaskVarAliasString ",,," MaskVariables "ADCthresholds=@1;DACoutputs=@2;gain=@3;fs=@4;" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "[ -0.5 0.5]|[-1 0 1 ]|2|points" System { Name "Pipeline Stage 3" Location [156, 490, 1189, 945] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "Ain" Position [160, 160, 180, 180] } Block { BlockType Reference Name "ADC" Ports [1, 1] Position [375, 206, 425, 254] SourceBlock "library/ADC" SourceType "" levels "ADCthresholds" Port { PortNumber 1 Name "Dout" TestPoint off LinearAnalysisOutput off LinearAnalysisInput off RTWStorageClass "Auto" DataLogging off DataLoggingNameMode "SignalName" DataLoggingDecimateData off DataLoggingDecimation "2" DataLoggingLimitDataPoints off DataLoggingMaxPoints "5000" } } Block { BlockType Reference Name "DAC" Ports [1, 1] Position [520, 206, 570, 254] SourceBlock "library/DAC" SourceType "" outputs "DACoutputs" } Block { BlockType Gain Name "Gain" Position [770, 185, 800, 215] Gain "gain" } Block { BlockType ZeroOrderHold Name "S/H" Position [240, 146, 290, 194] SampleTime "1/fs" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [640, 138, 670, 262] Inputs "+-" } Block { BlockType Outport Name "Error" Position [895, 190, 915, 210] InitialOutput "0" } Block { BlockType Outport Name "Dout" Position [545, 360, 565, 380] Port "2" InitialOutput "0" } Line { SrcBlock "DAC" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "S/H" SrcPort 1 Points [35, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 60] DstBlock "ADC" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { Name "Dout" Labels [0, 0] SrcBlock "ADC" SrcPort 1 Points [50, 0] Branch { DstBlock "DAC" DstPort 1 } Branch { Labels [2, 0] Points [0, 140] DstBlock "Dout" DstPort 1 } } Line { SrcBlock "Ain" SrcPort 1 DstBlock "S/H" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Error" DstPort 1 } } } Block { BlockType Reference Name "Ramp" Ports [0, 1] Position [15, 246, 75, 294] SourceBlock "simulink/Sources/Ramp" SourceType "Ramp" slope "1" start "0" X0 "-2.25" VectorParams1D on } Block { BlockType Reference Name "Residuum 1" Ports [2] Position [290, 85, 350, 165] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-2.25" xmax "2.25" ymin "-2" ymax "2" st "-1" } Block { BlockType Reference Name "Residuum 2" Ports [2] Position [465, 85, 525, 165] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-2.25" xmax "2.25" ymin "-2" ymax "2" st "-1" } Block { BlockType Reference Name "Residuum 3" Ports [2] Position [630, 85, 690, 165] SourceBlock "simulink/Sinks/XY Graph" SourceType "XY scope." xmin "-2.25" xmax "2.25" ymin "-2" ymax "2" st "-1" } Block { BlockType Sum Name "Sum" Ports [3, 1] Position [705, 222, 735, 358] Inputs "+++" } Line { SrcBlock "Pipeline Stage 2" SrcPort 1 Points [50, 0] Branch { DstBlock "Pipeline Stage 3" DstPort 1 } Branch { Points [0, -85] DstBlock "Residuum 2" DstPort 2 } } Line { SrcBlock "Pipeline Stage 1" SrcPort 1 Points [15, 0] Branch { DstBlock "Pipeline Stage 2" DstPort 1 } Branch { Points [0, -105] DstBlock "Residuum 1" DstPort 2 } } Line { SrcBlock "Ramp" SrcPort 1 Points [25, 0] Branch { Points [0, -205; 115, 0] Branch { Points [0, 40] DstBlock "Residuum 1" DstPort 1 } Branch { Points [190, 0] Branch { Points [180, 0] Branch { Points [155, 0; 0, 55] DstBlock "Dout" DstPort 1 } Branch { Points [0, 40] DstBlock "Residuum 3" DstPort 1 } } Branch { Points [0, 40] DstBlock "Residuum 2" DstPort 1 } } } Branch { DstBlock "Pipeline Stage 1" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 Points [10, 0; 0, -130] DstBlock "Dout" DstPort 2 } Line { SrcBlock "Pipeline Stage 3" SrcPort 2 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { Labels [2, 0] SrcBlock "Pipeline Stage 1" SrcPort 2 Points [35, 0; 0, 50] DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Gain6" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Pipeline Stage 2" SrcPort 2 Points [25, 0; 0, 25] DstBlock "Gain6" DstPort 1 } Line { Labels [0, 0] SrcBlock "Pipeline Stage 3" SrcPort 1 Points [55, 0; 0, -65] DstBlock "Residuum 3" DstPort 2 } Annotation { Name "Pipeline ADC, 1.5 bit per stage (2 comparators" " per stage)" Position [416, 23] FontName "Arial" FontSize 18 FontWeight "bold" } Annotation { Name "in Matlab window:\npoints = 50\n(number of poin" "ts/lsb \nin simulation)" Position [861, 328] FontName "Arial" FontSize 12 } } }