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

📄 frac_resampler_dn_v2.mdl

📁 matlab通过SG仿真重采样的代码,适合于192结的重采样点
💻 MDL
📖 第 1 页 / 共 5 页
字号:
"ording to Block Masks\" label=\"Generate cores\" >\n   <item value=\"Accordin"
"g to Block Masks\" />\n   <item value=\"Everywhere Available\" />\n   <item v"
"alue=\"Not Needed - Already Generated\" />\n  </listbox>\n  <checkbox evaluat"
"e=\"true\" name=\"run_coregen\" default=\"off\" label=\"Run CoreGen\" />\n  <"
"checkbox evaluate=\"true\" name=\"deprecated_control\" default=\"off\" label="
"\"Show deprecated controls\" />\n  <hiddenvar evaluate=\"true\" name=\"eval_f"
"ield\" default=\"0\" />\n </blockgui>\n</sysgenblock>\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Constant5"
	  Ports			  [0, 1]
	  Position		  [675, 399, 720, 421]
	  SourceBlock		  "xbsIndex_r4/Constant"
	  SourceType		  "Xilinx Constant Block Block"
	  arith_type		  "Unsigned"
	  const			  "(2^(num_bits-bin_pt))-1"
	  n_bits		  "num_bits-bin_pt"
	  bin_pt		  "0"
	  explicit_period	  off
	  period		  "1"
	  dsp48_infoedit	  "The use of this block for DSP48 instruction"
"s is deprecated.  Please use the Opmode block."
	  equ			  "P=C"
	  opselect		  "C"
	  inp2			  "PCIN>>17"
	  opr			  "+"
	  inp1			  "P"
	  carry			  "CIN"
	  dbl_ovrd		  off
	  has_advanced_control	  "0"
	  sggui_pos		  "-1,-1,-1,-1"
	  block_type		  "constant"
	  block_version		  "VER_STRING_GOES_HERE"
	  sg_icon_stat		  "45,22,0,1,white,blue,0,153fad44"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 55 55 0 ],[0 0 26 26 ],[0.77 0.82 0.91]);\npatch([20 16 22 16 20 2"
"7 29 31 38 32 26 22 28 22 26 32 38 31 29 27 20 ],[3 7 13 19 23 23 21 23 23 17"
" 23 19 13 7 3 9 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 26 26 "
"0 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begi"
"n icon text');\ncolor('black');port_label('output',1,'31');\nfprintf('','COMM"
"ENT: end icon text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Expression"
	  Ports			  [3, 1]
	  Position		  [760, 465, 810, 515]
	  SourceBlock		  "xbsIndex_r4/Expression"
	  SourceType		  "Xilinx Bitwise Expression Evaluator Block"
	  expression		  "a ^ b"
	  align_bp		  on
	  en			  on
	  latency		  "1"
	  precision		  "Full"
	  arith_type		  "Unsigned"
	  n_bits		  "8"
	  bin_pt		  "2"
	  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		  "VER_STRING_GOES_HERE"
	  sg_icon_stat		  "50,50,3,1,white,blue,0,e9a73637"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics ')"
";\npatch([0 50 50 0 ],[0 0 50 50 ],[0.77 0.82 0.91]);\npatch([11 3 15 3 11 24"
" 28 32 46 35 24 16 28 16 24 35 46 32 28 24 11 ],[5 13 25 37 45 45 41 45 45 34"
" 45 37 25 13 5 16 5 5 9 5 5 ],[0.98 0.96 0.92]);\nplot([0 0 50 50 0 ],[0 50 5"
"0 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: "
"begin icon text ');\ncolor('black');port_label('input',1,'a');\ncolor('black'"
");port_label('input',2,'b');\ncolor('black');port_label('input',3,'en');\ncol"
"or('black');disp('a ^ b');\nfprintf('','COMMENT: end icon text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "L_value"
	  Ports			  [1, 1]
	  Position		  [185, 464, 240, 486]
	  SourceBlock		  "xbsIndex_r4/Gateway In"
	  SourceType		  "Xilinx Gateway In Block"
	  infoedit		  "Gateway in block.  Converts inputs of type "
"Simulink integer, double and fixed point to  Xilinx fixed point type.<P><P>Ha"
"rdware notes:  In hardware these blocks become top level input ports."
	  arith_type		  "Unsigned"
	  n_bits		  "num_bits"
	  bin_pt		  "bin_pt-1"
	  quantization		  "Round  (unbiased: +/- Inf)"
	  overflow		  "Saturate"
	  period		  "1"
	  dbl_ovrd		  off
	  timing_constraint	  "None"
	  locs_specified	  off
	  LOCs			  "{}"
	  xl_use_area		  off
	  xl_area		  "[0, 0, 0, 0, 0, 0, 0]"
	  has_advanced_control	  "0"
	  sggui_pos		  "20,20,356,423"
	  block_type		  "gatewayin"
	  block_version		  "VER_STRING_GOES_HERE"
	  sg_icon_stat		  "55,22,1,1,white,yellow,0,4bb76ffd"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 65 65 0 ],[0 0 20 20 ],[0.95 0.93 0.65]);\npatch([27 24 29 24 27 3"
"2 33 34 40 36 32 29 34 29 32 36 40 34 33 32 27 ],[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 65 65 0 ],[0 20 20 "
"0 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begi"
"n icon text');\ncolor('black');port_label('input',1,'\\fontsize{11pt}\\bf In "
"','texmode','on');\ncolor('black');port_label('output',1,' ');\nfprintf('','C"
"OMMENT: end icon text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Register1"
	  Ports			  [2, 1]
	  Position		  [765, 553, 810, 602]
	  SourceBlock		  "xbsIndex_r4/Register"
	  SourceType		  "Xilinx Register Block"
	  init			  "0"
	  rst			  off
	  en			  on
	  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		  "register"
	  block_version		  "VER_STRING_GOES_HERE"
	  sg_icon_stat		  "45,49,2,1,white,blue,0,cc3303a0"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics ')"
";\npatch([0 45 45 0 ],[0 0 49 49 ],[0.77 0.82 0.91]);\npatch([10 3 14 3 10 22"
" 25 28 41 31 21 14 25 14 21 31 41 28 25 22 10 ],[7 14 25 36 43 43 40 43 43 33"
" 43 36 25 14 7 17 7 7 10 7 7 ],[0.98 0.96 0.92]);\nplot([0 0 45 45 0 ],[0 49 "
"49 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT:"
" begin icon text ');\ncolor('black');port_label('input',1,'d');\ncolor('black"
"');port_label('input',2,'en');\ncolor('black');port_label('output',1,'q');\nc"
"olor('black');disp('\\bf{z^{-1}}','texmode','on');\nfprintf('','COMMENT: end "
"icon text');\n"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "addr_gen"
	  Ports			  [3, 2]
	  Position		  [590, 448, 675, 602]
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskHideContents	  off
	  System {
	    Name		    "addr_gen"
	    Location		    [6, 82, 1274, 949]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "delta"
	      Position		      [180, 333, 210, 347]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "phase"
	      Position		      [180, 573, 210, 587]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "ce"
	      Position		      [180, 513, 210, 527]
	      Port		      "3"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "AddSub1"
	      Ports		      [3, 1]
	      Position		      [990, 307, 1040, 383]
	      SourceBlock	      "xbsIndex_r4/AddSub"
	      SourceType	      "Xilinx Adder/Subtractor Block"
	      mode		      "Addition"
	      use_carryin	      "off"
	      use_carryout	      "off"
	      en		      "on"
	      latency		      "1"
	      precision		      "User Defined"
	      arith_type	      "Unsigned"
	      n_bits		      "num_bits-bin_pt"
	      bin_pt		      "0"
	      quantization	      "Truncate"
	      overflow		      "Wrap"
	      dbl_ovrd		      "off"
	      use_behavioral_HDL      "on"
	      pipelined		      "off"
	      use_rpm		      "on"
	      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	      "addsub"
	      block_version	      "VER_STRING_GOES_HERE"
	      sg_icon_stat	      "50,76,3,1,white,blue,0,727db747"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s ');\npatch([0 50 50 0 ],[0 0 76 76 ],[0.77 0.82 0.91]);\npatch([11 3 15 3 1"
"1 24 28 32 46 35 24 16 28 16 24 35 46 32 28 24 11 ],[18 26 38 50 58 58 54 58 "
"58 47 58 50 38 26 18 29 18 18 22 18 18 ],[0.98 0.96 0.92]);\nplot([0 0 50 50 "
"0 ],[0 76 76 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf(''"
",'COMMENT: begin icon text ');\ncolor('black');port_label('input',1,'a');\nco"
"lor('black');port_label('input',2,'b');\ncolor('black');port_label('input',3,"
"'en');\ncolor('black');port_label('output',1,'\\bf{a + b}','texmode','on');\n"
"color('black');disp('\\newline\\bf{}\\newlinez^{-1}','texmode','on');\nfprint"
"f('','COMMENT: end icon text');\n"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "AddSub3"
	      Ports		      [2, 1]
	      Position		      [330, 285, 380, 360]
	      SourceBlock	      "xbsIndex_r4/AddSub"
	      SourceType	      "Xilinx Adder/Subtractor Block"
	      mode		      "Addition"
	      use_carryin	      "off"
	      use_carryout	      "off"
	      en		      "off"
	      latency		      "0"
	      precision		      "User Defined"
	      arith_type	      "Unsigned"
	      n_bits		      "num_bits+1"
	      bin_pt		      "bin_pt"
	      quantization	      "Round  (unbiased: +/- Inf)"
	      overflow		      "Wrap"
	      dbl_ovrd		      "off"
	      use_behavioral_HDL      "on"
	      pipelined		      "off"
	      use_rpm		      "on"
	      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	      "addsub"
	      block_version	      "VER_STRING_GOES_HERE"
	      sg_icon_stat	      "50,75,2,1,white,blue,0,84d1e665"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s ');\npatch([0 50 50 0 ],[0 0 75 75 ],[0.77 0.82 0.91]);\npatch([11 3 15 3 1"
"1 24 28 32 46 35 24 16 28 16 24 35 46 32 28 24 11 ],[18 26 38 50 58 58 54 58 "
"58 47 58 50 38 26 18 29 18 18 22 18 18 ],[0.98 0.96 0.92]);\nplot([0 0 50 50 "
"0 ],[0 75 75 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf(''"
",'COMMENT: begin icon text ');\ncolor('black');port_label('input',1,'a');\nco"
"lor('black');port_label('input',2,'b');\ncolor('black');port_label('output',1"
",'\\bf{a + b}','texmode','on');\nfprintf('','COMMENT: end icon text');\n"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Register"
	      Ports		      [2, 1]
	      Position		      [735, 293, 780, 342]
	      SourceBlock	      "xbsIndex_r4/Register"
	      SourceType	      "Xilinx Register Block"
	      init		      "0"
	      rst		      "off"
	      en		      "on"
	      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	      "register"
	      block_version	      "VER_STRING_GOES_HERE"
	      sg_icon_stat	      "45,49,2,1,white,blue,0,cc3303a0"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s ');\npatch([0 45 45 0 ],[0 0 49 49 ],[0.77 0.82 0.91]);\npatch([10 3 14 3 1"
"0 22 25 28 41 31 21 14 25 14 21 31 41 28 25 22 10 ],[7 14 25 36 43 43 40 43 4"
"3 33 43 36 25 14 7 17 7 7 10 7 7 ],[0.98 0.96 0.92]);\nplot([0 0 45 45 0 ],[0"
" 49 49 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMM"
"ENT: begin icon text ');\ncolor('black');port_label('input',1,'d');\ncolor('b"
"lack');port_label('input',2,'en');\ncolor('black');port_label('output',1,'q')"
";\ncolor('black');disp('\\bf{z^{-1}}','texmode','on');\nfprintf('','COMMENT: "
"end icon text');\n"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Register1"
	      Ports		      [2, 1]
	      Position		      [740, 408, 785, 457]
	      SourceBlock	      "xbsIndex_r4/Register"
	      SourceType	      "Xilinx Register Block"
	      init		      "0"
	      rst		      "off"
	      en		      "on"
	      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	      "register"
	      block_version	      "VER_STRING_GOES_HERE"
	      sg_icon_stat	      "45,49,2,1,white,blue,0,cc3303a0"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s ');\npatch([0 45 45 0 ],[0 0 49 49 ],[0.77 0.82 0.91]);\npatch([10 3 14 3 1"
"0 22 25 28 41 31 21 14 25 14 21 31 41 28 25 22 10 ],[7 14 25 36 43 43 40 43 4"
"3 33 43 36 25 14 7 17 7 7 10 7 7 ],[0.98 0.96 0.92]);\nplot([0 0 45 45 0 ],[0"
" 49 49 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMM"
"ENT: begin icon text ');\ncolor('black');port_label('input',1,'d');\ncolor('b"
"lack');port_label('input',2,'en');\ncolor('black');port_label('output',1,'q')"
";\ncolor('black');disp('\\bf{z^{-1}}','texmode','on');\nfprintf('','COMMENT: "
"end icon text');\n"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Register2"
	      Ports		      [2, 1]
	      Position		      [990, 423, 1035, 472]
	      SourceBlock	      "xbsIndex_r4/Register"
	      SourceType	      "Xilinx Register Block"
	      init		      "0"
	      rst		      "off"
	      en		      "on"
	      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	      "register"
	      block_version	      "VER_STRING_GOES_HERE"
	      sg_icon_stat	      "45,49,2,1,white,blue,0,cc3303a0"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s ');\npatch([0 45 45 0 ],[0 0 49 49 ],[0.77 0.82 0.91]);\npatch([10 3 14 3 1"
"0 22 25 28 41 31 21 14 25 14 21 31 41 28 25 22 10 ],[7 14 25 36 43 43 40 43 4"
"3 33 43 36 25 14 7 17 7 7 10 7 7 ],[0.98 0.96 0.92]);\nplot([0 0 45 45 0 ],[0"
" 49 49 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMM"
"ENT: begin icon text ');\ncolor('black');port_label('input',1,'d');\ncolor('b"
"lack');port_label('input',2,'en');\ncolor('black');port_label('output',1,'q')"
";\ncolor('black');disp('\\bf{z^{-1}}','texmode','on');\nfprintf('','COMMENT: "
"end icon text');\n"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Reinterpret"
	      Ports		      [1, 1]
	      Position		      [645, 289, 685, 321]
	      SourceBlock	      "xbsIndex_r4/Reinterpret"
	      SourceType	      "Xilinx Type Reinterpreter Block"
	      infoedit		      "Changes type of samples without alterin"
"g their binary representation.<P><P>Hardware notes: In hardware this block co"
"sts nothing.<P><P>Example:  Suppose the input is 6 bits wide, signed, with 2 "
"fractional bits, and the output is forced to unsigned with 0 fractional bits."
"  Then an input of -2.0 (1110.00 in binary 2's complement) becomes an output "
"of 56 (111000 in binary)."
	      force_arith_type	      "on"
	      arith_type	      "Unsigned"
	      force_bin_pt	      "on"
	      bin_pt		      "bin_pt"
	      has_advanced_control    "0"
	      sggui_pos		      "-1,-1,-1,-1"
	      block_type	      "cast"
	      block_version	      "VER_STRING_GOES_HERE"
	      sg_icon_stat	      "40,32,1,1,white,blue,0,8982c1db"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s');\npatch([0 50 50 0 ],[0 0 32 32 ],[0.77 0.82 0.91]);\npatch([16 11 18 11 "
"16 24 26 28 37 30 23 18 25 18 23 30 37 28 26 24 16 ],[3 8 15 22 27 27 25 27 2"
"7 20 27 22 15 8 3 10 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 50 50 0 ],[0 3"
"2 32 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT:"
" begin icon text');\ncolor('black');disp('reinterpret');\nfprintf('','COMMENT"
": end icon text');\n"

⌨️ 快捷键说明

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