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

📄 stage3_library.mdl

📁 用MATLAB里的XILINX BLOCKS编写, 做嵌入式用的2个BLOCKS, 一个为除法BLOCK, 另一个为乘方BLOCK.
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  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		  "8.2.02"
	  sg_icon_stat		  "20,20,0,1,white,blue,0,c7c04a0c"
	  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,'0');\nfprintf('','COMMENT: end icon"
" text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Delay1"
	  Ports			  [1, 1]
	  Position		  [100, 541, 140, 569]
	  SourceBlock		  "xbsIndex_r4/Delay"
	  SourceType		  "Xilinx Delay Block"
	  infoedit		  "Hardware notes: A delay line is a chain, ea"
"ch link of which is an SRL16 followed by a flip-flop. If register retiming is"
" enabled, the delay line is a chain of flip-flops."
	  en			  off
	  latency		  "1"
	  dbl_ovrd		  off
	  reg_retiming		  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		  "delay"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "40,28,1,1,white,blue,0,fc531c0e"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 40 40 0 ],[0 0 28 28 ],[0.77 0.82 0.91]);\npatch([13 8 15 8 13 20 "
"22 24 32 26 20 16 24 16 20 26 32 24 22 20 13 ],[3 8 15 22 27 27 25 27 27 21 2"
"7 23 15 7 3 9 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 40 40 0 ],[0 28 28 0 "
"0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin "
"icon text');\ncolor('black');disp('z^{-1}','texmode','on');\nfprintf('','COMM"
"ENT: end icon text');\n"
	  Port {
	    PortNumber		    1
	    Name		    "en_lat"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Delay2"
	  Ports			  [1, 1]
	  Position		  [220, 206, 260, 234]
	  SourceBlock		  "xbsIndex_r4/Delay"
	  SourceType		  "Xilinx Delay Block"
	  infoedit		  "Hardware notes: A delay line is a chain, ea"
"ch link of which is an SRL16 followed by a flip-flop. If register retiming is"
" enabled, the delay line is a chain of flip-flops."
	  en			  off
	  latency		  "1"
	  dbl_ovrd		  off
	  reg_retiming		  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		  "delay"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "40,28,1,1,white,blue,0,fc531c0e"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 40 40 0 ],[0 0 28 28 ],[0.77 0.82 0.91]);\npatch([13 8 15 8 13 20 "
"22 24 32 26 20 16 24 16 20 26 32 24 22 20 13 ],[3 8 15 22 27 27 25 27 27 21 2"
"7 23 15 7 3 9 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 40 40 0 ],[0 28 28 0 "
"0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin "
"icon text');\ncolor('black');disp('z^{-1}','texmode','on');\nfprintf('','COMM"
"ENT: end icon text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Delay3"
	  Ports			  [1, 1]
	  Position		  [570, 386, 605, 414]
	  SourceBlock		  "xbsIndex_r4/Delay"
	  SourceType		  "Xilinx Delay Block"
	  infoedit		  "Hardware notes: A delay line is a chain, ea"
"ch link of which is an SRL16 followed by a flip-flop. If register retiming is"
" enabled, the delay line is a chain of flip-flops."
	  en			  off
	  latency		  "1"
	  dbl_ovrd		  off
	  reg_retiming		  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		  "delay"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "35,28,1,1,white,blue,0,fc531c0e"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 35 35 0 ],[0 0 28 28 ],[0.77 0.82 0.91]);\npatch([10 5 12 5 10 17 "
"19 21 29 23 17 13 21 13 17 23 29 21 19 17 10 ],[3 8 15 22 27 27 25 27 27 21 2"
"7 23 15 7 3 9 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 35 35 0 ],[0 28 28 0 "
"0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin "
"icon text');\ncolor('black');disp('z^{-1}','texmode','on');\nfprintf('','COMM"
"ENT: end icon text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Delay4"
	  Ports			  [1, 1]
	  Position		  [295, 425, 325, 455]
	  SourceBlock		  "xbsIndex_r4/Delay"
	  SourceType		  "Xilinx Delay Block"
	  infoedit		  "Hardware notes: A delay line is a chain, ea"
"ch link of which is an SRL16 followed by a flip-flop. If register retiming is"
" enabled, the delay line is a chain of flip-flops."
	  en			  off
	  latency		  "1"
	  dbl_ovrd		  off
	  reg_retiming		  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		  "delay"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "30,30,1,1,white,blue,0,fc531c0e"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 30 30 0 ],[0 0 30 30 ],[0.77 0.82 0.91]);\npatch([7 2 9 2 7 15 17 "
"19 27 20 14 9 15 9 14 20 27 19 17 15 7 ],[3 8 15 22 27 27 25 27 27 20 26 21 1"
"5 9 4 10 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 30 30 0 ],[0 30 30 0 0 ]);"
"\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begin icon "
"text');\ncolor('black');disp('z^{-1}','texmode','on');\nfprintf('','COMMENT: "
"end icon text');\n"
	}
	Block {
	  BlockType		  Reference
	  Name			  "Expression"
	  Ports			  [2, 1]
	  Position		  [353, 495, 397, 520]
	  Orientation		  "up"
	  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		  "44,25,2,1,white,blue,0,d655e99d"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 44 44 0 ],[0 0 25 25 ],[0.77 0.82 0.91]);\npatch([15 11 17 11 15 2"
"2 24 26 33 27 22 18 23 18 22 27 33 26 24 22 15 ],[3 7 13 19 23 23 21 23 23 17"
" 22 18 13 8 4 9 3 3 5 3 3 ],[0.98 0.96 0.92]);\nplot([0 0 44 44 0 ],[0 25 25 "
"0 0 ]);\nfprintf('','COMMENT: end icon graphics');\nfprintf('','COMMENT: begi"
"n icon text');\ncolor('black');port_label('input',1,'a');\ncolor('black');por"
"t_label('input',2,'b');\ncolor('black');disp('a & (~b)');\nfprintf('','COMMEN"
"T: end icon text');\n"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Latch_start"
	  Ports			  [1, 1]
	  Position		  [300, 523, 330, 547]
	  NamePlacement		  "alternate"
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  System {
	    Name		    "Latch_start"
	    Location		    [257, 780, 492, 868]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "A4"
	    PaperUnits		    "centimeters"
	    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
	    TiledPageScale	    1
	    ShowPageBoundaries	    off
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "in"
	      Position		      [25, 28, 55, 42]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Register9"
	      Ports		      [2, 1]
	      Position		      [115, 27, 155, 63]
	      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	      "8.2.02"
	      sg_icon_stat	      "40,36,2,1,white,blue,0,cc3303a0"
	      sg_mask_display	      "fprintf('','COMMENT: begin icon graphic"
"s');\npatch([0 40 40 0 ],[0 0 36 36 ],[0.77 0.82 0.91]);\npatch([10 4 12 4 10"
" 20 23 26 36 28 20 14 22 14 20 28 36 26 23 20 10 ],[4 10 18 26 32 32 29 32 32"
" 24 32 26 18 10 4 12 4 4 7 4 4 ],[0.98 0.96 0.92]);\nplot([0 0 40 40 0 ],[0 3"
"6 36 0 0 ]);\nfprintf('','COMMENT: end icon graphics');\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');\nco"
"lor('black');disp('\\bf{z^{-1}}','texmode','on');\nfprintf('','COMMENT: end i"
"con text');\n"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "out"
	      Position		      [180, 38, 210, 52]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      "in"
	      SrcPort		      1
	      Points		      [0, 0; 15, 0]
	      Branch {
		DstBlock		"Register9"
		DstPort			1
	      }
	      Branch {
		Points			[0, 20]
		DstBlock		"Register9"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Register9"
	      SrcPort		      1
	      Points		      [0, 0]
	      DstBlock		      "out"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [320, 234, 360, 386]
	  Orientation		  "left"
	  SourceBlock		  "xbsIndex_r4/Mux"
	  SourceType		  "Xilinx Bus Multiplexer Block"
	  inputs		  "2"
	  en			  off
	  latency		  "0"
	  precision		  "Full"
	  arith_type		  "Unsigned"
	  n_bits		  "16"
	  bin_pt		  "14"
	  quantization		  "Truncate"
	  overflow		  "Wrap"
	  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		  "mux"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "40,152,3,1,white,blue,3,613f58e1"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 40 40 0 ],[0 21.7143 130.286 152 ],[0.77 0.82 0.91]);\npatch([10 3"
" 12 3 10 21 24 27 38 29 20 14 24 14 20 29 38 27 24 21 10 ],[60 67 76 85 92 92"
" 89 92 92 83 92 86 76 66 60 69 60 60 63 60 60 ],[0.98 0.96 0.92]);\nplot([0 4"
"0 40 0 0 ],[0 21.7143 130.286 152 0 ]);\nfprintf('','COMMENT: end icon graphi"
"cs');\nfprintf('','COMMENT: begin icon text');\ncolor('black');port_label('in"
"put',1,'sel');\ncolor('black');port_label('input',2,'d0');\ncolor('black');po"
"rt_label('input',3,'d1');\ncolor('black');disp('\\bf{}','texmode','on');\nfpr"
"intf('','COMMENT: end icon text');\n"
	  Port {
	    PortNumber		    1
	    Name		    "R"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Mux1"
	  Ports			  [3, 1]
	  Position		  [220, 36, 255, 144]
	  SourceBlock		  "xbsIndex_r4/Mux"
	  SourceType		  "Xilinx Bus Multiplexer Block"
	  inputs		  "2"
	  en			  off
	  latency		  "1"
	  precision		  "Full"
	  arith_type		  "Unsigned"
	  n_bits		  "16"
	  bin_pt		  "14"
	  quantization		  "Truncate"
	  overflow		  "Wrap"
	  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		  "mux"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "35,108,3,1,white,blue,3,03f9c9b9"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 35 35 0 ],[0 15.4286 92.5714 108 ],[0.77 0.82 0.91]);\npatch([8 2 "
"10 2 8 17 20 23 33 25 18 13 21 13 18 25 33 23 20 17 8 ],[40 46 54 62 68 68 65"
" 68 68 60 67 62 54 46 41 48 40 40 43 40 40 ],[0.98 0.96 0.92]);\nplot([0 35 3"
"5 0 0 ],[0 15.4286 92.5714 108 0 ]);\nfprintf('','COMMENT: end icon graphics'"
");\nfprintf('','COMMENT: begin icon text');\ncolor('black');port_label('input"
"',1,'sel');\ncolor('black');port_label('input',2,'d0');\ncolor('black');port_"
"label('input',3,'d1');\ncolor('black');disp('\\bf{  z^{-1}}','texmode','on');"
"\nfprintf('','COMMENT: end icon text');\n"
	  Port {
	    PortNumber		    1
	    Name		    "N_in"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Mux2"
	  Ports			  [3, 1]
	  Position		  [920, 572, 945, 638]
	  SourceBlock		  "xbsIndex_r4/Mux"
	  SourceType		  "Xilinx Bus Multiplexer Block"
	  inputs		  "2"
	  en			  off
	  latency		  "0"
	  precision		  "Full"
	  arith_type		  "Unsigned"
	  n_bits		  "16"
	  bin_pt		  "14"
	  quantization		  "Truncate"
	  overflow		  "Wrap"
	  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		  "mux"
	  block_version		  "8.2.02"
	  sg_icon_stat		  "25,66,3,1,white,blue,3,613f58e1"
	  sg_mask_display	  "fprintf('','COMMENT: begin icon graphics');"
"\npatch([0 25 25 0 ],[0 9.42857 56.5714 66 ],[0.77 0.82 0.91]);\npatch([6 2 8"
" 2 6 13 15 17 24 18 13 9 14 9 13 18 24 17 15 13 6 ],[23 27 33 39 43 43 41 43 "
"43 37 42 38 33 28 24 29 23 23 25 23 23 ],[0.98 0.96 0.92]);\nplot([0 25 25 0 "
"0 ],[0 9.42857 56.5714 66 0 ]);\nfprintf('','COMMENT: end icon graphics');\nf"
"printf('','COMMENT: begin icon text');\ncolor('black');port_label('input',1,'"
"sel');\ncolor('black');port_label('input',2,'d0');\ncolor('black');port_label"
"('input',3,'d1');\ncolor('black');disp('\\bf{}','texmode','on');\nfprintf('',"
"'COMMENT: end icon text');\n"
	  Port {
	    PortNumber		    1
	    Name		    "Q"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Mux3"
	  Ports			  [3, 1]
	  Position		  [920, 657, 945, 713]

⌨️ 快捷键说明

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