📄 dds_sin_cos_wave.mdl
字号:
Ports [1, 1]
Position [470, 281, 545, 299]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/BusConversion"
SourceType "SubBus Altera BlockSet"
Inputs "Signed Integer"
bwl "20"
bwr "8"
Outputs "Signed Integer"
obwl "10"
obwr "8"
msb "18"
lsb "9"
rnd "on"
sat "on"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [80, 120, 125, 170]
ForegroundColor "blue"
SourceBlock "store_alteradspbuilder/Delay"
SourceType "Delay AlteraBlockSet"
depth "1"
clken "off"
MaskValue "1"
}
Block {
BlockType Reference
Name "LUT"
Ports [1, 1]
Position [215, 251, 300, 299]
ForegroundColor "blue"
SourceBlock "gate_alteradspbuilder/LUT"
SourceType "LUT AlteraBlockSet"
BusType "Signed Integer"
bwl "10"
bwr "0"
bwaddr "10"
MatlabArray "511*cos( [0:2*pi/(2^10):2*pi] )"
LocPin "dds_sinwaveSubsystem_dds_coswaveLUT"
lpm "off"
modulename "d:\\matlab6p5\\work\\dds_sinwave\\DSPBuilde"
"r_dds_sinwave\\dds_sinwaveSubsystem_dds_coswaveLUT.lut"
pipeline "off"
IslibDir "0"
clken "off"
}
Block {
BlockType Reference
Name "Parallel \nAdder Subtractor"
Ports [2, 1]
Position [235, 87, 270, 163]
ForegroundColor "blue"
SourceBlock "arithm_alteradspbuilder/Parallel \nAdder Su"
"btractor"
SourceType "Sum AlteraBlockSet"
Inputs "2"
direction "++"
pipeline "on"
clken "off"
MaskValue "1"
}
Block {
BlockType Reference
Name "Parallel \nAdder Subtractor1"
Ports [2, 1]
Position [535, 27, 570, 103]
ForegroundColor "blue"
SourceBlock "arithm_alteradspbuilder/Parallel \nAdder Su"
"btractor"
SourceType "Sum AlteraBlockSet"
Inputs "2"
direction "++"
pipeline "on"
clken "off"
MaskValue "1"
}
Block {
BlockType Reference
Name "Product"
Ports [2, 1]
Position [350, 263, 415, 312]
ForegroundColor "blue"
SourceBlock "arithm_alteradspbuilder/Product"
SourceType "Product Altera BlockSet"
pipeline "2"
lpm "off"
eab "off"
clken "off"
MaskValue "1"
}
Block {
BlockType Outport
Name "Out[9:0]"
Position [570, 283, 600, 297]
}
Line {
SrcBlock "Delay"
SrcPort 1
DstBlock "Parallel \nAdder Subtractor"
DstPort 2
}
Line {
SrcBlock "Parallel \nAdder Subtractor"
SrcPort 1
DstBlock "AltBus"
DstPort 1
}
Line {
SrcBlock "AltBus"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -60; -225, 0; 0, 40]
DstBlock "Parallel \nAdder Subtractor"
DstPort 1
}
Branch {
Points [100, 0]
DstBlock "Parallel \nAdder Subtractor1"
DstPort 2
}
}
Line {
Labels [3, 0]
SrcBlock "Parallel \nAdder Subtractor1"
SrcPort 1
Points [50, 0; 0, 165; -575, 0; 0, 45]
DstBlock "BusConversion2"
DstPort 1
}
Line {
SrcBlock "BusConversion2"
SrcPort 1
DstBlock "LUT"
DstPort 1
}
Line {
SrcBlock "LUT"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "BusConversion3"
DstPort 1
}
Line {
SrcBlock "P[31:0]"
SrcPort 1
DstBlock "Parallel \nAdder Subtractor1"
DstPort 1
}
Line {
SrcBlock "F[31:0]"
SrcPort 1
DstBlock "Delay"
DstPort 1
}
Line {
SrcBlock "BusConversion3"
SrcPort 1
DstBlock "Out[9:0]"
DstPort 1
}
Line {
SrcBlock "AMP[9:0]"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Block {
BlockType SubSystem
Name "Subsystem_dds_sinwave"
Ports [3, 1]
Position [485, 186, 620, 324]
TreatAsAtomicUnit off
System {
Name "Subsystem_dds_sinwave"
Location [2, 78, 1022, 718]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "P[31:0]"
Position [480, 38, 510, 52]
}
Block {
BlockType Inport
Name "F[31:0]"
Position [25, 138, 55, 152]
Port "2"
}
Block {
BlockType Inport
Name "AMP[9:0]"
Position [295, 293, 325, 307]
Port "3"
}
Block {
BlockType Reference
Name "AltBus"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [335, 117, 400, 133]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Internal Node"
bwl "32"
bwr "0"
sat "off"
rnd "off"
bp "off"
mask_cst "0"
LocPin "any"
cst "0"
modulename "AltBus"
nSgCpl "0"
}
Block {
BlockType Reference
Name "BusConversion2"
Ports [1, 1]
Position [105, 266, 180, 284]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/BusConversion"
SourceType "SubBus Altera BlockSet"
Inputs "Signed Integer"
bwl "32"
bwr "8"
Outputs "Signed Integer"
obwl "10"
obwr "8"
msb "31"
lsb "22"
rnd "on"
sat "off"
}
Block {
BlockType Reference
Name "BusConversion3"
Ports [1, 1]
Position [470, 281, 545, 299]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/BusConversion"
SourceType "SubBus Altera BlockSet"
Inputs "Signed Integer"
bwl "20"
bwr "8"
Outputs "Signed Integer"
obwl "10"
obwr "8"
msb "18"
lsb "9"
rnd "on"
sat "on"
}
Block {
BlockType Reference
Name "Delay"
Ports [1, 1]
Position [80, 120, 125, 170]
ForegroundColor "blue"
SourceBlock "store_alteradspbuilder/Delay"
SourceType "Delay AlteraBlockSet"
depth "1"
clken "off"
MaskValue "1"
}
Block {
BlockType Reference
Name "LUT"
Ports [1, 1]
Position [215, 251, 300, 299]
ForegroundColor "blue"
SourceBlock "gate_alteradspbuilder/LUT"
SourceType "LUT AlteraBlockSet"
BusType "Signed Integer"
bwl "10"
bwr "0"
bwaddr "10"
MatlabArray "511*sin( [0:2*pi/(2^10):2*pi] )"
LocPin "dds_sinwaveSubsystem_dds_sinwaveLUT"
lpm "off"
modulename "d:\\matlab6p5\\work\\dds_sinwave\\DSPBuilde"
"r_dds_sinwave\\dds_sinwaveSubsystem_dds_sinwaveLUT.lut"
pipeline "off"
IslibDir "0"
clken "off"
}
Block {
BlockType Reference
Name "Parallel \nAdder Subtractor"
Ports [2, 1]
Position [235, 87, 270, 163]
ForegroundColor "blue"
SourceBlock "arithm_alteradspbuilder/Parallel \nAdder Su"
"btractor"
SourceType "Sum AlteraBlockSet"
Inputs "2"
direction "++"
pipeline "on"
clken "off"
MaskValue "1"
}
Block {
BlockType Reference
Name "Parallel \nAdder Subtractor1"
Ports [2, 1]
Position [535, 27, 570, 103]
ForegroundColor "blue"
SourceBlock "arithm_alteradspbuilder/Parallel \nAdder Su"
"btractor"
SourceType "Sum AlteraBlockSet"
Inputs "2"
direction "++"
pipeline "on"
clken "off"
MaskValue "1"
}
Block {
BlockType Reference
Name "Product"
Ports [2, 1]
Position [350, 263, 415, 312]
ForegroundColor "blue"
SourceBlock "arithm_alteradspbuilder/Product"
SourceType "Product Altera BlockSet"
pipeline "2"
lpm "off"
eab "off"
clken "off"
MaskValue "1"
}
Block {
BlockType Outport
Name "Out[9:0]"
Position [570, 283, 600, 297]
}
Line {
SrcBlock "Delay"
SrcPort 1
DstBlock "Parallel \nAdder Subtractor"
DstPort 2
}
Line {
SrcBlock "Parallel \nAdder Subtractor"
SrcPort 1
DstBlock "AltBus"
DstPort 1
}
Line {
SrcBlock "AltBus"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -60; -225, 0; 0, 40]
DstBlock "Parallel \nAdder Subtractor"
DstPort 1
}
Branch {
Points [100, 0]
DstBlock "Parallel \nAdder Subtractor1"
DstPort 2
}
}
Line {
Labels [3, 0]
SrcBlock "Parallel \nAdder Subtractor1"
SrcPort 1
Points [50, 0; 0, 165; -575, 0; 0, 45]
DstBlock "BusConversion2"
DstPort 1
}
Line {
SrcBlock "BusConversion2"
SrcPort 1
DstBlock "LUT"
DstPort 1
}
Line {
SrcBlock "LUT"
SrcPort 1
DstBlock "Product"
DstPort 1
}
Line {
SrcBlock "Product"
SrcPort 1
DstBlock "BusConversion3"
DstPort 1
}
Line {
SrcBlock "P[31:0]"
SrcPort 1
DstBlock "Parallel \nAdder Subtractor1"
DstPort 1
}
Line {
SrcBlock "F[31:0]"
SrcPort 1
DstBlock "Delay"
DstPort 1
}
Line {
SrcBlock "BusConversion3"
SrcPort 1
DstBlock "Out[9:0]"
DstPort 1
}
Line {
SrcBlock "AMP[9:0]"
SrcPort 1
DstBlock "Product"
DstPort 2
}
}
}
Line {
SrcBlock "Freword"
SrcPort 1
Points [0, 30; 75, 0]
Branch {
Points [230, 0]
DstBlock "Subsystem_dds_sinwave"
DstPort 2
}
Branch {
Points [0, 225]
DstBlock "Subsystem_dds_coswave"
DstPort 2
}
}
Line {
SrcBlock "Phaseword"
SrcPort 1
Points [205, 0]
Branch {
Points [95, 0]
DstBlock "Subsystem_dds_sinwave"
DstPort 1
}
Branch {
Points [0, 340]
DstBlock "Subsystem_dds_coswave"
DstPort 1
}
}
Line {
SrcBlock "Amp\n"
SrcPort 1
Points [40, 0]
Branch {
Points [230, 0; 0, -105]
DstBlock "Subsystem_dds_sinwave"
DstPort 3
}
Branch {
Points [0, 125]
DstBlock "Subsystem_dds_coswave"
DstPort 3
}
}
Line {
SrcBlock "Subsystem_dds_sinwave"
SrcPort 1
Points [230, 0]
DstBlock "DdsOut"
DstPort 1
}
Line {
SrcBlock "DdsOut"
SrcPort 1
Points [0, 40]
DstBlock "Scope"
DstPort 1
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Phaseword"
DstPort 1
}
Line {
SrcBlock "Constant1"
SrcPort 1
DstBlock "Freword"
DstPort 1
}
Line {
SrcBlock "Constant2"
SrcPort 1
DstBlock "Amp\n"
DstPort 1
}
Line {
SrcBlock "Subsystem_dds_coswave"
SrcPort 1
DstBlock "DdsOut1"
DstPort 1
}
Line {
SrcBlock "DdsOut1"
SrcPort 1
Points [60, 0; 0, -120]
DstBlock "Scope"
DstPort 2
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -