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

📄 complex_add.mdl

📁 一个基于Matlab+Simulink的复数加法器实现
💻 MDL
📖 第 1 页 / 共 3 页
字号:
      Ports		      [1, 1]
      Position		      [200, 349, 255, 371]
      SourceBlock	      "xbsIndex_r4/Gateway In"
      SourceType	      "Xilinx Gateway In Block"
      infoedit		      "Gateway in block.  Converts inputs of type Simu"
"link integer, double and fixed point to  Xilinx fixed point type.<P><P>Hardwa"
"re notes:  In hardware these blocks become top level input ports."
      arith_type	      "Signed  (2's comp)"
      n_bits		      "8"
      bin_pt		      "6"
      quantization	      "Truncate"
      overflow		      "Wrap"
      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]"
      block_version	      "VER_STRING_GOES_HERE"
      has_advanced_control    "0"
      sggui_pos		      "-1,-1,-1,-1"
      block_type	      "gatewayin"
      sg_icon_stat	      "55,22,1,1,white,yellow,0,4bb76ffd"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18 22 28 3"
"0 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 20 15 20"
" 17 11 5 2 7 2 2 4 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 22 22 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: begin"
" 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');\nfprintf('','COMMENT: Make no changes above this lin"
"e -- machine generated code. ');\n"
    }
    Block {
      BlockType		      Reference
      Name		      "Gateway In3"
      Ports		      [1, 1]
      Position		      [200, 419, 255, 441]
      SourceBlock	      "xbsIndex_r4/Gateway In"
      SourceType	      "Xilinx Gateway In Block"
      infoedit		      "Gateway in block.  Converts inputs of type Simu"
"link integer, double and fixed point to  Xilinx fixed point type.<P><P>Hardwa"
"re notes:  In hardware these blocks become top level input ports."
      arith_type	      "Signed  (2's comp)"
      n_bits		      "8"
      bin_pt		      "6"
      quantization	      "Truncate"
      overflow		      "Wrap"
      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]"
      block_version	      "VER_STRING_GOES_HERE"
      has_advanced_control    "0"
      sggui_pos		      "-1,-1,-1,-1"
      block_type	      "gatewayin"
      sg_icon_stat	      "55,22,1,1,white,yellow,0,4bb76ffd"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18 22 28 3"
"0 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 20 15 20"
" 17 11 5 2 7 2 2 4 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 22 22 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: begin"
" 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');\nfprintf('','COMMENT: Make no changes above this lin"
"e -- machine generated code. ');\n"
    }
    Block {
      BlockType		      Reference
      Name		      "Gateway Out"
      Ports		      [1, 1]
      Position		      [495, 199, 550, 221]
      SourceBlock	      "xbsIndex_r4/Gateway Out"
      SourceType	      "Xilinx Gateway Out Block"
      infoedit		      "Gateway out block.  Converts Xilinx fixed point"
" inputs into ouputs of type Simulink integer, double, or fixed point.<P><P>Ha"
"rdware notes:  In hardware these blocks become top level output ports or are "
"discarded, depending on how they are configured."
      hdl_port		      on
      timing_constraint	      "None"
      locs_specified	      off
      LOCs		      "{}"
      xl_use_area	      off
      xl_area		      "[0, 0, 0, 0, 0, 0, 0]"
      block_version	      "VER_STRING_GOES_HERE"
      has_advanced_control    "0"
      sggui_pos		      "-1,-1,-1,-1"
      block_type	      "gatewayout"
      sg_icon_stat	      "55,22,1,1,white,yellow,0,f0cec300"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18 22 28 3"
"0 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 20 15 20"
" 17 11 5 2 7 2 2 4 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 22 22 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: begin"
" icon text ');\ncolor('black');port_label('input',1,' ');\ncolor('black');por"
"t_label('output',1,'\\fontsize{11pt}\\bf Out ','texmode','on');\nfprintf('','"
"COMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above this li"
"ne -- machine generated code. ');\n"
    }
    Block {
      BlockType		      Reference
      Name		      "Gateway Out1"
      Ports		      [1, 1]
      Position		      [495, 389, 550, 411]
      SourceBlock	      "xbsIndex_r4/Gateway Out"
      SourceType	      "Xilinx Gateway Out Block"
      infoedit		      "Gateway out block.  Converts Xilinx fixed point"
" inputs into ouputs of type Simulink integer, double, or fixed point.<P><P>Ha"
"rdware notes:  In hardware these blocks become top level output ports or are "
"discarded, depending on how they are configured."
      hdl_port		      on
      timing_constraint	      "None"
      locs_specified	      off
      LOCs		      "{}"
      xl_use_area	      off
      xl_area		      "[0, 0, 0, 0, 0, 0, 0]"
      block_version	      "VER_STRING_GOES_HERE"
      has_advanced_control    "0"
      sggui_pos		      "-1,-1,-1,-1"
      block_type	      "gatewayout"
      sg_icon_stat	      "55,22,1,1,white,yellow,0,f0cec300"
      sg_mask_display	      "fprintf('','COMMENT: begin icon graphics ');\np"
"atch([0 55 55 0 ],[0 0 22 22 ],[0.95 0.93 0.65]);\npatch([22 18 23 18 22 28 3"
"0 32 38 33 28 25 31 25 28 33 38 32 30 28 22 ],[2 6 11 16 20 20 18 20 20 15 20"
" 17 11 5 2 7 2 2 4 2 2 ],[0.98 0.96 0.92]);\nplot([0 0 55 55 0 ],[0 22 22 0 0"
" ]);\nfprintf('','COMMENT: end icon graphics');\n\nfprintf('','COMMENT: begin"
" icon text ');\ncolor('black');port_label('input',1,' ');\ncolor('black');por"
"t_label('output',1,'\\fontsize{11pt}\\bf Out ','texmode','on');\nfprintf('','"
"COMMENT: end icon text');\nfprintf('','COMMENT: Make no changes above this li"
"ne -- machine generated code. ');\n"
    }
    Block {
      BlockType		      Scope
      Name		      "Imaginary"
      Ports		      [1]
      Position		      [620, 384, 650, 416]
      Location		      [188, 390, 512, 629]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      SaveName		      "ScopeData1"
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      Scope
      Name		      "Real"
      Ports		      [1]
      Position		      [615, 194, 645, 226]
      Location		      [217, 115, 541, 354]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      DataFormat	      "StructureWithTime"
    }
    Block {
      BlockType		      UniformRandomNumber
      Name		      "a"
      Position		      [135, 159, 165, 191]
      SampleTime	      "0"
    }
    Block {
      BlockType		      UniformRandomNumber
      Name		      "b"
      Position		      [135, 344, 165, 376]
      Seed		      "2"
      SampleTime	      "0"
    }
    Block {
      BlockType		      UniformRandomNumber
      Name		      "c"
      Position		      [135, 229, 165, 261]
      Seed		      "1"
      SampleTime	      "0"
    }
    Block {
      BlockType		      UniformRandomNumber
      Name		      "d"
      Position		      [135, 414, 165, 446]
      Seed		      "3"
      SampleTime	      "0"
    }
    Line {
      SrcBlock		      "a"
      SrcPort		      1
      DstBlock		      "Gateway In"
      DstPort		      1
    }
    Line {
      SrcBlock		      "c"
      SrcPort		      1
      DstBlock		      "Gateway In1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "b"
      SrcPort		      1
      DstBlock		      "Gateway In2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "d"
      SrcPort		      1
      DstBlock		      "Gateway In3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gateway In"
      SrcPort		      1
      Points		      [50, 0; 0, 20]
      DstBlock		      "AddSub"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gateway In1"
      SrcPort		      1
      Points		      [50, 0; 0, -25]
      DstBlock		      "AddSub"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Gateway In2"
      SrcPort		      1
      Points		      [50, 0; 0, 25]
      DstBlock		      "AddSub1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gateway In3"
      SrcPort		      1
      Points		      [50, 0; 0, -20]
      DstBlock		      "AddSub1"
      DstPort		      2
    }
    Line {
      SrcBlock		      "AddSub"
      SrcPort		      1
      DstBlock		      "Gateway Out"
      DstPort		      1
    }
    Line {
      SrcBlock		      "AddSub1"
      SrcPort		      1
      DstBlock		      "Gateway Out1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gateway Out"
      SrcPort		      1
      DstBlock		      "Real"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Gateway Out1"
      SrcPort		      1
      DstBlock		      "Imaginary"
      DstPort		      1
    }
  }
}
MatData {
  NumRecords		  1
  DataRecord {
    Tag			    DataTag0
    Data		    "  %)30     .    .!$   8    (     @         %    "
"\"     $    !     0         %  0 !@    $    ,    <V%V960 =V]R:P        X   !P"
"\"   !@    @    \"          4    (     0    $    !          4 !  ,     0   !@"
"   !S:&%R960       !C;VUP:6QA=&EO;@ .    @ ,   8    (     @         %    \"  "
"   $    !     0         %  0 $P    $   \"%    8V]M<&EL871I;VX          &-O;7!"
"I;&%T:6]N7VQU=     !S:6UU;&EN:U]P97)I;V0     :6YC<E]N971L:7-T         '1R:6U?"
"=F)I=',           !D8FQ?;W9R9               9&5P<F5C871E9%]C;VYT<F]L      X  "
"  X    !@    @    $          4    (     0    <    !         !     '    =&%R9V"
"5T,0 .    , $   8    (     @         %    \"     $    !     0         %  0 !P"
"    $    .    :V5Y<P   '9A;'5E<P    X   !P    !@    @    !          4    (   "
"  0    $    !          X   !     !@    @    $          4    (     0    L    !"
"         !     +    2$1,($YE=&QI<W0       X   !H    !@    @    !          4  "
"  (     0    $    !          X    X    !@    @    $          4    (     0    "
"<    !         !     '    =&%R9V5T,0 .    ,     8    (    !          %    \" "
"    $    !     0         0  $ ,0    X    P    !@    @    $          4    (   "
"  0    ,    !         !   P!O9F8 #@   $@    &    \"     0         !0    @    "
"!    %P    $         $    !<   !%=F5R>7=H97)E(&EN(%-U8E-Y<W1E;0 .    2     8 "
"   (    !          %    \"     $    8     0         0    &    $%C8V]R9&EN9R!T"
";R!\";&]C:R!-87-K<PX    P    !@    @    $          4    (     0    ,    !    "
"     !   P!O9F8 #@   ) $   &    \"     (         !0    @    !     0    $     "
"    !0 $  @    !    \"    '1A<F=E=#$ #@   $@$   &    \"     (         !0    @"
"    !     0    $         !0 $ !,    !    ]P   'AI;&EN>&9A;6EL>0        !P87)T"
"                    <W!E960                  '!A8VMA9V4               !S>6YT:"
"&5S:7-?=&]O;       9&ER96-T;W)Y             '1E<W1B96YC:             !S>7-C;&"
"M?<&5R:6]D        8V]R95]G96YE<F%T:6]N     ')U;E]C;W)E9V5N          !E=F%L7V9"
"I96QD            8VQO8VM?;&]C             '-Y;G1H97-I<U]L86YG=6%G90  #@   #@ "
"   &    \"     0         !0    @    !    !P    $         $     <   !6:7)T97@R"
"  X    X    !@    @    $          4    (     0    8    !         !     &    >"
"&,R=C0P   .    ,     8    (    !          %    \"     $    \"     0         0"
"  ( +30   X    X    !@    @    $          4    (     0    4    !         !   "
"  %    8W,Q-#0    .    ,     8    (    !          %    \"     $    #     0   "
"      0  , 6%-4  X   !     !@    @    $          4    (     0    D    !      "
"   !     )    +B]N971L:7-T          X    P    !@    @    $          4    (   "
"  0    ,    !         !   P!O9F8 #@   #     &    \"     0         !0    @    "
"!     P    $         $  # #$P,  .    2     8    (    !          %    \"     $"
"    8     0         0    &    $%C8V]R9&EN9R!T;R!\";&]C:R!-87-K<PX    P    !@ "
"   @    $          4    (     0    ,    !         !   P!O9F8 #@   #     &    "
"\"     0         !0    @    !     0    $         $  ! #     .    ,     8    ("
"    !          %    \"                0         0          X    P    !@    @ "
"   $          4    (     0    0    !         !  ! !62$1,#@   ' (   &    \"   "
"  (         !0    @    !     0    $         !0 $  P    !    &    '-H87)E9    "
"    &-O;7!I;&%T:6]N  X   \"  P  !@    @    \"          4    (     0    $    !"
"          4 !  3     0   (4   !C;VUP:6QA=&EO;@          8V]M<&EL871I;VY?;'5T "
"    '-I;75L:6YK7W!E<FEO9     !I;F-R7VYE=&QI<W0         =')I;5]V8FET<P        "
"   &1B;%]O=G)D              !D97!R96-A=&5D7V-O;G1R;VP     #@   #@    &    \" "
"    0         !0    @    !    !P    $         $     <   !T87)G970Q  X    P 0 "
" !@    @    \"          4    (     0    $    !          4 !  '     0    X   !"
"K97ES    =F%L=65S    #@   '     &    \"     $         !0    @    !     0    $"
"         #@   $     &    \"     0         !0    @    !    \"P    $         $ "
"    L   !(1$P@3F5T;&ES=       #@   &@    &    \"     $         !0    @    !  "
"   0    $         #@   #@    &    \"     0         !0    @    !    !P    $   "
"      $     <   !T87)G970Q  X    P    !@    @    $          4    (     0    $"
"    !         !   0 Q    #@   #     &    \"     0         !0    @    !     P "
"   $         $  # &]F9@ .    2     8    (    !          %    \"     $    7   "
"  0         0    %P   $5V97)Y=VAE<F4@:6X@4W5B4WES=&5M  X   !(    !@    @    $"
"          4    (     0   !@    !         !     8    06-C;W)D:6YG('1O($)L;V-K("
"$UA<VMS#@   #     &    \"     0         !0    @    !     P    $         $  # "
"&]F9@ .    D 0   8    (     @         %    \"     $    !     0         %  0 "
"\"     $    (    =&%R9V5T,0 .    2 0   8    (     @         %    \"     $    "
"!     0         %  0 $P    $   #W    >&EL:6YX9F%M:6QY         '!A<G0         "
"          !S<&5E9                   <&%C:V%G90               '-Y;G1H97-I<U]T;"
"V]L      !D:7)E8W1O<GD             =&5S=&)E;F-H             '-Y<V-L:U]P97)I;V"
"0       !C;W)E7V=E;F5R871I;VX     <G5N7V-O<F5G96X          &5V86Q?9FEE;&0    "
"       !C;&]C:U]L;V,             <WEN=&AE<VES7VQA;F=U86=E   .    .     8    ("
"    !          %    \"     $    '     0         0    !P   %9I<G1E>#( #@   #@ "
"   &    \"     0         !0    @    !    !@    $         $     8   !X8S)V-#  "
"  X    P    !@    @    $          4    (     0    (    !         !   @ M-   #"
"@   #@    &    \"     0         !0    @    !    !0    $         $     4   !C<"
"S$T-     X    P    !@    @    $          4    (     0    ,    !         !   P"
"!84U0 #@   $     &    \"     0         !0    @    !    \"0    $         $    "
" D    N+VYE=&QI<W0         #@   #     &    \"     0         !0    @    !     "
"P    $         $  # &]F9@ .    ,     8    (    !          %    \"     $    # "
"    0         0  , ,3 P  X   !(    !@    @    $          4    (     0   !@   "
" !         !     8    06-C;W)D:6YG('1O($)L;V-K($UA<VMS#@   #     &    \"     "
"0         !0    @    !     P    $         $  # &]F9@ .    ,     8    (    !  "
"        %    \"     $    !     0         0  $ ,     X    P    !@    @    $   "
"       4    (               !         !          #@   #     &    \"     0    "
"     !0    @    !    !     $         $  $ %9(1$P"
  }
}

⌨️ 快捷键说明

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