📄 sdtoolbox.mdl
字号:
Name "Saturation" Position [360, 35, 390, 65] UpperLimit "Amax" LowerLimit "-Amax" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [180, 38, 205, 62] } Block { BlockType UnitDelay Name "Unit Delay" Position [260, 35, 290, 65] SampleTime "Ts" } Block { BlockType Gain Name "alfa" Position [290, 120, 320, 150] Orientation "left" Gain "alfa" } Block { BlockType MATLABFcn Name "slewRate" Position [70, 30, 130, 60] MATLABFcn "slew(u,alfa,sr,GBW,Ts)" } Block { BlockType Outport Name "Out1" Position [505, 41, 525, 59] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Unit Delay" DstPort 1 } Line { SrcBlock "Unit Delay" SrcPort 1 DstBlock "Saturation" DstPort 1 } Line { SrcBlock "Saturation" SrcPort 1 Points [45, 0] Branch { DstBlock "Out1" DstPort 1 } Branch { Points [0, 85] DstBlock "alfa" DstPort 1 } } Line { SrcBlock "IN" SrcPort 1 DstBlock "slewRate" DstPort 1 } Line { SrcBlock "slewRate" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "alfa" SrcPort 1 Points [-130, 0; 0, -80] DstBlock "Sum" DstPort 2 } } } Block { BlockType SubSystem Name "Sampling Jitter" Ports [1, 1] Position [215, 103, 270, 137] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDescription "Models the sampling jitter on the input signal" MaskHelp "web('Jitter.html','-helpbrowser')" MaskPromptString "Sample Time|Sampling Jitter|Random Number Seed" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskToolTipString "on,on,on" MaskVarAliasString ",," MaskVariables "Ts=@1;delta=@2;seed=@3;" MaskDisplay "disp('Jitter')\n" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "Ts|delta|(sum(clock))^3.33" MaskTabNameString ",," System { Name "Sampling Jitter" Location [181, 74, 792, 430] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "IN" Position [75, 80, 95, 100] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Derivative Name "Derivative" Position [140, 145, 170, 175] } Block { BlockType Gain Name "Jitter" Position [235, 220, 265, 250] Gain "delta" } Block { BlockType Product Name "Product" Ports [2, 1] Position [310, 152, 340, 183] RndMeth "Floor" } Block { BlockType RandomNumber Name "Random\nNumber" Position [110, 220, 140, 250] Seed "seed" SampleTime "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [390, 82, 420, 113] } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [170, 220, 200, 250] SampleTime "Ts" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold1" Position [455, 85, 485, 115] SampleTime "Ts" } Block { BlockType Outport Name "Y" Position [525, 90, 545, 110] IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Line { SrcBlock "IN" SrcPort 1 Points [15, 0] Branch { DstBlock "Sum" DstPort 1 } Branch { Points [0, 70] DstBlock "Derivative" DstPort 1 } } Line { SrcBlock "Random\nNumber" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Derivative" SrcPort 1 DstBlock "Product" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "Jitter" DstPort 1 } Line { SrcBlock "Jitter" SrcPort 1 Points [25, 0] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 Points [20, 0; 0, -65] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Zero-Order\nHold1" DstPort 1 } Line { SrcBlock "Zero-Order\nHold1" SrcPort 1 DstBlock "Y" DstPort 1 } } } Block { BlockType SubSystem Name "Switch Non-Linearity" Ports [1, 1] Position [550, 96, 605, 144] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDescription "Models the non-linear Ron of the sampling switc""h" MaskHelp "web('SW.html','-helpbrowser')" MaskPromptString "Sample Time|Sampling Capacitance|Positive Suppl""y Voltage|Negative Supply Voltage|Transistor Size (W/L)|N-MOS Gain Factor (u*""Cox)|P-MOS Gain Factor (u*Cox)|N-MOS Threshold Voltage|P-MOS Threshold Voltag""e|Bootstrap Factor" MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed""it" MaskTunableValueString "on,on,on,on,on,on,on,on,on,on" MaskCallbackString "|||||||||" MaskEnableString "on,on,on,on,on,on,on,on,on,on" MaskVisibilityString "on,on,on,on,on,on,on,on,on,on" MaskToolTipString "on,on,on,on,on,on,on,on,on,on" MaskVarAliasString ",,,,,,,,," MaskVariables "Ts=@1;CS=@2;VsupplyP=@3;VsupplyN=@4;Size=@5;KPN""=@6;KPP=@7;VTN=@8;VTP=@9;BS=@10;" MaskDisplay "plot([0,20,45],[5,5,10],[50,70],[5,5]);\ntext(0"",0,'');\ntext(0,12,'');" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "Ts|Cs|2|-2|20|175e-6|60e-6|0.5|-0.5|0" MaskTabNameString ",,,,,,,,," System { Name "Switch Non-Linearity" Location [447, 311, 942, 559] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" ZoomFactor "100" Block { BlockType Inport Name "In" Position [160, 88, 190, 102] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType MATLABFcn Name "MATLAB Fcn" Position [215, 80, 275, 110] MATLABFcn "switch_nl(u,Ts,CS,VsupplyP,VsupplyN,Size,KP""N,KPP,VTN,VTP,BS)" SampleTime "Ts" } Block { BlockType Outport Name "Out" Position [300, 88, 330, 102] IconDisplay "Port number" BusOutputAsStruct off } Line { SrcBlock "In" SrcPort 1 DstBlock "MATLAB Fcn" DstPort 1 } Line { SrcBlock "MATLAB Fcn" SrcPort 1 DstBlock "Out" DstPort 1 } } } Block { BlockType SubSystem Name "White noise" Ports [0, 1] Position [305, 103, 360, 137] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDescription "Models a noise source with white power spectral"" density" MaskHelp "web('WN.html','-helpbrowser')" MaskPromptString "Random Number Seed|Sample Time|Noise Standard D""eviation" MaskStyleString "edit,edit,edit" MaskTunableValueString "on,on,on" MaskCallbackString "||" MaskEnableString "on,on,on" MaskVisibilityString "on,on,on" MaskToolTipString "on,on,on" MaskVarAliasString ",," MaskVariables "seed=@1;Ts=@2;noise=@3;" MaskDisplay "disp('OpNoise')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "floor(sum(clock)^1/111)|Ts|noise1" MaskTabNameString ",," System { Name "White noise" Location [236, 346, 556, 454] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Gain Name "Gain" Position [175, 30, 205, 60] Gain "noise" } Block { BlockType RandomNumber Name "Random\nNumber" Position [20, 30, 50, 60] Seed "seed" SampleTime "Ts" } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [100, 30, 130, 60] SampleTime "Ts" } Block { BlockType Outport Name "N" Position [240, 38, 270, 52] IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Line { SrcBlock "Random\nNumber" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "N" DstPort 1 } } } Block { BlockType SubSystem Name "kT/C noise" Ports [1, 1] Position [125, 93, 185, 137] TreatAsAtomicUnit off MinAlgLoopOccurrences off RTWSystemCode "Auto" MaskDescription "Models the kT/C noise of a switched capacitor C""s" MaskHelp "web('kTCNoise.html','-helpbrowser')" MaskPromptString "Sample Time|Sampling Capacitance|Absolute Tempe""rature|Boltzman Constant|Random Number Seed" MaskStyleString "edit,edit,edit,edit,edit" MaskTunableValueString "on,on,on,on,on" MaskCallbackString "||||" MaskEnableString "on,on,on,on,on" MaskVisibilityString "on,on,on,on,on" MaskToolTipString "on,on,on,on,on" MaskVarAliasString ",,,," MaskVariables "Ts=@1;C=@2;Temp=@3;k=@4;seed=@5;" MaskDisplay "disp(' kT/C')\nport_label('input', 1, 'IN')" MaskIconFrame on MaskIconOpaque on MaskIconRotate "none" MaskIconUnits "autoscale" MaskValueString "Ts|C|Temp|k|floor(sum(clock))" MaskTabNameString ",,,," System { Name "kT/C noise" Location [367, 222, 978, 578] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" ZoomFactor "100" Block { BlockType Inport Name "IN" Position [335, 80, 355, 100] Port "1" IconDisplay "Port number" LatchInput off } Block { BlockType Product Name "Product" Ports [2, 1] Position [310, 137, 340, 168] RndMeth "Floor" } Block { BlockType RandomNumber Name "Random\nNumber" Position [130, 145, 160, 175] Seed "seed" SampleTime "Ts" } Block { BlockType Sum Name "Sum" Ports [2, 1] Position [390, 82, 420, 113] } Block { BlockType ZeroOrderHold Name "Zero-Order\nHold" Position [210, 145, 240, 175] SampleTime "Ts" } Block { BlockType Constant Name "kT/C Noise" Position [125, 70, 235, 100] Value "sqrt((k*Temp/C))" } Block { BlockType Outport Name "Y" Position [465, 90, 485, 110] IconDisplay "Port number" BusOutputAsStruct off InitialOutput "0" } Line { SrcBlock "Random\nNumber" SrcPort 1 DstBlock "Zero-Order\nHold" DstPort 1 } Line { SrcBlock "Zero-Order\nHold" SrcPort 1 DstBlock "Product" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Y" DstPort 1 } Line { SrcBlock "IN" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Product" SrcPort 1 Points [30, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "kT/C Noise" SrcPort 1 Points [25, 0; 0, 60] DstBlock "Product" DstPort 1 } } } Annotation { Name "\\bf\\Sigma\\Delta \\bfToolbox 2.0\nCopyright ""2004 \nUniversity of Pavia, Italy" Position [86, 226] TeXMode "on" } Annotation { Name "This library is free software; you can redistri""bute it and/or modify it under the terms of the GNU Lesser General Public Lic""ense\n as published by the Free Software Foundation; either version 2.1 of th""e License, or (at your option) any later version.\n This library is distribut""ed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without eve""n the implied warranty of \nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPO""SE. \n" Position [470, 219] } Annotation { Name "See the "" for more details. \n" Position [476, 265] } Annotation { Name "You should have received a copy of the GNU Less""er General Public License along with this library;\nif not, write to the Free"" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307"" USA')" Position [478, 281] } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -