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

📄 stage3_3175133_zhang.mdl

📁 用MATLAB里的XILINX BLOCKS, 支持FPGA算法, 实现X_NEXT = ((n-1)x+ A/x(n-1)次)/n
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	DialogParameters {
	  sg_blockgui_xml	  "<!--   *  Copyright (c) 2005, Xilinx, Inc. "
" All Rights Reserved.           --><!--   *  Reproduction or reuse, in any fo"
"rm, without the explicit written --><!--   *  consent of Xilinx, Inc., is str"
"ictly prohibited.                 --><sysgenblock block_type=\"constant\" sim"
"ulinkname=\"Constant\" >\n <initialization file=\"xlconstant_init.m\" />\n <i"
"con width=\"55\" bg_color=\"blue\" height=\"26\" wmark_color=\"white\" />\n <"
"dll entry_point=\"Constant_config\" name=\"Sysgen\" />\n <handlers action=\"c"
"onstantaction\" enablement=\"constantenablement\" />\n <libraries>\n  <librar"
"y name=\"xbsIndex\" />\n  <library name=\"xbsBasic\" />\n  <library name=\"xb"
"sControl\" />\n  <library name=\"xbsMath\" />\n </libraries>\n <blockgui labe"
"l=\"Xilinx Constant Block\" >\n  <tabpane>\n   <tab name=\"basictab\" label="
"\"Basic\" >\n    <radiogroup ctype=\"Int\" evaluate=\"true\" name=\"arith_typ"
"e\" label=\"Type\" default=\"Signed (2's comp)\" >\n     <item value=\"Boolea"
"n\" label=\"Boolean\" />\n     <item value=\"Signed (2's comp)\" label=\"Sign"
"ed (2's comp)\" />\n     <item value=\"Unsigned\" label=\"Unsigned\" />\n    "
" <item value=\"DSP48 Instruction\" label=\"DSP48 instruction\" />\n    </radi"
"ogroup>\n    <etch name=\"constantetch\" label=\"Constant\" >\n     <editbox "
"ctype=\"Double\" evaluate=\"true\" name=\"const\" label=\"Constant value\" de"
"fault=\"1\" />\n     <editbox ctype=\"Int\" evaluate=\"true\" name=\"n_bits\""
" label=\"Number of bits\" default=\"16\" />\n     <editbox ctype=\"Int\" eval"
"uate=\"true\" name=\"bin_pt\" label=\"Binary point\" default=\"14\" />\n    <"
"/etch>\n    <etch name=\"periodetch\" label=\"Sample Period\" >\n     <checkb"
"ox ctype=\"Int\" evaluate=\"true\" name=\"explicit_period\" label=\"Sampled c"
"onstant\" default=\"off\" />\n     <editbox ctype=\"Double\" evaluate=\"true"
"\" name=\"period\" label=\"Sample period\" default=\"1\" />\n    </etch>\n   "
"</tab>\n   <tab name=\"dsp48tab\" label=\"DSP48\" >\n    <etch name=\"dsp48et"
"ch\" label=\"DSP48 Instruction\" >\n     <editbox evaluate=\"false\" multi_li"
"ne=\"true\" name=\"dsp48_infoedit\" read_only=\"true\" default=\"The use of t"
"his block for DSP48 instructions is deprecated.  Please use the Opmode block."
"\" />\n     <editbox evaluate=\"false\" name=\"equ\" label=\"DSP48 operation"
"\" read_only=\"true\" default=\"P=C\" />\n     <listbox ctype=\"Int\" evaluat"
"e=\"true\" name=\"opselect\" label=\"Operation select\" default=\"C\" >\n    "
"  <item value=\"C + A*B\" />\n      <item value=\"PCIN + A*B\" />\n      <ite"
"m value=\"P + A*B\" />\n      <item value=\"A * B\" />\n      <item value=\"C"
" + A:B\" />\n      <item value=\"C - A:B\" />\n      <item value=\"C\" />\n  "
"    <item value=\"Custom\" />\n     </listbox>\n     <etch name=\"instruction"
"etch\" label=\"Custom Instruction\" >\n      <listbox ctype=\"Int\" evaluate="
"\"true\" name=\"inp2\" label=\"Z mux\" default=\"PCIN>>17\" >\n       <item v"
"alue=\"0\" />\n       <item value=\"PCIN\" />\n       <item value=\"P\" />\n "
"      <item value=\"C\" />\n       <item value=\"PCIN>>17\" />\n       <item "
"value=\"P>>17\" />\n      </listbox>\n      <radiogroup ctype=\"Int\" evaluat"
"e=\"true\" name=\"opr\" label=\"Operand\" default=\"+\" >\n       <item value"
"=\"+\" />\n       <item value=\"-\" />\n      </radiogroup>\n      <listbox c"
"type=\"Int\" evaluate=\"true\" name=\"inp1\" label=\"YX muxes\" default=\"P\""
" >\n       <item value=\"0\" />\n       <item value=\"P\" />\n       <item va"
"lue=\"A:B\" />\n       <item value=\"A*B\" />\n       <item value=\"C\" />\n "
"      <item value=\"P+C\" />\n       <item value=\"A:B+C\" />\n      </listbo"
"x>\n      <listbox ctype=\"Int\" evaluate=\"true\" name=\"carry\" label=\"Car"
"ry input\" default=\"CIN\" >\n       <item value=\"0\" />\n       <item value"
"=\"1\" />\n       <item value=\"CIN\" />\n       <item value=\"~SIGN(P or PCI"
"N)\" />\n       <item value=\"~SIGN(A*B or A:B)\" />\n       <item value=\"~S"
"IGND(A*B or A:B)\" />\n      </listbox>\n     </etch>\n    </etch>\n   </tab>"
"\n   <tab name=\"advtab\" label=\"Advanced\" >\n    <etch label=\"Simulation"
"\" >\n     <checkbox ctype=\"Int\" evaluate=\"true\" name=\"dbl_ovrd\" label="
"\"Override with doubles\" default=\"off\" />\n    </etch>\n   </tab>\n  </tab"
"pane>\n </blockgui>\n</sysgenblock>\n"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 20 20 0 ],[0 0 20 20 ],[0.77 0.82 0.91]);\npatch([4 1 6 1 4 9 10 1"
"1 17 13 9 6 11 6 9 13 17 11 10 9 4 ],[2 5 10 15 18 18 17 18 18 14 18 15 10 5 "
"2 6 2 2 3 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 20 20 0 ],[0 20 20 0 0 ]);\nfpr"
"intf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin icon text'"
");\ncolor('black');port_label('output',1,'5');\nfprintf('','COMMENT: end icon"
" text');\n"
	}
      }
      SourceBlock	      "Stage3_Library/Divide"
      SourceType	      "SubSystem"
      ShowPortLabels	      on
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Port {
	PortNumber		1
	Name			"t3"
	PropagatedSignals	"Q"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		3
	Name			"t3_vaild"
	PropagatedSignals	"valid"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Divide2"
      Ports		      [3, 3]
      Position		      [1030, 174, 1095, 336]
      NamePlacement	      "alternate"
      LinkData {
	BlockName		"D1"
	DialogParameters {
	  sg_blockgui_xml	  "<!--   *  Copyright (c) 2005, Xilinx, Inc. "
" All Rights Reserved.           --><!--   *  Reproduction or reuse, in any fo"
"rm, without the explicit written --><!--   *  consent of Xilinx, Inc., is str"
"ictly prohibited.                 --><sysgenblock block_type=\"constant\" sim"
"ulinkname=\"Constant\" >\n <initialization file=\"xlconstant_init.m\" />\n <i"
"con width=\"55\" bg_color=\"blue\" height=\"26\" wmark_color=\"white\" />\n <"
"dll entry_point=\"Constant_config\" name=\"Sysgen\" />\n <handlers action=\"c"
"onstantaction\" enablement=\"constantenablement\" />\n <libraries>\n  <librar"
"y name=\"xbsIndex\" />\n  <library name=\"xbsBasic\" />\n  <library name=\"xb"
"sControl\" />\n  <library name=\"xbsMath\" />\n </libraries>\n <blockgui labe"
"l=\"Xilinx Constant Block\" >\n  <tabpane>\n   <tab name=\"basictab\" label="
"\"Basic\" >\n    <radiogroup ctype=\"Int\" evaluate=\"true\" name=\"arith_typ"
"e\" label=\"Type\" default=\"Signed (2's comp)\" >\n     <item value=\"Boolea"
"n\" label=\"Boolean\" />\n     <item value=\"Signed (2's comp)\" label=\"Sign"
"ed (2's comp)\" />\n     <item value=\"Unsigned\" label=\"Unsigned\" />\n    "
" <item value=\"DSP48 Instruction\" label=\"DSP48 instruction\" />\n    </radi"
"ogroup>\n    <etch name=\"constantetch\" label=\"Constant\" >\n     <editbox "
"ctype=\"Double\" evaluate=\"true\" name=\"const\" label=\"Constant value\" de"
"fault=\"1\" />\n     <editbox ctype=\"Int\" evaluate=\"true\" name=\"n_bits\""
" label=\"Number of bits\" default=\"16\" />\n     <editbox ctype=\"Int\" eval"
"uate=\"true\" name=\"bin_pt\" label=\"Binary point\" default=\"14\" />\n    <"
"/etch>\n    <etch name=\"periodetch\" label=\"Sample Period\" >\n     <checkb"
"ox ctype=\"Int\" evaluate=\"true\" name=\"explicit_period\" label=\"Sampled c"
"onstant\" default=\"off\" />\n     <editbox ctype=\"Double\" evaluate=\"true"
"\" name=\"period\" label=\"Sample period\" default=\"1\" />\n    </etch>\n   "
"</tab>\n   <tab name=\"dsp48tab\" label=\"DSP48\" >\n    <etch name=\"dsp48et"
"ch\" label=\"DSP48 Instruction\" >\n     <editbox evaluate=\"false\" multi_li"
"ne=\"true\" name=\"dsp48_infoedit\" read_only=\"true\" default=\"The use of t"
"his block for DSP48 instructions is deprecated.  Please use the Opmode block."
"\" />\n     <editbox evaluate=\"false\" name=\"equ\" label=\"DSP48 operation"
"\" read_only=\"true\" default=\"P=C\" />\n     <listbox ctype=\"Int\" evaluat"
"e=\"true\" name=\"opselect\" label=\"Operation select\" default=\"C\" >\n    "
"  <item value=\"C + A*B\" />\n      <item value=\"PCIN + A*B\" />\n      <ite"
"m value=\"P + A*B\" />\n      <item value=\"A * B\" />\n      <item value=\"C"
" + A:B\" />\n      <item value=\"C - A:B\" />\n      <item value=\"C\" />\n  "
"    <item value=\"Custom\" />\n     </listbox>\n     <etch name=\"instruction"
"etch\" label=\"Custom Instruction\" >\n      <listbox ctype=\"Int\" evaluate="
"\"true\" name=\"inp2\" label=\"Z mux\" default=\"PCIN>>17\" >\n       <item v"
"alue=\"0\" />\n       <item value=\"PCIN\" />\n       <item value=\"P\" />\n "
"      <item value=\"C\" />\n       <item value=\"PCIN>>17\" />\n       <item "
"value=\"P>>17\" />\n      </listbox>\n      <radiogroup ctype=\"Int\" evaluat"
"e=\"true\" name=\"opr\" label=\"Operand\" default=\"+\" >\n       <item value"
"=\"+\" />\n       <item value=\"-\" />\n      </radiogroup>\n      <listbox c"
"type=\"Int\" evaluate=\"true\" name=\"inp1\" label=\"YX muxes\" default=\"P\""
" >\n       <item value=\"0\" />\n       <item value=\"P\" />\n       <item va"
"lue=\"A:B\" />\n       <item value=\"A*B\" />\n       <item value=\"C\" />\n "
"      <item value=\"P+C\" />\n       <item value=\"A:B+C\" />\n      </listbo"
"x>\n      <listbox ctype=\"Int\" evaluate=\"true\" name=\"carry\" label=\"Car"
"ry input\" default=\"CIN\" >\n       <item value=\"0\" />\n       <item value"
"=\"1\" />\n       <item value=\"CIN\" />\n       <item value=\"~SIGN(P or PCI"
"N)\" />\n       <item value=\"~SIGN(A*B or A:B)\" />\n       <item value=\"~S"
"IGND(A*B or A:B)\" />\n      </listbox>\n     </etch>\n    </etch>\n   </tab>"
"\n   <tab name=\"advtab\" label=\"Advanced\" >\n    <etch label=\"Simulation"
"\" >\n     <checkbox ctype=\"Int\" evaluate=\"true\" name=\"dbl_ovrd\" label="
"\"Override with doubles\" default=\"off\" />\n    </etch>\n   </tab>\n  </tab"
"pane>\n </blockgui>\n</sysgenblock>\n"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 20 20 0 ],[0 0 20 20 ],[0.77 0.82 0.91]);\npatch([4 1 6 1 4 9 10 1"
"1 17 13 9 6 11 6 9 13 17 11 10 9 4 ],[2 5 10 15 18 18 17 18 18 14 18 15 10 5 "
"2 6 2 2 3 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 20 20 0 ],[0 20 20 0 0 ]);\nfpr"
"intf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin icon text'"
");\ncolor('black');port_label('output',1,'5');\nfprintf('','COMMENT: end icon"
" text');\n"
	}
      }
      SourceBlock	      "Stage3_Library/Divide"
      SourceType	      "SubSystem"
      ShowPortLabels	      on
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      Port {
	PortNumber		1
	Name			"x_next"
	PropagatedSignals	"Q"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
      Port {
	PortNumber		3
	Name			"x_next_vaild"
	PropagatedSignals	"valid"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Expression"
      Ports		      [2, 1]
      Position		      [1490, 171, 1545, 224]
      SourceBlock	      "xbsIndex_r4/Expression"
      SourceType	      "Xilinx Bitwise Expression Evaluator Block"
      expression	      "a&(~b)"
      align_bp		      on
      en		      off
      latency		      "0"
      precision		      "Full"
      arith_type	      "Unsigned"
      n_bits		      "16"
      bin_pt		      "0"
      dbl_ovrd		      off
      xl_use_area	      off
      xl_area		      "[0,0,0,0,0,0,0]"
      has_advanced_control    "0"
      sggui_pos		      "-1,-1,-1,-1"
      block_type	      "expr"
      block_version	      "8.2.02"
      sg_icon_stat	      "55,53,2,1,white,blue,0,17f16c59"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics');\npa"
"tch([0 55 55 0 ],[0 0 53 53 ],[0.77 0.82 0.91]);\npatch([14 5 17 5 14 28 32 3"
"6 51 39 28 20 32 20 28 39 51 36 32 28 14 ],[6 15 27 39 48 48 44 48 48 36 47 3"
"9 27 15 7 18 6 6 10 6 6 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 53 53 0 "
"0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin "
"icon text');\ncolor('black');port_label('input',1,'a');\ncolor('black');port_"
"label('input',2,'b');\ncolor('black');disp('a&(~b)');\nfprintf('','COMMENT: e"
"nd icon text');\n"
    }
    Block {
      BlockType		      Reference
      Name		      "Expression2"
      Ports		      [2, 1]
      Position		      [425, 506, 465, 544]
      SourceBlock	      "xbsIndex_r4/Expression"
      SourceType	      "Xilinx Bitwise Expression Evaluator Block"
      expression	      "a | b"
      align_bp		      on
      en		      off
      latency		      "0"
      precision		      "Full"
      arith_type	      "Unsigned"
      n_bits		      "16"
      bin_pt		      "0"
      dbl_ovrd		      off
      xl_use_area	      off
      xl_area		      "[0,0,0,0,0,0,0]"
      has_advanced_control    "0"
      sggui_pos		      "-1,-1,-1,-1"
      block_type	      "expr"
      block_version	      "8.2.02"
      sg_icon_stat	      "40,38,2,1,white,blue,0,f4589e14"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics');\npa"
"tch([0 40 40 0 ],[0 0 38 38 ],[0.77 0.82 0.91]);\npatch([10 4 13 4 10 20 23 2"
"6 37 29 21 15 24 15 21 29 37 26 23 20 10 ],[4 10 19 28 34 34 31 34 34 26 34 2"
"8 19 10 4 12 4 4 7 4 4 ],[0.98 0.96 0.92]);\nplot([0 0 40 40 0 ],[0 38 38 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin i"
"con text');\ncolor('black');port_label('input',1,'a');\ncolor('black');port_l"
"abel('input',2,'b');\ncolor('black');disp('a | b');\nfprintf('','COMMENT: end"
" icon text');\n"
      Port {
	PortNumber		1
	Name			"x_en"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
      }
    }
    Block {
      BlockType		      FromWorkspace
      Name		      "From\nWorkspace1"
      Position		      [15, 143, 70, 167]
      VariableName	      "A"
      SampleTime	      "Ts"
      Interpolate	      off
      OutputAfterFinalValue   "Holding final value"
    }
    Block {
      BlockType		      FromWorkspace
      Name		      "From\nWorkspace2"
      Position		      [15, 493, 70, 517]
      VariableName	      "start"
      SampleTime	      "Ts"
      Interpolate	      off
      OutputAfterFinalValue   "Holding final value"
    }
    Block {
      BlockType		      FromWorkspace
      Name		      "From\nWorkspace3"
      Position		      [20, 288, 75, 312]
      VariableName	      "n"
      SampleTime	      "Ts"
      Interpolate	      off
      OutputAfterFinalValue   "Holding final value"
    }
    Block {
      BlockType		      Reference
      Name		      "Mult"
      Ports		      [3, 1]
      Position		      [740, 151, 795, 239]
      NamePlacement	      "alternate"
      SourceBlock	      "xbsIndex_r4/Mult"
      SourceType	      "Xilinx Multiplier Block"
      infoedit		      "Hardware notes: To use the internal pipeline st"
"age of the dedicated multiplier you must select 'Pipeline for maximum perform"
"ance'."
      precision		      "User Defined"
      arith_type	      "Unsigned"
      n_bits		      "W"
      bin_pt		      "0"
      quantization	      "Truncate"
      overflow		      "Wrap"
      en		      on
      latency		      "1"
      dbl_ovrd		      off
      use_behavioral_HDL      off
      use_embedded	      on
      opt		      "Speed"
      optimum_pipeline	      off
      use_rpm		      on
      placement_style	      "Rectangular shape"
      xl_use_area	      off
      xl_area		      "[0,0,0,0,0,0,0]"
      pipeline		      "on"
      has_advanced_control    "0"
      sggui_pos		      "379,158,430,462"
      block_type	      "mult"
      block_version	      "8.2.02"
      sg_icon_stat	      "55,88,3,1,white,blue,0,7ebba33d"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics');\npa"
"tch([0 55 55 0 ],[0 0 88 88 ],[0.77 0.82 0.91]);\npatch([13 4 17 4 13 28 32 3"
"6 52 40 28 19 32 19 28 40 52 36 32 28 13 ],[22 31 44 57 66 66 62 66 66 54 66 "
"57 44 31 22 34 22 22 26 22 22 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 88"

⌨️ 快捷键说明

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