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

📄 fir3.mdl

📁 用DSP BUILDER设计的3阶和四阶滤波器
💻 MDL
📖 第 1 页 / 共 2 页
字号:
      SampleTime	      "inf"
    }
    Block {
      BlockType		      Gain
      Gain		      "1"
      Multiplication	      "Element-wise(K.*u)"
      ParameterDataTypeMode   "Same as input"
      ParameterDataType	      "sfix(16)"
      ParameterScalingMode    "Best Precision: Matrix-wise"
      ParameterScaling	      "2^0"
      OutDataTypeMode	      "Same as input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      Product
      Inputs		      "2"
      Multiplication	      "Element-wise(.*)"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Scope
      Floating		      off
      ModelBased	      off
      TickLabels	      "OneTimeTick"
      ZoomMode		      "on"
      Grid		      "on"
      TimeRange		      "auto"
      YMin		      "-5"
      YMax		      "5"
      SaveToWorkspace	      off
      SaveName		      "ScopeData"
      LimitDataPoints	      on
      MaxDataPoints	      "5000"
      Decimation	      "1"
      SampleInput	      off
      SampleTime	      "0"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      on
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      InputSameDT	      on
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Trigonometry
      Operator		      "sin"
      OutputSignalType	      "auto"
      SampleTime	      "-1"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Helvetica"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  LineDefaults {
    FontName		    "Helvetica"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "fir3"
    Location		    [-32, 184, 980, 823]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "Chirp Signal"
      Ports		      [0, 1]
      Position		      [30, 145, 60, 175]
      SourceBlock	      "simulink/Sources/Chirp Signal"
      SourceType	      "chirp"
      ShowPortLabels	      on
      f1		      "0.1"
      T			      "10"
      f2		      "1"
      VectorParams1D	      on
      Port {
	PortNumber		1
	Name			"1"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Delay"
      Ports		      [1, 1]
      Position		      [250, 205, 295, 255]
      ForegroundColor	      "blue"
      SourceBlock	      "store_alteradspbuilder/Delay"
      SourceType	      "Delay AlteraBlockSet"
      depth		      "1"
      clken		      off
      MaskValue		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Delay1"
      Ports		      [1, 1]
      Position		      [250, 300, 295, 350]
      ForegroundColor	      "blue"
      SourceBlock	      "store_alteradspbuilder/Delay"
      SourceType	      "Delay AlteraBlockSet"
      depth		      "1"
      clken		      off
      MaskValue		      "1"
    }
    Block {
      BlockType		      Reference
      Name		      "Delay2"
      Ports		      [1, 1]
      Position		      [250, 410, 295, 460]
      ForegroundColor	      "blue"
      SourceBlock	      "store_alteradspbuilder/Delay"
      SourceType	      "Delay AlteraBlockSet"
      depth		      "1"
      clken		      off
      MaskValue		      "1"
    }
    Block {
      BlockType		      Gain
      Name		      "Gain"
      Position		      [375, 145, 405, 175]
      Gain		      "66"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain1"
      Position		      [370, 215, 400, 245]
      Gain		      "166"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain2"
      Position		      [375, 310, 405, 340]
      Gain		      "166"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Gain
      Name		      "Gain3"
      Position		      [365, 420, 395, 450]
      Gain		      "66"
      ParameterDataTypeMode   "Inherit via internal rule"
      OutDataTypeMode	      "Inherit via internal rule"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Reference
      Name		      "Output"
      Description	      "Sign Binary Fractionnal"
      Ports		      [1, 1]
      Position		      [630, 287, 695, 303]
      ForegroundColor	      "blue"
      SourceBlock	      "bus_alteradspbuilder/Output"
      SourceType	      "AltBus AlteraBlockSet"
      sgn		      "Signed Integer"
      nodetype		      "Output Port"
      bwl		      "8"
      bwr		      "0"
      sat		      off
      rnd		      off
      bp		      off
      mask_cst		      "0"
      LocPin		      "any"
      cst		      "0"
      modulename	      "Output"
      nSgCpl		      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Parallel \nAdder Subtractor"
      Ports		      [4, 1]
      Position		      [505, 257, 540, 333]
      ForegroundColor	      "blue"
      SourceBlock	      "arithm_alteradspbuilder/Parallel \nAdder Subtra"
"ctor"
      SourceType	      "Sum AlteraBlockSet"
      Inputs		      "4"
      direction		      "++++"
      pipeline		      on
      clken		      off
      MaskValue		      "1"
    }
    Block {
      BlockType		      Scope
      Name		      "Scope"
      Ports		      [2]
      Position		      [740, 91, 770, 124]
      Location		      [312, 381, 885, 687]
      Open		      on
      NumInputPorts	      "2"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      YMin		      "-5~-5"
      YMax		      "5~5"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Reference
      Name		      "SignalCompiler"
      Ports		      []
      Position		      [14, 18, 83, 65]
      ForegroundColor	      "blue"
      SourceBlock	      "Altelink/AltLab/SignalCompiler"
      SourceType	      "SignalCompiler"
      family		      "Stratix"
      opt		      "Balanced"
      synthtool		      "Others"
      vstim		      on
      SynthAct		      "None"
      workdir		      "g:\\MATLAB701\\work"
      Procetype		      "prod"
      UseReset		      on
      ResetPin		      "Active High"
      ClockPin		      "Output to Pin"
      ClockPeriod	      "20"
      UseSignalTap	      off
      CreatePtfFile	      off
      SignalTapDepth	      "128"
      VerilogSupport	      off
      UniqueVHDLHierarchyName off
      RegenerateIPFunctionalModel off
      RunUpdatedSimulation    off
      JTAGCable		      "USB-Blaster [USB-0]"
      dspb_ver		      "5.1"
    }
    Block {
      BlockType		      Reference
      Name		      "xin"
      Description	      "Sign Binary Fractionnal"
      Ports		      [1, 1]
      Position		      [100, 152, 165, 168]
      ForegroundColor	      "blue"
      SourceBlock	      "bus_alteradspbuilder/Input"
      SourceType	      "AltBus AlteraBlockSet"
      sgn		      "Signed Integer"
      nodetype		      "Input Port"
      bwl		      "8"
      bwr		      "0"
      sat		      off
      rnd		      off
      bp		      off
      mask_cst		      "0"
      LocPin		      "any"
      cst		      "0"
      modulename	      "xin"
      ppat		      "g:\\MATLAB701\\work\\DSPBuilder_fir3"
      nSgCpl		      "1"
    }
    Line {
      SrcBlock		      "xin"
      SrcPort		      1
      Points		      [20, 0]
      Branch {
	Points			[0, 70]
	Branch {
	  DstBlock		  "Delay"
	  DstPort		  1
	}
	Branch {
	  Points		  [0, 95]
	  Branch {
	    Points		    [0, 0]
	    DstBlock		    "Delay1"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 110]
	    DstBlock		    "Delay2"
	    DstPort		    1
	  }
	}
      }
      Branch {
	DstBlock		"Gain"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Delay"
      SrcPort		      1
      DstBlock		      "Gain1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Delay2"
      SrcPort		      1
      DstBlock		      "Gain3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Delay1"
      SrcPort		      1
      DstBlock		      "Gain2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain"
      SrcPort		      1
      Points		      [50, 0; 0, 105]
      DstBlock		      "Parallel \nAdder Subtractor"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gain1"
      SrcPort		      1
      Points		      [45, 0; 0, 55]
      DstBlock		      "Parallel \nAdder Subtractor"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gain2"
      SrcPort		      1
      Points		      [45, 0; 0, -20]
      DstBlock		      "Parallel \nAdder Subtractor"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Gain3"
      SrcPort		      1
      Points		      [70, 0; 0, -110]
      DstBlock		      "Parallel \nAdder Subtractor"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Parallel \nAdder Subtractor"
      SrcPort		      1
      DstBlock		      "Output"
      DstPort		      1
    }
    Line {
      Name		      "1"
      Labels		      [0, 0]
      SrcBlock		      "Chirp Signal"
      SrcPort		      1
      Points		      [15, 0]
      Branch {
	DstBlock		"xin"
	DstPort			1
      }
      Branch {
	Labels			[2, 0]
	Points			[0, -45]
	DstBlock		"Scope"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "Output"
      SrcPort		      1
      Points		      [25, 0]
      DstBlock		      "Scope"
      DstPort		      1
    }
  }
}

⌨️ 快捷键说明

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