📄 amedianfilter_hw.mdl
字号:
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "c_data"
Position [80, 73, 110, 87]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "c_idx"
Position [80, 173, 110, 187]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType SubSystem
Name "median_filter_hw"
Ports [2, 2]
Position [240, 29, 430, 231]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('build_window');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "median_filter_hw"
Location [257, 457, 812, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "column_data"
Position [20, 101, 40, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "column_idx"
Position [20, 136, 40, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 250, 320, 290]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function aMedianFilter_hw 9"
Ports [2, 3]
Position [180, 108, 230, 252]
FunctionName "sf_sfun"
PortCounts "[2 3]"
EnableBusSupport on
Port {
PortNumber 2
Name "newpixel"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "dvalid"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 261, 480, 279]
}
Block {
BlockType Outport
Name "newpixel"
Position [460, 101, 480, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "dvalid"
Position [460, 136, 480, 154]
Port "2"
IconDisplay "Port number"
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
Line {
Name "dvalid"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 3
DstBlock "dvalid"
DstPort 1
}
Line {
Name "newpixel"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "newpixel"
DstPort 1
}
Line {
SrcBlock "column_idx"
SrcPort 1
DstBlock " SFunction "
DstPort 2
}
Line {
SrcBlock "column_data"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
}
}
Block {
BlockType Outport
Name "pixel_val"
Position [560, 73, 590, 87]
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "pixel_valid"
Position [560, 173, 590, 187]
Port "2"
IconDisplay "Port number"
}
Line {
SrcBlock "median_filter_hw"
SrcPort 2
DstBlock "pixel_valid"
DstPort 1
}
Line {
SrcBlock "c_idx"
SrcPort 1
DstBlock "median_filter_hw"
DstPort 2
}
Line {
SrcBlock "median_filter_hw"
SrcPort 1
DstBlock "pixel_val"
DstPort 1
}
Line {
SrcBlock "c_data"
SrcPort 1
DstBlock "median_filter_hw"
DstPort 1
}
}
}
Block {
BlockType SubSystem
Name "MedianFilter_2D_HW"
Ports [2, 2]
Position [450, 302, 595, 473]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "MedianFilter_2D_HW"
Location [236, 262, 1496, 1021]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "c_data"
Position [235, 98, 265, 112]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "c_idx"
Position [340, 638, 370, 652]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Terminator
Name "Terminator"
Position [705, 121, 725, 129]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator1"
Position [710, 206, 730, 214]
ShowName off
}
Block {
BlockType Terminator
Name "Terminator2"
Position [705, 296, 725, 304]
ShowName off
}
Block {
BlockType SubSystem
Name "compute_dvalid"
Ports [1, 1]
Position [535, 610, 705, 680]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('get_ctrl');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "compute_dvalid"
Location [257, 457, 812, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "column_idx"
Position [20, 101, 40, 119]
IconDisplay "Port number"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 160, 320, 200]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function aMedianFilter_hw 6"
Ports [1, 2]
Position [180, 100, 230, 160]
FunctionName "sf_sfun"
PortCounts "[1 2]"
EnableBusSupport on
Port {
PortNumber 2
Name "dvalid"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 171, 480, 189]
}
Block {
BlockType Outport
Name "dvalid"
Position [460, 101, 480, 119]
IconDisplay "Port number"
}
Line {
SrcBlock " SFunction "
SrcPort 1
DstBlock " Demux "
DstPort 1
}
Line {
SrcBlock "column_idx"
SrcPort 1
DstBlock " SFunction "
DstPort 1
}
Line {
Name "dvalid"
Labels [0, 0]
SrcBlock " SFunction "
SrcPort 2
DstBlock "dvalid"
DstPort 1
}
Line {
SrcBlock " Demux "
SrcPort 1
DstBlock " Terminator "
DstPort 1
}
}
}
Block {
BlockType Reference
Name "cutset_reg1"
Ports [1, 1]
Position [745, 412, 780, 438]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "2"
}
Block {
BlockType Reference
Name "cutset_reg2"
Ports [1, 1]
Position [785, 632, 820, 658]
SourceBlock "simulink/Discrete/Integer Delay"
SourceType "Integer Delay"
vinit "0.0"
samptime "-1"
NumDelays "2"
}
Block {
BlockType SubSystem
Name "d3x3"
Ports [1, 4]
Position [510, 74, 675, 131]
PermitHierarchicalResolution "ExplicitOnly"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskType "Stateflow"
MaskDescription "Embedded MATLAB block"
MaskDisplay "disp('d3x3');"
MaskSelfModifiable on
MaskIconFrame on
MaskIconOpaque off
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "d3x3"
Location [257, 457, 812, 717]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Inport
Name "column_data"
Position [20, 101, 40, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Demux
Name " Demux "
Ports [1, 1]
Position [270, 220, 320, 260]
Outputs "1"
}
Block {
BlockType "S-Function"
Name " SFunction "
Tag "Stateflow S-Function aMedianFilter_hw 2"
Ports [1, 5]
Position [180, 100, 230, 220]
FunctionName "sf_sfun"
PortCounts "[1 5]"
EnableBusSupport on
Port {
PortNumber 2
Name "min3"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 3
Name "med3"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 4
Name "max3"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 5
Name "center_data"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Terminator
Name " Terminator "
Position [460, 231, 480, 249]
}
Block {
BlockType Outport
Name "min3"
Position [460, 101, 480, 119]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Outport
Name "med3"
Position [460, 136, 480, 154]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "max3"
Position [460, 171, 480, 189]
Port "3"
IconDisplay "Port number"
}
Block {
BlockType Outport
Name "center_data"
Position [460, 206, 480, 224]
Port "4"
IconDisplay "Port number"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -