📄 hbf_dspblocks.mdl
字号:
IconDisplay "Tag"
}
Block {
BlockType FromWorkspace
VariableName "simulink_input"
SampleTime "-1"
Interpolate on
ZeroCross off
OutputAfterFinalValue "Extrapolation"
}
Block {
BlockType Goto
IconDisplay "Tag"
}
Block {
BlockType SignalConversion
OverrideOpt off
}
Block {
BlockType Inport
UseBusObject off
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Outport
Port "1"
UseBusObject off
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 Scope
Floating off
ModelBased off
TickLabels "OneTimeTick"
ZoomMode "on"
Grid "on"
TimeRange "auto"
YMin "-5"
YMax "5"
SaveToWorkspace off
SaveName "ScopeData"
LimitDataPoints on
MaxDataPoints "5000"
Decimation "1"
SampleInput off
SampleTime "0"
}
Block {
BlockType "S-Function"
FunctionName "system"
SFunctionModules "''"
PortCounts "[]"
}
Block {
BlockType SignalSpecification
Dimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
}
Block {
BlockType Step
Time "1"
Before "0"
After "1"
SampleTime "-1"
VectorParams1D on
ZeroCross on
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
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
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
}
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 "HBF_DSPBlocks"
Location [35, 405, 1145, 810]
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 "Counter1"
Ports [0, 1]
Position [465, 46, 555, 74]
SourceBlock "arithm_alteradspbuilder/Counter"
SourceType "HDLEntity AlteraBlockSet"
BusType "Unsigned Integer"
bwl "2"
bwr "0"
countmodulo "0"
UseControlInputs off
ntsamp "Tsamp2"
HDLInputPortsMappingAltera "NOINPUT"
HDLOutputPortsMappingAltera "q.2.0.u"
HDLImplicitPortsMappingAltera "clock.clock, sclr.sclr, sload.GND, updown"
".VCC, clk_en.VCC, data.\"00\""
HDLParameterMappingAltera "width.2.natural,modulus.0.natural"
HDLLibraryInformationAltera "library dspbuilder;use dspbuilder.dspbuilde"
"rblock.all;"
HDLComponentNameAltera "sLpmCount"
}
Block {
BlockType Reference
Name "ExtractBit1"
Ports [1, 1]
Position [585, 48, 640, 72]
SourceBlock "bus_alteradspbuilder/ExtractBit"
SourceType "ExtractBit AlteraBlockSet"
bwl "2"
bwr "0"
Outputs "0"
}
Block {
BlockType Reference
Name "FirResult"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [795, 132, 860, 148]
SourceBlock "bus_alteradspbuilder/Output"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Output Port"
bwl "38"
bwr "0"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "FirResult"
ppat "c:\\DSPBuilder\\DesignExamples\\Demos\\Filters"
"\\DA32\\DSPBuilder_AltrFir32"
nSgCpl "1"
}
Block {
BlockType FromWorkspace
Name "From\nWorkspace"
Position [25, 153, 90, 177]
VariableName "chirp_in"
SampleTime "Tsamp1"
ZeroCross on
}
Block {
BlockType FromWorkspace
Name "From\nWorkspace1"
Position [25, 118, 90, 142]
VariableName "impulse_in"
SampleTime "Tsamp1"
ZeroCross on
}
Block {
BlockType SubSystem
Name "HB_filter"
Ports [2, 2]
Position [320, 101, 500, 254]
ForegroundColor "blue"
AncestorBlock "ALTELINK/AltLab/HDL SubSystem"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "SubSystem AlteraBlockSet"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
Port {
PortNumber 1
Name "FirstHBF"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
Port {
PortNumber 2
Name "SecondHBF"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
ShowSigGenPortName on
}
System {
Name "HB_filter"
Location [37, 142, 1152, 853]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
Block {
BlockType Inport
Name "input_data[17:0]"
Position [55, 253, 85, 267]
ForegroundColor "blue"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "clken"
Position [60, 673, 90, 687]
ForegroundColor "blue"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "BusConcatenation"
Ports [2, 1]
Position [950, 541, 1055, 579]
SourceBlock "bus_alteradspbuilder/BusConcatenation"
SourceType "Bus Concatenation AlteraBlockSet"
bwl "18"
bwr "16"
blean on
}
Block {
BlockType Reference
Name "GND1"
Ports [0, 1]
Position [900, 561, 915, 579]
ShowName off
SourceBlock "bus_alteradspbuilder/GND"
SourceType "SGND AlteraBlockSet"
ncstsamp "Tsamp1"
}
Block {
BlockType Reference
Name "Input2"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [120, 252, 185, 268]
SourceBlock "bus_alteradspbuilder/Input"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Input Port"
bwl "18"
bwr "0"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "Input2"
nSgCpl "0"
}
Block {
BlockType Reference
Name "Input3"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [125, 672, 190, 688]
SourceBlock "bus_alteradspbuilder/Input"
SourceType "AltBus AlteraBlockSet"
sgn "Single Bit"
nodetype "Input Port"
bwl "1"
bwr "0"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "Input3"
nSgCpl "0"
}
Block {
BlockType SubSystem
Name "Mult_DSPBlock"
Ports [20, 1]
Position [970, 67, 1145, 493]
ForegroundColor "blue"
AncestorBlock "ALTELINK/AltLab/HDL SubSystem"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "SubSystem AlteraBlockSet"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Mult_DSPBlock"
Location [-126, 261, 1107, 984]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "75"
Block {
BlockType Inport
Name "x1[17:0]"
Position [50, 48, 80, 62]
ForegroundColor "blue"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x2[17:0]"
Position [50, 78, 80, 92]
ForegroundColor "blue"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x3[17:0]"
Position [50, 108, 80, 122]
ForegroundColor "blue"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x4[17:0]"
Position [50, 138, 80, 152]
ForegroundColor "blue"
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x5[17:0]"
Position [50, 168, 80, 182]
ForegroundColor "blue"
Port "5"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x6[17:0]"
Position [50, 198, 80, 212]
ForegroundColor "blue"
Port "6"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x7[17:0]"
Position [50, 228, 80, 242]
ForegroundColor "blue"
Port "7"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x8[17:0]"
Position [50, 258, 80, 272]
ForegroundColor "blue"
Port "8"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -