⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dds_sinwave.mdl

📁 这是一个在MTALAB 中采用的SIMULIN设计的多功能数字频率合成器的源代码
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      LocPin		      "any"
      cst		      "0"
      modulename	      "Freword"
      nSgCpl		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Phaseword"
      Description	      "Sign Binary Fractionnal"
      Ports		      [1, 1]
      Position		      [360, 202, 425, 218]
      ForegroundColor	      "blue"
      SourceBlock	      "bus_alteradspbuilder/Input"
      SourceType	      "AltBus AlteraBlockSet"
      sgn		      "Signed Integer"
      nodetype		      "Input Port"
      bwl		      "32"
      bwr		      "0"
      sat		      off
      rnd		      off
      bp		      off
      mask_cst		      "0"
      LocPin		      "any"
      cst		      "0"
      modulename	      "Phaseword"
      nSgCpl		      "0"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [3]
      Position		      [770, 226, 845, 404]
      Location		      [5, 60, 1029, 741]
      Open		      off
      NumInputPorts	      "3"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
	axes3			"%<SignalLabel>"
      }
      List {
	ListType		SelectedSignals
	axes1			""
	axes2			""
	axes3			""
      }
      YMin		      "-5~-5~-5"
      YMax		      "5~5~5"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem_dds_sinwave"
      Ports		      [3, 1]
      Position		      [485, 186, 620, 324]
      TreatAsAtomicUnit	      off
      System {
	Name			"Subsystem_dds_sinwave"
	Location		[2, 82, 1014, 722]
	Open			on
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"A4"
	PaperUnits		"centimeters"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "P[31:0]"
	  Position		  [435, 38, 465, 52]
	}
	Block {
	  BlockType		  Inport
	  Name			  "F[31:0]"
	  Position		  [25, 123, 55, 137]
	  Port			  "2"
	}
	Block {
	  BlockType		  Inport
	  Name			  "AMP[9:0]"
	  Position		  [295, 308, 325, 322]
	  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		  "c:\\documents and settings\\oldslam\\桌面\\"
"dsp_homework\\dds_sinwave\\DSPBuilder_dds_sinwave\\dds_sinwaveSubsystem_dds_s"
"inwaveLUT.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
	  Points		  [0, 15]
	  DstBlock		  "Delay"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "BusConversion3"
	  SrcPort		  1
	  DstBlock		  "Out[9:0]"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "AMP[9:0]"
	  SrcPort		  1
	  Points		  [0, -15]
	  DstBlock		  "Product"
	  DstPort		  2
	}
      }
    }
    Line {
      SrcBlock		      "Freword"
      SrcPort		      1
      Points		      [0, 5]
      DstBlock		      "Subsystem_dds_sinwave"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Phaseword"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Subsystem_dds_sinwave"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Amp\n"
      SrcPort		      1
      Points		      [0, 0]
      DstBlock		      "Subsystem_dds_sinwave"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Subsystem_dds_sinwave"
      SrcPort		      1
      DstBlock		      "DdsOut"
      DstPort		      1
    }
    Line {
      SrcBlock		      "DdsOut"
      SrcPort		      1
      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
      Points		      [15, 0]
      Branch {
	DstBlock		"Amp\n"
	DstPort			1
      }
      Branch {
	Points			[0, 15]
	DstBlock		"Scope"
	DstPort			2
      }
    }
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -