📄 ex5_sum1.mdl
字号:
RndMeth "Floor"
DoSatur off
}
Block {
BlockType Reference
Name "Conversion4"
Ports [1, 1]
Position [150, 505, 190, 545]
SourceBlock "fixpt_lib_4/Data Type/Conversion"
SourceType "Fixed-Point to Fixed-Point Conversion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "float('double')"
OutScaling "2^-15"
LockScale off
RndMeth "Floor"
DoSatur on
}
Block {
BlockType Reference
Name "Conversion5"
Ports [1, 1]
Position [150, 560, 190, 600]
SourceBlock "fixpt_lib_4/Data Type/Conversion"
SourceType "Fixed-Point to Fixed-Point Conversion"
ConvertRealWorld "Real World Value"
OutputDataTypeScalingMode "Specify via dialog"
OutDataType "float('double')"
OutScaling "2^-15"
LockScale off
RndMeth "Floor"
DoSatur off
}
Block {
BlockType Display
Name "Display"
Ports [1]
Position [270, 14, 410, 46]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display1"
Ports [1]
Position [265, 109, 410, 141]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display2"
Ports [1]
Position [460, 67, 635, 113]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display3"
Ports [1]
Position [280, 244, 420, 276]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display4"
Ports [1]
Position [275, 355, 420, 385]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display5"
Ports [1]
Position [470, 296, 640, 334]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display6"
Ports [1]
Position [280, 489, 420, 521]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display7"
Ports [1]
Position [275, 600, 420, 630]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Display8"
Ports [1]
Position [470, 541, 640, 579]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Error"
Ports [1]
Position [575, 391, 745, 429]
Format "long"
Decimation "1"
}
Block {
BlockType Display
Name "Error1"
Ports [1]
Position [570, 161, 740, 199]
Format "long"
Decimation "1"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [520, 400, 540, 420]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [525, 170, 545, 190]
ShowName off
IconShape "round"
Inputs "|-+"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Conversion"
DstPort 1
}
Line {
SrcBlock "Conversion"
SrcPort 1
Points [60, 0]
Branch {
Points [110, 0]
DstBlock "Add"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "Display"
DstPort 1
}
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Conversion1"
DstPort 1
}
Line {
SrcBlock "Conversion1"
SrcPort 1
Points [45, 0; 0, -15; 25, 0]
Branch {
DstBlock "Add"
DstPort 2
}
Branch {
Points [-5, 0]
DstBlock "Display1"
DstPort 1
}
}
Line {
SrcBlock "Add"
SrcPort 1
Points [20, 0]
Branch {
Points [10, 0]
DstBlock "Display2"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Constant3"
SrcPort 1
DstBlock "Conversion2"
DstPort 1
}
Line {
SrcBlock "Conversion2"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
Points [110, 0]
DstBlock "Add2"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "Display3"
DstPort 1
}
}
Line {
SrcBlock "Constant4"
SrcPort 1
DstBlock "Conversion3"
DstPort 1
}
Line {
SrcBlock "Conversion3"
SrcPort 1
Points [45, 0; 0, -15; 25, 0]
Branch {
DstBlock "Add2"
DstPort 2
}
Branch {
Points [-5, 0]
DstBlock "Display4"
DstPort 1
}
}
Line {
SrcBlock "Add2"
SrcPort 1
Points [20, 0]
Branch {
Points [10, 0]
DstBlock "Display5"
DstPort 1
}
Branch {
Points [0, 100]
DstBlock "Sum"
DstPort 1
}
}
Line {
SrcBlock "Constant5"
SrcPort 1
DstBlock "Conversion4"
DstPort 1
}
Line {
SrcBlock "Conversion4"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
Points [110, 0]
DstBlock "Add1"
DstPort 1
}
Branch {
Points [0, -20]
DstBlock "Display6"
DstPort 1
}
}
Line {
SrcBlock "Constant6"
SrcPort 1
DstBlock "Conversion5"
DstPort 1
}
Line {
SrcBlock "Conversion5"
SrcPort 1
Points [45, 0; 0, -15; 25, 0]
Branch {
DstBlock "Add1"
DstPort 2
}
Branch {
Points [-5, 0]
DstBlock "Display7"
DstPort 1
}
}
Line {
SrcBlock "Add1"
SrcPort 1
Points [25, 0]
Branch {
Points [5, 0]
DstBlock "Display8"
DstPort 1
}
Branch {
Points [-15, 0]
Branch {
Points [80, -120]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, -250]
DstBlock "Sum1"
DstPort 2
}
}
}
Line {
SrcBlock "Sum"
SrcPort 1
DstBlock "Error"
DstPort 1
}
Line {
SrcBlock "Sum1"
SrcPort 1
DstBlock "Error1"
DstPort 1
}
Annotation {
Name "Q7.8 Addition\n"
Position [69, 159]
FontName "Arial"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
Annotation {
Name "Floating-point Addition\nusing float(16,4)"
Position [119, 409]
FontName "Arial"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
Annotation {
Name "Double Precision Addition"
Position [149, 639]
FontName "Arial"
FontSize 16
FontWeight "bold"
FontAngle "italic"
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -