📄 hbf_da_timeshare.mdl
字号:
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_DA_Timeshare"
Location [41, 436, 1197, 859]
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 [455, 81, 545, 109]
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 [575, 83, 630, 107]
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 [785, 167, 850, 183]
SourceBlock "bus_alteradspbuilder/Output"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Output Port"
bwl "19"
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 [30, 188, 95, 212]
VariableName "chirp_in"
SampleTime "Tsamp1"
ZeroCross on
}
Block {
BlockType FromWorkspace
Name "From\nWorkspace1"
Position [30, 153, 95, 177]
VariableName "impulse_in"
SampleTime "Tsamp1"
ZeroCross on
}
Block {
BlockType SubSystem
Name "HB_filter"
Ports [2, 2]
Position [365, 135, 515, 290]
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 [-26, 75, 1183, 834]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "86"
Block {
BlockType Inport
Name "input_data[17:0]"
Position [45, 238, 75, 252]
ForegroundColor "blue"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "clken"
Position [50, 663, 80, 677]
ForegroundColor "blue"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Reference
Name "BusConcatenation"
Ports [2, 1]
Position [955, 566, 1060, 604]
SourceBlock "bus_alteradspbuilder/BusConcatenation"
SourceType "Bus Concatenation AlteraBlockSet"
bwl "18"
bwr "16"
blean on
}
Block {
BlockType Reference
Name "GND1"
Ports [0, 1]
Position [905, 586, 920, 604]
ShowName off
SourceBlock "bus_alteradspbuilder/GND"
SourceType "SGND AlteraBlockSet"
ncstsamp "Tsamp1"
}
Block {
BlockType Reference
Name "Input2"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [115, 237, 180, 253]
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 [120, 662, 185, 678]
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_DA"
Ports [20, 1]
Position [985, 52, 1160, 478]
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_DA"
Location [2, 74, 1209, 1000]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "77"
Block {
BlockType Inport
Name "x1[17:0]"
Position [40, 148, 70, 162]
ForegroundColor "blue"
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x2[17:0]"
Position [40, 178, 70, 192]
ForegroundColor "blue"
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x3[17:0]"
Position [40, 208, 70, 222]
ForegroundColor "blue"
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x4[17:0]"
Position [40, 238, 70, 252]
ForegroundColor "blue"
Port "4"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x5[17:0]"
Position [40, 268, 70, 282]
ForegroundColor "blue"
Port "5"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x6[17:0]"
Position [40, 298, 70, 312]
ForegroundColor "blue"
Port "6"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x7[17:0]"
Position [40, 328, 70, 342]
ForegroundColor "blue"
Port "7"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x8[17:0]"
Position [40, 358, 70, 372]
ForegroundColor "blue"
Port "8"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "x9[17:0]"
Position [40, 388, 70, 402]
ForegroundColor "blue"
Port "9"
IconDisplay "Port number"
LatchInput off
}
Block {
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -