📄 ofdm_12.mdl
字号:
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Reference
Name "Polynomial\nEvaluation"
Ports [2, 1]
Position [205, 18, 315, 87]
ShowName off
SourceBlock "dsppolyfun/Polynomial\nEvaluation"
SourceType "Polynomial Evaluation"
useConstCoeffs off
constCoeffs "[5 4 3 2 1]"
}
Block {
BlockType Outport
Name "Out1"
Position [350, 48, 380, 62]
IconDisplay "Port number"
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "Polynomial\nEvaluation"
DstPort 1
}
Line {
SrcBlock "Polynomial\nEvaluation"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Line {
SrcBlock "In2"
SrcPort 1
DstBlock "Filter coefficients"
DstPort 1
}
Line {
SrcBlock "Filter coefficients"
SrcPort 1
DstBlock "Polynomial\nEvaluation"
DstPort 2
}
Annotation {
Name "Filter Coefficients from Chris Dick Xilinx, \nor H. Meyer pp 520 (9-33) Digital Communications Receivers"
Position [197, 166]
}
}
}
Block {
BlockType Reference
Name "Filter State (4x1)"
Ports [1, 1]
Position [155, 75, 205, 125]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "4"
V "3"
ic "0"
}
Block {
BlockType Outport
Name "Yout"
Position [450, 78, 480, 92]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Line {
SrcBlock "Xin"
SrcPort 1
DstBlock "Filter State (4x1)"
DstPort 1
}
Line {
SrcBlock "Mu"
SrcPort 1
DstBlock "Calculate Filter"
DstPort 1
}
Line {
SrcBlock "Filter State (4x1)"
SrcPort 1
DstBlock "Calculate Filter"
DstPort 2
}
Line {
SrcBlock "Calculate Filter"
SrcPort 1
DstBlock "Yout"
DstPort 1
}
Line {
SrcBlock "Strobe"
SrcPort 1
Points [255, 0]
DstBlock "Calculate Filter"
DstPort enable
}
}
}
Block {
BlockType Display
Name "Frame Time"
Ports [1]
Position [475, 233, 565, 257]
Orientation "left"
FontName "Arial"
Lockdown off
}
Block {
BlockType SubSystem
Name "OFDM Rx"
Ports [3, 2, 1]
Position [70, 373, 210, 487]
Orientation "left"
BackgroundColor "cyan"
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
Port {
PortNumber 1
Name "tcu control"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
Port {
PortNumber 2
Name "carrier control"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
System {
Name "OFDM Rx"
Location [9, 139, 1031, 607]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 212
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "101"
Block {
BlockType Inport
Name "OFDM Frame"
Position [15, 88, 45, 102]
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Frame Offset Est"
Position [695, 168, 725, 182]
Port "2"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType Inport
Name "Apply Ch Est."
Position [480, 103, 510, 117]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [115, 265, 135, 285]
}
Block {
BlockType SubSystem
Name "Apply Channel Estimate"
Ports [3, 1, 1]
Position [550, 59, 630, 121]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Apply Channel Estimate"
Location [825, 129, 1617, 411]
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 "OFDM"
Position [20, 28, 50, 42]
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Chan Est"
Position [20, 103, 50, 117]
Port "2"
IconDisplay "Port number"
}
Block {
BlockType Inport
Name "Apply Ch Est."
Position [225, 123, 255, 137]
Port "3"
IconDisplay "Port number"
OutDataType "sfix(16)"
OutScaling "2^0"
}
Block {
BlockType EnablePort
Name "Enable"
Ports []
Position [415, 125, 435, 145]
}
Block {
BlockType Reference
Name "Frame Status\nConversion2"
Ports [1, 1]
Position [445, 39, 490, 71]
SourceBlock "dspobslib/Frame Status\nConversion"
SourceType "Frame Status Conversion"
ShowPortLabels "none"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
growRefPort off
outframe "Frame-based"
}
Block {
BlockType Product
Name "Product1"
Ports [2, 1]
Position [250, 27, 280, 58]
Inputs "*/"
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Selector
Name "Selector"
Ports [1, 1]
Position [100, 90, 155, 130]
ShowName off
InputPortWidth "64"
IndexOptions "Index vector (dialog)"
Indices "[ 4:6 8:10 12:14 16:18 20:22 24:26 28:30 32:34 36:38 40:42 44:46 48:50 52:54 56:58 60:62 ]"
OutputSizes "1"
}
Block {
BlockType Switch
Name "Switch"
Position [355, 40, 385, 70]
Threshold ".5"
InputSameDT off
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Outport
Name "Out1"
Position [555, 48, 585, 62]
IconDisplay "Port number"
}
Line {
SrcBlock "Selector"
SrcPort 1
Points [20, 0; 0, -60]
DstBlock "Product1"
DstPort 2
}
Line {
SrcBlock "OFDM"
SrcPort 1
Points [125, 0]
Branch {
DstBlock "Product1"
DstPort 1
}
Branch {
Points [0, -25; 140, 0; 0, 55]
DstBlock "Switch"
DstPort 3
}
}
Line {
SrcBlock "Chan Est"
SrcPort 1
DstBlock "Selector"
DstPort 1
}
Line {
SrcBlock "Switch"
SrcPort 1
DstBlock "Frame Status\nConversion2"
DstPort 1
}
Line {
SrcBlock "Product1"
SrcPort 1
DstBlock "Switch"
DstPort 1
}
Line {
SrcBlock "Apply Ch Est."
SrcPort 1
Points [30, 0; 0, -75]
DstBlock "Switch"
DstPort 2
}
Line {
SrcBlock "Frame Status\nConversion2"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
Annotation {
Name "Extract Matching Channel \nCorrections"
Position [126, 72]
}
}
}
Block {
BlockType SubSystem
Name "Carrier Recovery \nPI Controller"
Ports [1, 1]
Position [770, 263, 895, 327]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
System {
Name "Carrier Recovery \nPI Controller"
Location [48, 138, 843, 430]
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 "106"
Block {
BlockType Inport
Name "Fine Correction"
Position [115, 83, 145, 97]
IconDisplay "Port number"
}
Block {
BlockType Sum
Name "Add1"
Ports [2, 1]
Position [310, 82, 340, 113]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Sum
Name "Add2"
Ports [2, 1]
Position [475, 77, 505, 108]
CollapseMode "All dimensions"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Delay1"
Ports [1, 1]
Position [345, 135, 385, 175]
Orientation "left"
SourceBlock "dspsigops/Delay"
SourceType "Delay"
dly_unit "Samples"
delay "1"
ic_detail off
dif_ic_for_ch off
dif_ic_for_dly off
ic "0"
reset_popup "None"
}
Block {
BlockType Gain
Name "P Gain"
Position [345, 20, 375, 50]
Gain "5"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Gain
Name "PI Gain"
Position [190, 75, 220, 105]
NamePlacement "alternate"
Gain "-200"
ParameterDataTypeMode "Inherit via internal rule"
ParameterDataType "sfix(16)"
ParameterScaling "2^0"
OutDataTypeMode "Inherit via internal rule"
OutDataType "sfix(16)"
OutScaling "2^0"
SaturateOnIntegerOverflow off
}
Block {
BlockType Saturate
Name "Saturation"
Posi
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -