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

📄 bcdadd.mdl

📁 在matlab的simulink下建模实现bcd码的加法运算
💻 MDL
📖 第 1 页 / 共 5 页
字号:
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion"
      Position		      [470, 148, 545, 182]
      OutDataTypeMode	      "double"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion1"
      Position		      [435, 38, 510, 72]
      OutDataTypeMode	      "double"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion2"
      Position		      [460, 248, 535, 282]
      OutDataTypeMode	      "double"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Display
      Name		      "Display"
      Ports		      [1]
      Position		      [380, 104, 470, 136]
      Decimation	      "1"
      Lockdown		      off
    }
    Block {
      BlockType		      Reference
      Name		      "Extract Bits"
      Ports		      [1, 1]
      Position		      [320, 35, 400, 75]
      SourceBlock	      "simulink/Logic and Bit\nOperations/Extract Bits"
      SourceType	      "Extract Bits"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      bitsToExtract	      "Range of bits"
      numBits		      "4"
      bitIdxRange	      "[8 11]"
      outScalingMode	      "Treat bit field as an integer"
    }
    Block {
      BlockType		      Reference
      Name		      "Extract Bits1"
      Ports		      [1, 1]
      Position		      [350, 155, 430, 195]
      SourceBlock	      "simulink/Logic and Bit\nOperations/Extract Bits"
      SourceType	      "Extract Bits"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      bitsToExtract	      "Range of bits"
      numBits		      "4"
      bitIdxRange	      "[4 7]"
      outScalingMode	      "Treat bit field as an integer"
    }
    Block {
      BlockType		      Reference
      Name		      "Extract Bits2"
      Ports		      [1, 1]
      Position		      [320, 250, 400, 290]
      SourceBlock	      "simulink/Logic and Bit\nOperations/Extract Bits"
      SourceType	      "Extract Bits"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      bitsToExtract	      "Range of bits"
      numBits		      "4"
      bitIdxRange	      "[0 3]"
      outScalingMode	      "Treat bit field as an integer"
    }
    Block {
      BlockType		      Reference
      Name		      "Generic Numeric LED1"
      Ports		      [1]
      Position		      [540, 19, 600, 91]
      NamePlacement	      "alternate"
      UserDataPersistent      on
      UserData		      "DataTag0"
      SourceBlock	      "gaugeslibv2/ActiveX\nControl"
      SourceType	      "ActiveX Block"
      progid		      "mwnumled.numledctrl.1"
      connect		      "input"
      input		      "Value"
      init		      "hActx.Digits=6;hActx.Decimals=2;hActx.FixedDeci"
"mal=1;hActx.value=1234.56;"
      inblock		      on
      border		      on
      updateParam	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Generic Numeric LED2"
      Ports		      [1]
      Position		      [565, 234, 625, 306]
      NamePlacement	      "alternate"
      UserDataPersistent      on
      UserData		      "DataTag1"
      SourceBlock	      "gaugeslibv2/ActiveX\nControl"
      SourceType	      "ActiveX Block"
      progid		      "mwnumled.numledctrl.1"
      connect		      "input"
      input		      "Value"
      init		      "hActx.Digits=6;hActx.Decimals=2;hActx.FixedDeci"
"mal=1;hActx.value=1234.56;"
      inblock		      on
      border		      on
      updateParam	      "0"
    }
    Block {
      BlockType		      Reference
      Name		      "Generic Numeric LED6"
      Ports		      [1]
      Position		      [570, 114, 630, 186]
      NamePlacement	      "alternate"
      UserDataPersistent      on
      UserData		      "DataTag2"
      SourceBlock	      "gaugeslibv2/ActiveX\nControl"
      SourceType	      "ActiveX Block"
      progid		      "mwnumled.numledctrl.1"
      connect		      "input"
      input		      "Value"
      init		      "hActx.Digits=6;hActx.Decimals=2;hActx.FixedDeci"
"mal=1;hActx.value=1234.56;"
      inblock		      on
      border		      on
      updateParam	      "0"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Subsystem"
      Ports		      [4, 1]
      Position		      [245, 97, 285, 158]
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskHideContents	      off
      System {
	Name			"Subsystem"
	Location		[493, 97, 911, 511]
	Open			on
	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			  "In1"
	  Position		  [25, 23, 55, 37]
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In2"
	  Position		  [25, 38, 55, 52]
	  Port			  "2"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In3"
	  Position		  [25, 53, 55, 67]
	  Port			  "3"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  Inport
	  Name			  "In4"
	  Position		  [25, 68, 55, 82]
	  Port			  "4"
	  IconDisplay		  "Port number"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Chart"
	  Ports			  [4, 1]
	  Position		  [80, 25, 140, 80]
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  FunctionWithSeparateData off
	  MaskHideContents	  off
	  MaskType		  "Stateflow"
	  MaskDescription	  "Stateflow diagram"
	  MaskDisplay		  "plot(sf('Private','sfblk','xIcon'),sf('Priv"
"ate','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizontal"
"Al','Center','VerticalAl','Bottom');"
	  MaskSelfModifiable	  on
	  MaskIconFrame		  off
	  MaskIconOpaque	  off
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Chart"
	    Location		    [257, 457, 812, 717]
	    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		      "al"
	      Position		      [20, 101, 40, 119]
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "ah"
	      Position		      [20, 136, 40, 154]
	      Port		      "2"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "bl"
	      Position		      [20, 171, 40, 189]
	      Port		      "3"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "bh"
	      Position		      [20, 206, 40, 224]
	      Port		      "4"
	      IconDisplay	      "Port number"
	    }
	    Block {
	      BlockType		      Demux
	      Name		      " Demux "
	      Ports		      [1, 1]
	      Position		      [270, 205, 320, 245]
	      Outputs		      "1"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      " SFunction "
	      Tag		      "Stateflow S-Function bcdadd 1"
	      Ports		      [4, 2]
	      Position		      [180, 102, 230, 203]
	      FunctionName	      "sf_sfun"
	      PortCounts	      "[4 2]"
	      Port {
		PortNumber		2
		Name			"s"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
	      }
	    }
	    Block {
	      BlockType		      Terminator
	      Name		      " Terminator "
	      Position		      [460, 216, 480, 234]
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "s"
	      Position		      [460, 101, 480, 119]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	    }
	    Line {
	      SrcBlock		      " Demux "
	      SrcPort		      1
	      DstBlock		      " Terminator "
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      " SFunction "
	      SrcPort		      1
	      Points		      [0, 95]
	      DstBlock		      " Demux "

⌨️ 快捷键说明

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