📄 dds.mdl
字号:
Description "Sign Binary Fractionnal"
Ports [0, 1]
Position [395, 211, 445, 229]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/Constant"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Constant"
bwl "16"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
ncstsamp "-1"
cst "0"
modulename "Constant7"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType Reference
Name "DA_CS"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [1025, 192, 1090, 208]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Single Bit"
nodetype "Output Port"
bwl "1"
bwr "0"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "DA_CS"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType Reference
Name "DA_DATA"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [1035, 242, 1100, 258]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Unsigned Integer"
nodetype "Output Port"
bwl "8"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "DA_DATA"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType Reference
Name "DDSOUT"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [950, 322, 1015, 338]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Unsigned Integer"
nodetype "Internal Node"
bwl "10"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "DDSOUT"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType Reference
Name "ExtractBit"
Ports [1, 1]
Position [800, 538, 855, 562]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/ExtractBit"
SourceType "ExtractBit AlteraBlockSet"
bwl "10"
bwr "0"
Outputs "9"
}
Block {
BlockType Reference
Name "FREQWORD"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [85, 177, 150, 193]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Unsigned Integer"
nodetype "Input Port"
bwl "8"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "FREQWORD"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType Reference
Name "FREQWORD1"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [470, 307, 535, 323]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Internal Node"
bwl "32"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "FREQWORD1"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType Reference
Name "GND"
Ports [0, 1]
Position [965, 192, 985, 208]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/GND"
SourceType "SGND AlteraBlockSet"
ncstsamp "1"
}
Block {
BlockType Reference
Name "NOT"
Ports [1, 1]
Position [885, 541, 930, 559]
ForegroundColor "blue"
SourceBlock "gate_alteradspbuilder/NOT"
SourceType "LogiBit AlteraBlockSet"
Operator "NOT"
Inputs "2"
}
Block {
BlockType Scope
Name "Scope"
Ports [2]
Position [1085, 302, 1115, 338]
Location [5, 53, 1033, 775]
Open off
NumInputPorts "2"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
axes2 "%<SignalLabel>"
}
List {
ListType SelectedSignals
axes1 ""
axes2 ""
}
YMin "-5~-5"
YMax "5~5"
DataFormat "StructureWithTime"
}
Block {
BlockType Scope
Name "Scope1"
Ports [1]
Position [820, 252, 850, 288]
Location [6, 53, 1034, 775]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%<SignalLabel>"
}
SaveName "ScopeData1"
DataFormat "StructureWithTime"
}
Block {
BlockType Reference
Name "SignalCompiler"
Ports []
Position [659, 113, 728, 160]
ForegroundColor "blue"
SourceBlock "ALTELINK/AltLab/SignalCompiler"
SourceType "SignalCompiler"
family "ACEX 1K"
opt "Speed"
synthtool "Others"
vstim on
SynthAct "None"
workdir "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l"
Procetype "prod"
UseReset on
ResetPin "Active High"
ClockPin "Keep Internal"
ClockPeriod "10"
UseSignalTap off
CreatePtfFile off
SignalTapDepth "128"
}
Block {
BlockType Reference
Name "SinOut1"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [675, 572, 740, 588]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Internal Node"
bwl "10"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "SinOut1"
ppat "d:\\matlab6\\work\\gw48_sopc_1c6_demo\\dds_l\\D"
"SPBuilder_dds"
nSgCpl "1"
}
Block {
BlockType SubSystem
Name "SubDDS"
Ports [3, 1]
Position [620, 249, 740, 381]
FontName "Arial"
TreatAsAtomicUnit off
MaskType "SubSystem AlteraBlockSet"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "SubDDS"
Location [2, 74, 1014, 744]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "P[15:0]"
Position [25, 168, 55, 182]
}
Block {
BlockType Inport
Name "F[31:0]"
Position [25, 283, 55, 297]
Port "2"
}
Block {
BlockType Inport
Name "A[7:0]"
Position [140, 478, 170, 492]
Port "3"
}
Block {
BlockType Reference
Name "AltBus"
Description "Sign Binary Fractionnal"
Ports [1, 1]
Position [395, 257, 460, 273]
ForegroundColor "blue"
SourceBlock "bus_alteradspbuilder/AltBus"
SourceType "AltBus AlteraBlockSet"
sgn "Signed Integer"
nodetype "Internal Node"
bwl "32"
bwr "8"
sat off
rnd off
bp off
mask_cst "0"
LocPin "any"
cst "0"
modulename "AltBus"
ppat "d:\\file_copy\\dspbd_demo\\myprj\\sinwave\\"
"DSPBuilder_subdds"
nSgCpl "0"
}
Block {
BlockType "S-Function"
Name "BusConcatenation"
Ports [2, 1]
Position [360, 141, 465, 179]
ForegroundColor "blue"
AncestorBlock "bus_alteradspbuilder/BusConcatenation"
FunctionName "SBusConcat"
Parameters "-1 bwl bwr blean"
MaskType "Bus Concatenation AlteraBlockSet"
MaskDescription "Bus Concatenation\n\nConcatenates two buses"
". The result is AB, where B is the LSB slice of the output bus, and A is the "
"MSB slice of the output bus.\n"
MaskHelp "web([GETDOCPATH(0) 'busman-buscat.html'])"
MaskPromptString "Bus A Width |Bus B Width |Output"
" is Signed"
MaskStyleString "popup(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|1"
"6|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|"
"42|43|44|45|46|47|48|49|50|51),popup(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|1"
"7|18|19|20|21|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|"
"43|44|45|46|47|48|49|50|51),checkbox"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "bwl=@1;bwr=@2;blean=@3;"
MaskInitialization "a = ['a[' num2str(bwl-1) ':0]'];\nb = ['b['"
" num2str(bwr-1) ':0]'];\nc = ['ab[' num2str(bwr+bwl-1) ':0]'];"
MaskDisplay "plot([0 10 10 10 20], [ 0 0 3 3 3 ])\nplot("
"[0 10 10 10 20], [ 10 10 7 7 7 ])\nport_label('input',1,a);\nport_label('inpu"
"t',2,b);\nport_label('output',1,c);"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "16|16|on"
}
Block {
BlockType "S-Function"
Name "BusConversion2"
Ports [1, 1]
Position [75, 396, 150, 414]
ForegroundColor "blue"
AncestorBlock "bus_alteradspbuilder/BusConversion"
FunctionName "SExtractBus"
Parameters "-1 Inputs bwl bwr Outputs obwl obwr msb lsb"
" rnd sat"
MaskType "SubBus Altera BlockSet"
MaskDescription "BusConversion\n\nExtract a subsection of a "
"bus. Supports bus type and width conversion.\n\nUsage: \n\n1. Choose the inpu"
"t and output bus types you wish to use and click\n Apply. Different option"
"s are available for each bus type.\n2. Make additional settings as needed.\n3"
". Click OK."
MaskHelp "web([GETDOCPATH(0) 'busman-busconv.html'])"
MaskPromptString "Input Bus Type |Input [number of bi"
"ts].[] |Input [].[number of bits] "
" |Output Bus Type |Output [number of "
"bits].[] |Output [].[number of bits] "
" |Input Bit Connected to Output MSB |Input Bit Connected to Output LS"
"B |Round|Saturate"
MaskStyleString "popup(Signed Integer|Signed Fractional|Unsi"
"gned Integer),popup(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|"
"23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48"
"|49|50|51),popup(0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|2"
"3|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|"
"49|50|51),popup(Signed Integer|Signed Fractional|Unsigned Integer),popup(1|2|"
"3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|"
"31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),popup(0|1|2|3"
"|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|3"
"1|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),popup(0|1|2|3|"
"4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31"
"|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),popup(0|1|2|3|4"
"|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|"
"32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),checkbox,checkbo"
"x"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,off,on,on,off,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,"
MaskVariables "Inputs=@1;bwl=@2;bwr=@3;Outputs=@4;obwl=@5;"
"obwr=@6;msb=@7;lsb=@8;rnd=@9;sat=@10;"
MaskInitialization "[iwth owth visib]=busconinit(Inputs,Outputs"
",bwl, bwr ,obwl, obwr,msb,lsb);\nset_param(gcb,'MaskVisibilities',visib);\n\n"
"\n"
MaskDisplay "plot([0 0 20 20 40 40],[10 0 0 20 20 10])"
"\nfprintf('%s %s',iwth,owth)"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "Signed Integer|32|8|Signed Integer|10|0|31|"
"22|on|off"
}
Block {
BlockType "S-Function"
Name "BusConversion3"
Ports [1, 1]
Position [445, 406, 520, 424]
ForegroundColor "blue"
AncestorBlock "bus_alteradspbuilder/BusConversion"
FunctionName "SExtractBus"
Parameters "-1 Inputs bwl bwr Outputs obwl obwr msb lsb"
" rnd sat"
MaskType "SubBus Altera BlockSet"
MaskDescription "BusConversion\n\nExtract a subsection of a "
"bus. Supports bus type and width conversion.\n\nUsage: \n\n1. Choose the inpu"
"t and output bus types you wish to use and click\n Apply. Different option"
"s are available for each bus type.\n2. Make additional settings as needed.\n3"
". Click OK."
MaskHelp "web([GETDOCPATH(0) 'busman-busconv.html'])"
MaskPromptString "Input Bus Type |Input [number of bits].[]"
" |Input [].[number of bits] |Output Bus Type |Output [number of bits].[]"
" |Output [].[number of bits] |Input Bit Connected to Output MSB |Input"
" Bit Connected to Output LSB |Round|Saturate"
MaskStyleString "popup(Signed Integer|Signed Fractional|Unsi"
"gned Integer),popup(1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|"
"23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48"
"|49|50|51),popup(0|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|2"
"3|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|"
"49|50|51),popup(Signed Integer|Signed Fractional|Unsigned Integer),popup(1|2|"
"3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|"
"31|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),popup(0|1|2|3"
"|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|3"
"1|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),popup(0|1|2|3|"
"4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31"
"|32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),popup(0|1|2|3|4"
"|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|"
"32|33|34|35|36|37|38|39|40|41|42|43|44|45|46|47|48|49|50|51),checkbox,checkbo"
"x"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "|||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,off,on,on,off,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,"
MaskVariables "Inputs=@1;bwl=@2;bwr=@3;Outputs=@4;obwl=@5;"
"obwr=@6;msb=@7;lsb=@8;rnd=@9;sat=@10;"
MaskInitialization "[iwth owth visib]=busconinit(Inputs,Outputs"
",bwl, bwr ,obwl, obwr,msb,lsb);\nset_param(gcb,'MaskVisibilities',visib);\n\n"
"\n"
MaskDisplay "plot([0 0 20 20 40 40],[10 0 0 20 20 10])"
"\nfprintf('%s %s',iwth,owth)"
MaskIconFrame off
MaskIconOpaque on
MaskIconRotate "port"
MaskIconUnits "autoscale"
MaskValueString "Signed Integer|18|8|Signed Integer|10|0|17|"
"8|on|on"
}
Block {
BlockType Reference
Name "Constant"
Description "Sign Binary Fractionnal"
Ports [0, 1]
Position [230, 181, 280, 199]
ForegroundColor "blue"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -