📄 ladder_filter_rab.mdl
字号:
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType MagnitudeAngleToComplex
Input "Magnitude and angle"
ConstantPart "0"
SampleTime "-1"
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType "M-S-Function"
MFile "mlfile"
}
Block {
BlockType Merge
Inputs "2"
InitialOutput "[]"
AllowUnequalInputPortWidths off
InputPortOffsets "[]"
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType PMComponent
SubClassName "unknown"
}
Block {
BlockType PMIOPort
}
Block {
BlockType Probe
ProbeWidth on
ProbeSampleTime on
ProbeComplexSignal on
ProbeSignalDimensions off
ProbeFramedSignal off
ProbeWidthDataType "double"
ProbeSampleTimeDataType "double"
ProbeComplexityDataType "double"
ProbeDimensionsDataType "double"
ProbeFrameDataType "double"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RateTransition
Integrity on
Deterministic on
X0 "0"
OutPortSampleTime "-1"
}
Block {
BlockType Sensor
SubClassName "unknown"
PortType "blob"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
}
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 "ladder_filter_rab"
Location [9, 74, 800, 328]
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 "Complex Filter Magnitude in dB"
Ports [1]
Position [675, 60, 710, 110]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[11 375 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "2*Fs"
XLabel "Time"
YUnits "dB"
YMin "-30.1552147724769"
YMax "0.513506472408582"
YLabel "dB"
LineProperties off
LineColors "[0 0 1]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Complex Filter Phase in Degrees"
Ports [1]
Position [700, 120, 735, 170]
SourceBlock "dspsnks4/Vector\nScope"
SourceType "Vector Scope"
ScopeProperties on
Domain "Frequency"
HorizSpan "1"
DisplayProperties off
AxisGrid on
Memory off
FrameNumber on
AxisLegend off
AxisZoom off
OpenScopeAtSimStart on
OpenScopeImmediately off
FigPos "[391 375 372 236]"
AxisProperties off
XUnits "Hertz"
XRange "[-Fs/2...Fs/2]"
InheritXIncr on
XIncr "1"
XLabel "Frequency"
YUnits "Magnitude"
YMin "-12540.2136509701"
YMax "12378.9930792327"
YLabel "Phase in Degrees"
LineProperties off
LineColors "[0 0 1]|[1 0 0]"
ShowPortLabels off
}
Block {
BlockType Reference
Name "Input Port1"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [105, 65, 135, 105]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "75e6"
Ts "1e-7"
Zs "0.01"
NoiseFlag off
seed "67987"
GoToTag "ABEDGHKIWSDNIJIVYQXYCQY"
}
Block {
BlockType Reference
Name "Input Port2"
Description "source block"
Ports [1, 0, 0, 0, 0, 0, 1]
Position [105, 180, 135, 220]
SourceBlock "rfports1/Input Port"
SourceType "Input Port"
ShowPortLabels on
MaxLength "128"
Fc "75e6"
Ts "1e-7"
Zs "0.01"
NoiseFlag off
seed "67987"
GoToTag "ABEFDLGAGTCGXNRZCUBJGUX"
}
Block {
BlockType Reference
Name "LC Bandpass Tee"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [185, 61, 275, 109]
SourceBlock "rfladderfilters1/LC Bandpass Tee"
SourceType "LC Bandpass Tee"
PhysicalDomain "rfsystemsdomain"
SubClassName "lcbandpasstee"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
L "[0.0037561 1.3566e-005 0.0025192]"
C "[1.1989e-015 3.3195e-013 1.7875e-015]"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[70e6:1.0e5:80e6]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S11"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType Reference
Name "LC Bandpass Tee1"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [185, 176, 275, 224]
SourceBlock "rfladderfilters1/LC Bandpass Tee"
SourceType "LC Bandpass Tee"
PhysicalDomain "rfsystemsdomain"
SubClassName "lcbandpasstee"
LeftPortType "p1"
RightPortType "p1"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
L "[0.0034355 1.1202e-005 0.0033081 2.9429e-0"
"05]"
C "[1.3108e-015 4.0198e-013 1.3612e-015 1.5302e"
"-013]"
DisplayData off
PlotFreq "Derived from Input Port parameters"
PlotFreqNoSim "User-specified"
Freq "[70e6:1.0e5:80e6]"
AllPlotType "X-Y plane"
NetworkData "S21"
SmithData "S11"
PolarData "S12"
ComplexFormat "Magnitude (decibels)"
DBFormat "Magnitude (decibels)"
NoneFormat "None"
}
Block {
BlockType SubSystem
Name "Ladder Filters"
Ports []
Position [450, 179, 510, 219]
BackgroundColor "cyan"
DropShadow on
ShowName off
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "disp('Info')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Ladder Filters"
Location [440, 166, 907, 548]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Annotation {
Name "Ladder Filters"
Position [221, 24]
FontName "Arial"
FontSize 14
}
Annotation {
Name "This model shows Chebyshev I filters with a"
" passband ripple of \n1dB and 0.1dB implemented using LC Bandpass Tee filters"
" \nfrom the Ladder Filters sublibrary."
Position [226, 67]
FontName "Arial"
FontSize 14
}
Annotation {
Name "Filter specifications:\nCenter frequency = "
"75MHz\nBandwidth at 3dB = 7MHz\nBandwidth at 45dB = 35MHz\nSource impedance ="
" 0.01 ohms\n Load impedance = 1e5 ohms"
Position [220, 159]
FontName "Arial"
FontSize 14
}
Annotation {
Name "The frequency responses of the filters clea"
"rly show the\ndifference in passband ripples."
Position [230, 306]
FontName "Arial"
FontSize 14
}
Annotation {
Name "To create the above filter with a passband "
"ripple of 1dB, a filter \nof 3rd order is required. To realize the same filt"
"er with a passband\nripple of 0.1dB, a filter of 4th order is required."
Position [230, 251]
FontName "Arial"
FontSize 14
}
Annotation {
Name "Reference: Chris Bowick, RF Circuit Design,"
" 1982, pp 65"
Position [235, 351]
FontName "Arial"
FontSize 14
}
}
}
Block {
BlockType Reference
Name "Matrix\nConcatenation1"
Ports [2, 1]
Position [450, 29, 505, 71]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Matrix\nConcatenation2"
Ports [2, 1]
Position [450, 124, 505, 166]
ShowName off
SourceBlock "simulink/Math\nOperations/Matrix\nConcatenation"
SourceType "Matrix Concatenation"
numInports "2"
catMethod "Horizontal"
}
Block {
BlockType Reference
Name "Output Port1"
Ports [0, 1, 0, 0, 0, 1]
Position [315, 66, 355, 104]
SourceBlock "rfports1/Output Port"
SourceType "Output Port"
ShowPortLabels on
Zl "1e5"
num_Models "0"
GoToTag "ABEDGHKIWSDNIJIVYQXYCQY"
DisplayData off
PlotFreq "Derived from Input Port parameters"
Freq "1e9:1e8:3e9"
AllPlotType "Composite data"
NoBudgetPlot "Composite data"
NetworkData "S11"
SmithData "S11"
PolarData "S11"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -