📄 pcm32.mdl
字号:
FontAngle "normal"
UseDisplayTextAsClickCallback off
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "PCM32"
Location [2, 80, 1245, 739]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000]
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Reference
Name "Analog\nFilter Design"
Ports [1, 1]
Position [1120, 347, 1185, 403]
SourceBlock "dsparch4/Analog\nFilter Design"
SourceType "Analog Filter Design"
method "Butterworth"
filttype "Lowpass"
N "8"
Wlo "2*pi"
Whi "80"
Rp "2"
Rs "40"
}
Block {
BlockType Reference
Name "Binary Symmetric\nChannel"
Ports [1, 1]
Position [965, 85, 1060, 145]
SourceBlock "commchan3/Binary Symmetric\nChannel"
SourceType "Binary Symmetric Channel"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
P "0"
s "68"
E off
outDtype "double"
}
Block {
BlockType Reference
Name "Bit to Integer\nConverter"
Ports [1, 1]
Position [630, 423, 710, 467]
SourceBlock "commutil2/Bit to Integer\nConverter"
SourceType "Bit to Integer Converter"
nbits "5"
bitOrder "MSB first"
signedOutputValues "Unsigned"
outDtype "Inherit via internal rule"
outDtypeSigned "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Buffer2"
Ports [1, 1]
Position [460, 90, 510, 140]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "4"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer3"
Ports [1, 1]
Position [955, 420, 1005, 470]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "5"
V "0"
ic "0"
}
Block {
BlockType Reference
Name "Buffer5"
Ports [1, 1]
Position [435, 420, 480, 470]
SourceBlock "dspbuff3/Buffer"
SourceType "Buffer"
N "5"
V "0"
ic "0"
}
Block {
BlockType FrameConversion
Name "Frame Conversion"
Ports [1, 1]
Position [300, 95, 355, 135]
}
Block {
BlockType FrameConversion
Name "Frame Conversion2"
Ports [1, 1]
Position [310, 425, 365, 465]
}
Block {
BlockType FrameConversion
Name "Frame Conversion3"
Ports [1, 1]
Position [860, 425, 915, 465]
}
Block {
BlockType Reference
Name "Hamming Decoder"
Ports [1, 1]
Position [720, 303, 855, 367]
Orientation "left"
SourceBlock "commblkcod2/Hamming Decoder"
SourceType "Hamming Decoder"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
n "7"
k "gfprimfd(3,'min')"
}
Block {
BlockType Reference
Name "Hamming Encoder"
Ports [1, 1]
Position [730, 84, 850, 146]
SourceBlock "commblkcod2/Hamming Encoder"
SourceType "Hamming Encoder"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
n "7"
k "gfprimfd(3,'min')"
}
Block {
BlockType Reference
Name "Integer to Bit\nConverter"
Ports [1, 1]
Position [175, 93, 255, 137]
SourceBlock "commutil2/Integer to Bit\nConverter"
SourceType "Integer to Bit Converter"
nbits "5"
signedInputValues "Unsigned"
bitOrder "MSB first"
outDtype "Inherit via internal rule"
}
Block {
BlockType Reference
Name "Quantizer\nDecode"
Ports [1, 1]
Position [725, 423, 805, 467]
SourceBlock "cbobsv2p5/Quantizer\nDecode"
SourceType "Quantizer Decode"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
codebook "[-1 -7/8 -6/8 -5/8 -4/8 -3/8 -2/8 -1/8 0 1/8 2/8 3/8 4/8 5/8 6/8 7/8 1]"
}
Block {
BlockType Reference
Name "Sampled\nQuantizer Encode"
Ports [1, 3]
Position [65, 243, 145, 287]
SourceBlock "cbobsv2p5/Sampled\nQuantizer Encode"
SourceType "Sampled Quantizer Encode"
ShowPortLabels "FromPortIcon"
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
partition "[-1/2 -1/4 -1/8 -1/16 -1/32 -1/64 -1/128 0 1/128 1/64 1/32 1/16 1/8 1/4 1/2 1]"
codebook "[-1 -7/8 -6/8 -5/8 -4/8 -3/8 -2/8 -1/8 0 1/8 2/8 3/8 4/8 5/8 6/8 7/8 1]"
n "1"
sample_time "0.001"
}
Block {
BlockType Scope
Name "Scope1"
Ports [5]
Position [1135, 582, 1255, 758]
Floating off
Location [5, 46, 1281, 768]
Open off
NumInputPorts "5"
ZoomMode "xonly"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
axes3 "%<SignalLabel>"
axes4 "%<SignalLabel>"
axes5 "%<SignalLabel>"
}
TimeRange "1"
YMin "-1~-1~-1~-1~-1"
YMax "1~1~1~1~1"
SaveName "ScopeData1"
DataFormat "StructureWithTime"
SampleTime "0"
}
Block {
BlockType Sin
Name "Sine Wave"
Ports [0, 1]
Position [15, 305, 45, 335]
Frequency "2*pi"
SampleTime "0.001"
}
Block {
BlockType Reference
Name "Unbuffer2"
Ports [1, 1]
Position [1035, 421, 1085, 469]
SourceBlock "dspbuff3/Unbuffer"
SourceType "Unbuffer"
ic "0"
}
Line {
SrcBlock "Sine Wave"
SrcPort 1
Points [0, 0]
Branch {
DstBlock "Sampled\nQuantizer Encode"
DstPort 1
}
Branch {
Points [0, 280]
DstBlock "Scope1"
DstPort 1
}
}
Line {
SrcBlock "Sampled\nQuantizer Encode"
SrcPort 1
Points [10, 0]
DstBlock "Integer to Bit\nConverter"
DstPort 1
}
Line {
SrcBlock "Quantizer\nDecode"
SrcPort 1
DstBlock "Frame Conversion3"
DstPort 1
}
Line {
SrcBlock "Bit to Integer\nConverter"
SrcPort 1
DstBlock "Quantizer\nDecode"
DstPort 1
}
Line {
SrcBlock "Frame Conversion3"
SrcPort 1
DstBlock "Buffer3"
DstPort 1
}
Line {
SrcBlock "Buffer3"
SrcPort 1
DstBlock "Unbuffer2"
DstPort 1
}
Line {
SrcBlock "Unbuffer2"
SrcPort 1
Points [15, 0]
Branch {
DstBlock "Analog\nFilter Design"
DstPort 1
}
Branch {
Points [0, 225]
DstBlock "Scope1"
DstPort 3
}
}
Line {
SrcBlock "Hamming Encoder"
SrcPort 1
DstBlock "Binary Symmetric\nChannel"
DstPort 1
}
Line {
SrcBlock "Analog\nFilter Design"
SrcPort 1
Points [0, 150; -110, 0; 0, 180]
DstBlock "Scope1"
DstPort 4
}
Line {
SrcBlock "Integer to Bit\nConverter"
SrcPort 1
DstBlock "Frame Conversion"
DstPort 1
}
Line {
SrcBlock "Frame Conversion"
SrcPort 1
DstBlock "Buffer2"
DstPort 1
}
Line {
SrcBlock "Buffer2"
SrcPort 1
DstBlock "Hamming Encoder"
DstPort 1
}
Line {
SrcBlock "Sampled\nQuantizer Encode"
SrcPort 2
Points [10, 0; 0, 370]
DstBlock "Scope1"
DstPort 2
}
Line {
SrcBlock "Binary Symmetric\nChannel"
SrcPort 1
Points [30, 0; 0, 220]
DstBlock "Hamming Decoder"
DstPort 1
}
Line {
SrcBlock "Hamming Decoder"
SrcPort 1
Points [-475, 0; 0, 110]
DstBlock "Frame Conversion2"
DstPort 1
}
Line {
SrcBlock "Buffer5"
SrcPort 1
DstBlock "Bit to Integer\nConverter"
DstPort 1
}
Line {
SrcBlock "Frame Conversion2"
SrcPort 1
DstBlock "Buffer5"
DstPort 1
}
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -