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

📄 ex5_iir.mdl

📁 用dsp解压mp3程序的算法
💻 MDL
📖 第 1 页 / 共 2 页
字号:
"775303 0.03011887504317]"
      ICPrevOutput	      "0.0"
      ICPrevInput	      "0.0"
      RndMeth		      "Floor"
      DoSatur		      off
    }
    Block {
      BlockType		      Reference
      Name		      "FixPt Direct Form II Filter"
      Ports		      [1, 1]
      Position		      [450, 228, 830, 272]
      SourceBlock	      "fixpt_lib_4/Filters/Filter\nDirect Form II"
      SourceType	      "Fixed-Point Filter Direct Form II"
      NumCoefVec	      "[0.04658290663644  0.18633162654577 0.279497439"
"81866  0.18633162654577 0.04658290663644]"
      DenCoefVec	      "[-0.78209519802334 0.67997852691630 -0.18267569"
"775303 0.03011887504317]"
      vinit		      "0.0"
      RndMeth		      "Floor"
      DoSatur		      off
    }
    Block {
      BlockType		      Reference
      Name		      "FixPt to Dbl1"
      Ports		      [1, 1]
      Position		      [920, 231, 965, 269]
      SourceBlock	      "fixpt_lib_4/Data Type/Gateway Out"
      SourceType	      "Fixed-Point Gateway Out"
      OutRealWorld	      "Real World Value"
      OutBuiltInType	      "double"
      RndMeth		      "Floor"
      DoSatur		      off
    }
    Block {
      BlockType		      Reference
      Name		      "FixPt to Dbl2"
      Ports		      [1, 1]
      Position		      [925, 341, 970, 379]
      SourceBlock	      "fixpt_lib_4/Data Type/Gateway Out"
      SourceType	      "Fixed-Point Gateway Out"
      OutRealWorld	      "Real World Value"
      OutBuiltInType	      "double"
      RndMeth		      "Floor"
      DoSatur		      off
    }
    Block {
      BlockType		      Reference
      Name		      "FixPtGUI"
      Ports		      []
      Position		      [1131, 185, 1171, 229]
      BackgroundColor	      "orange"
      ShowName		      off
      SourceBlock	      "fixpt_lib_3p1/FixPt\nGUI"
      SourceType	      "Fixed-Point GUI"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Fixed Point\nTestSignal"
      Ports		      [0, 1]
      Position		      [15, 39, 115, 121]
      FontName		      "MS Sans Serif"
      TreatAsAtomicUnit	      off
      MaskDisplay	      "fprintf('Sine Waves\\n0.5 @ 2Hz\\nplus\\n0.5 @ "
"80Hz')"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Fixed Point\nTestSignal"
	Location		[90, 447, 518, 595]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Reference
	  Name			  "Dbl To FixPt1"
	  Ports			  [1, 1]
	  Position		  [245, 26, 290, 64]
	  SourceBlock		  "fixpt_lib_4/Data Type/Gateway In"
	  SourceType		  "Fixed-Point Gateway In"
	  InRealWorld		  "Real World Value"
	  OutputDataTypeScalingMode "Specify via dialog"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^(-15)"
	  LockScale		  on
	  RndMeth		  "Floor"
	  DoSatur		  on
	}
	Block {
	  BlockType		  SignalGenerator
	  Name			  "Signal\nGenerator1"
	  Position		  [25, 30, 55, 60]
	  Amplitude		  "0.5"
	  Frequency		  "2"
	}
	Block {
	  BlockType		  SignalGenerator
	  Name			  "Signal\nGenerator2"
	  Position		  [25, 90, 55, 120]
	  Amplitude		  "0.5"
	  Frequency		  "80"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [105, 35, 125, 55]
	  ShowName		  off
	  IconShape		  "round"
	  Inputs		  "|++"
	}
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "Zero-Order\nHold"
	  Position		  [165, 30, 195, 60]
	  SampleTime		  "0.005"
	}
	Block {
	  BlockType		  Outport
	  Name			  "u"
	  Position		  [315, 38, 345, 52]
	  FontName		  "MS Sans Serif"
	}
	Line {
	  SrcBlock		  "Zero-Order\nHold"
	  SrcPort		  1
	  DstBlock		  "Dbl To FixPt1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Zero-Order\nHold"
	  DstPort		  1
	}
	Line {
	  Labels		  [1, 0]
	  SrcBlock		  "Signal\nGenerator1"
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Signal\nGenerator2"
	  SrcPort		  1
	  Points		  [55, 0]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Dbl To FixPt1"
	  SrcPort		  1
	  DstBlock		  "u"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      DiscreteTransferFcn
      Name		      "Floating Point DiscreteTransfer Fcn"
      Position		      [360, 100, 910, 160]
      FontName		      "Arial"
      Numerator		      "[0.04658290663644  0.18633162654577 0.279497439"
"81866  0.18633162654577 0.04658290663644]"
      Denominator	      "[1.00000000000000 -0.78209519802334 0.679978526"
"91630 -0.18267569775303 0.03011887504317]"
      SampleTime	      "-1"
      Port {
	PortNumber		1
	Name			"Benchmark"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Gateway Out"
      Ports		      [1, 1]
      Position		      [190, 61, 235, 99]
      SourceBlock	      "fixpt_lib_4/Data Type/Gateway Out"
      SourceType	      "Fixed-Point Gateway Out"
      OutRealWorld	      "Real World Value"
      OutBuiltInType	      "double"
      RndMeth		      "Floor"
      DoSatur		      off
      Port {
	PortNumber		1
	Name			"Unfiltered Input"
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [3, 1]
      Position		      [1040, 116, 1050, 184]
      ShowName		      off
      Inputs		      "3"
      DisplayOption	      "bar"
      Port {
	PortNumber		1
	Name			"Filtered Outputs"
	PropagatedSignals	"Benchmark, , "
	TestPoint		off
	LinearAnalysisOutput	off
	LinearAnalysisInput	off
	RTWStorageClass		"Auto"
	DataLogging		off
	DataLoggingNameMode	"SignalName"
	DataLoggingDecimateData	off
	DataLoggingDecimation	"2"
	DataLoggingLimitDataPoints off
	DataLoggingMaxPoints	"5000"
      }
    }
    Line {
      SrcBlock		      "Fixed Point\nTestSignal"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"Gateway Out"
	DstPort			1
      }
      Branch {
	Points			[0, 170]
	Branch {
	  DstBlock		  "FixPt Direct Form II Filter"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 110; 300, 0]
	  DstBlock		  "FixPt Direct Form I Filter"
	  DstPort		  1
	}
      }
    }
    Line {
      Name		      "Filtered Outputs"
      Labels		      [0, 0]
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "Comparison 1"
      DstPort		      2
    }
    Line {
      Name		      "Benchmark"
      Labels		      [0, 0]
      SrcBlock		      "Floating Point DiscreteTransfer Fcn"
      SrcPort		      1
      DstBlock		      "Mux"
      DstPort		      1
    }
    Line {
      Name		      "Unfiltered Input"
      FontName		      "MS Sans Serif"
      Labels		      [0, 0]
      SrcBlock		      "Gateway Out"
      SrcPort		      1
      Points		      [80, 0]
      Branch {
	Points			[0, 50]
	DstBlock		"Floating Point DiscreteTransfer Fcn"
	DstPort			1
      }
      Branch {
	Points			[805, 0]
	DstBlock		"Comparison 1"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "FixPt Direct Form II Filter"
      SrcPort		      1
      DstBlock		      "FixPt to Dbl1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "FixPt Direct Form I Filter"
      SrcPort		      1
      Points		      [0, -5]
      DstBlock		      "FixPt to Dbl2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "FixPt to Dbl1"
      SrcPort		      1
      Points		      [45, 0; 0, -100]
      DstBlock		      "Mux"
      DstPort		      2
    }
    Line {
      SrcBlock		      "FixPt to Dbl2"
      SrcPort		      1
      Points		      [50, 0]
      DstBlock		      "Mux"
      DstPort		      3
    }
    Annotation {
      Name		      "Benchmark Implementation using floating point d"
"oubles"
      Position		      [636, 190]
      FontName		      "Arial"
      FontSize		      18
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Fixed Point Direct Form II Implementation"
      Position		      [601, 305]
      FontName		      "Arial"
      FontSize		      18
      FontWeight	      "bold"
    }
    Annotation {
      Name		      "Fixed Point Direct Form I Implementation"
      Position		      [636, 430]
      FontName		      "Arial"
      FontSize		      18
      FontWeight	      "bold"
    }
  }
}

⌨️ 快捷键说明

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