ÿþ<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=Content-Type content="text/html; charset=unicode"> <meta name=ProgId content=Word.Document> <meta name=Generator content="Microsoft Word 12"> <meta name=Originator content="Microsoft Word 12"> <link rel=File-List href="adder_sim_files/filelist.xml"> <link rel=Edit-Time-Data href="adder_sim_files/editdata.mso"> <!--[if !mso]> <style> v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style> <![endif]--> <title>Simulation Tutorial: VHDL Design of a 1-bit adder and a 4-bit adder</title> <!--[if gte mso 9]><xml> <o:DocumentProperties> <o:Author>Abramov Benjamin</o:Author> <o:LastAuthor>Abramov Benjamin</o:LastAuthor> <o:Revision>5</o:Revision> <o:TotalTime>58</o:TotalTime> <o:Created>2009-02-26T10:41:00Z</o:Created> <o:LastSaved>2010-03-06T21:39:00Z</o:LastSaved> <o:Pages>2</o:Pages> <o:Words>866</o:Words> <o:Characters>4939</o:Characters> <o:Company> Abramov Benjamin</o:Company> <o:Lines>41</o:Lines> <o:Paragraphs>11</o:Paragraphs> <o:CharactersWithSpaces>5794</o:CharactersWithSpaces> <o:Version>12.00</o:Version> </o:DocumentProperties> </xml><![endif]--> <link rel=themeData href="adder_sim_files/themedata.thmx"> <link rel=colorSchemeMapping href="adder_sim_files/colorschememapping.xml"> <!--[if gte mso 9]><xml> <w:WordDocument> <w:SpellingState>Clean</w:SpellingState> <w:GrammarState>Clean</w:GrammarState> <w:TrackMoves>false</w:TrackMoves> <w:TrackFormatting/> <w:ValidateAgainstSchemas/> <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid> <w:IgnoreMixedContent>false</w:IgnoreMixedContent> <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText> <w:DoNotPromoteQF/> <w:LidThemeOther>EN-US</w:LidThemeOther> <w:LidThemeAsian>X-NONE</w:LidThemeAsian> <w:LidThemeComplexScript>HE</w:LidThemeComplexScript> <w:Compatibility> <w:BreakWrappedTables/> <w:SnapToGridInCell/> <w:WrapTextWithPunct/> <w:UseAsianBreakRules/> <w:DontGrowAutofit/> <w:SplitPgBreakAndParaMark/> <w:DontVertAlignCellWithSp/> <w:DontBreakConstrainedForcedTables/> <w:DontVertAlignInTxbx/> <w:Word11KerningPairs/> <w:CachedColBalance/> </w:Compatibility> <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> <m:mathPr> <m:mathFont m:val="Cambria Math"/> <m:brkBin m:val="before"/> <m:brkBinSub m:val="&#45;-"/> <m:smallFrac m:val="off"/> <m:dispDef/> <m:lMargin m:val="0"/> <m:rMargin m:val="0"/> <m:defJc m:val="centerGroup"/> <m:wrapIndent m:val="1440"/> <m:intLim m:val="subSup"/> <m:naryLim m:val="undOvr"/> </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml> <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true" DefSemiHidden="true" DefQFormat="false" DefPriority="99" LatentStyleCount="267"> <w:LsdException Locked="false" Priority="0" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Normal"/> <w:LsdException Locked="false" Priority="9" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="heading 1"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/> <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/> <w:LsdException Locked="false" Priority="39" Name="toc 1"/> <w:LsdException Locked="false" Priority="39" Name="toc 2"/> <w:LsdException Locked="false" Priority="39" Name="toc 3"/> <w:LsdException Locked="false" Priority="39" Name="toc 4"/> <w:LsdException Locked="false" Priority="39" Name="toc 5"/> <w:LsdException Locked="false" Priority="39" Name="toc 6"/> <w:LsdException Locked="false" Priority="39" Name="toc 7"/> <w:LsdException Locked="false" Priority="39" Name="toc 8"/> <w:LsdException Locked="false" Priority="39" Name="toc 9"/> <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/> <w:LsdException Locked="false" Priority="10" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Title"/> <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/> <w:LsdException Locked="false" Priority="11" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/> <w:LsdException Locked="false" Priority="22" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Strong"/> <w:LsdException Locked="false" Priority="20" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/> <w:LsdException Locked="false" Priority="59" SemiHidden="false" UnhideWhenUsed="false" Name="Table Grid"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/> <w:LsdException Locked="false" Priority="1" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 1"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 1"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 1"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/> <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/> <w:LsdException Locked="false" Priority="34" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/> <w:LsdException Locked="false" Priority="29" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Quote"/> <w:LsdException Locked="false" Priority="30" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 1"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 1"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 2"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 2"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 2"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 2"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 2"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 3"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 3"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 3"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 3"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 3"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 4"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 4"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 4"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 4"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 4"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 5"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 5"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 5"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 5"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 5"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/> <w:LsdException Locked="false" Priority="60" SemiHidden="false" UnhideWhenUsed="false" Name="Light Shading Accent 6"/> <w:LsdException Locked="false" Priority="61" SemiHidden="false" UnhideWhenUsed="false" Name="Light List Accent 6"/> <w:LsdException Locked="false" Priority="62" SemiHidden="false" UnhideWhenUsed="false" Name="Light Grid Accent 6"/> <w:LsdException Locked="false" Priority="63" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/> <w:LsdException Locked="false" Priority="64" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/> <w:LsdException Locked="false" Priority="65" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/> <w:LsdException Locked="false" Priority="66" SemiHidden="false" UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/> <w:LsdException Locked="false" Priority="67" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/> <w:LsdException Locked="false" Priority="68" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/> <w:LsdException Locked="false" Priority="69" SemiHidden="false" UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/> <w:LsdException Locked="false" Priority="70" SemiHidden="false" UnhideWhenUsed="false" Name="Dark List Accent 6"/> <w:LsdException Locked="false" Priority="71" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/> <w:LsdException Locked="false" Priority="72" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful List Accent 6"/> <w:LsdException Locked="false" Priority="73" SemiHidden="false" UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/> <w:LsdException Locked="false" Priority="19" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/> <w:LsdException Locked="false" Priority="21" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/> <w:LsdException Locked="false" Priority="31" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/> <w:LsdException Locked="false" Priority="32" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/> <w:LsdException Locked="false" Priority="33" SemiHidden="false" UnhideWhenUsed="false" QFormat="true" Name="Book Title"/> <w:LsdException Locked="false" Priority="37" Name="Bibliography"/> <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/> </w:LatentStyles> </xml><![endif]--> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4; mso-font-charset:1; mso-generic-font-family:roman; mso-font-format:other; mso-font-pitch:variable; mso-font-signature:0 0 0 0 0 0;} @font-face {font-family:Consolas; panose-1:2 11 6 9 2 2 4 3 2 4; mso-font-charset:0; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:-1610611985 1073750091 0 0 159 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-unhide:no; mso-style-qformat:yes; mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} a:link, span.MsoHyperlink {mso-style-noshow:yes; mso-style-priority:99; color:blue;} a:visited, span.MsoHyperlinkFollowed {mso-style-noshow:yes; mso-style-priority:99; color:purple;} p {mso-style-noshow:yes; mso-style-priority:99; mso-margin-top-alt:auto; margin-right:0in; mso-margin-bottom-alt:auto; margin-left:0in; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} pre {mso-style-noshow:yes; mso-style-priority:99; mso-style-link:"HTML Preformatted Char"; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt; font-size:10.0pt; font-family:"Courier New"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-add-space:auto; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; mso-style-type:export-only; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-add-space:auto; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; mso-style-type:export-only; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-add-space:auto; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {mso-style-priority:34; mso-style-unhide:no; mso-style-qformat:yes; mso-style-type:export-only; margin-top:0in; margin-right:0in; margin-bottom:0in; margin-left:.5in; margin-bottom:.0001pt; mso-add-space:auto; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman","serif"; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; color:black;} span.HTMLPreformattedChar {mso-style-name:"HTML Preformatted Char"; mso-style-noshow:yes; mso-style-priority:99; mso-style-unhide:no; mso-style-locked:yes; mso-style-link:"HTML Preformatted"; font-family:Consolas; mso-ascii-font-family:Consolas; mso-fareast-font-family:"Times New Roman"; mso-fareast-theme-font:minor-fareast; mso-hansi-font-family:Consolas; color:black;} span.SpellE {mso-style-name:""; mso-spl-e:yes;} span.GramE {mso-style-name:""; mso-gram-e:yes;} .MsoChpDefault {mso-style-type:export-only; mso-default-props:yes; font-size:10.0pt; mso-ansi-font-size:10.0pt; mso-bidi-font-size:10.0pt;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:74086511; mso-list-template-ids:1657039220;} @list l0:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} @list l0:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} @list l1 {mso-list-id:129517929; mso-list-template-ids:791026722;} @list l1:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} @list l1:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} @list l2 {mso-list-id:758062849; mso-list-type:hybrid; mso-list-template-ids:1733582608 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l2:level1 {mso-level-tab-stop:none; mso-level-number-position:left; margin-left:.75in; text-indent:-.25in;} @list l3 {mso-list-id:1436175789; mso-list-template-ids:54290816;} @list l3:level1 {mso-level-tab-stop:.5in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level2 {mso-level-tab-stop:1.0in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level3 {mso-level-tab-stop:1.5in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level4 {mso-level-tab-stop:2.0in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level5 {mso-level-tab-stop:2.5in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level6 {mso-level-tab-stop:3.0in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level7 {mso-level-tab-stop:3.5in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level8 {mso-level-tab-stop:4.0in; mso-level-number-position:left; text-indent:-.25in;} @list l3:level9 {mso-level-tab-stop:4.5in; mso-level-number-position:left; text-indent:-.25in;} ol {margin-bottom:0in;} ul {margin-bottom:0in;} --> </style> <!--[if gte mso 10]> <style> /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-priority:99; mso-style-qformat:yes; mso-style-parent:""; mso-padding-alt:0in 5.4pt 0in 5.4pt; mso-para-margin:0in; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman","serif";} </style> <![endif]--><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="5122"/> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext="edit"> <o:idmap v:ext="edit" data="1"/> </o:shapelayout></xml><![endif]--> </head> <body bgcolor=white background="adder_files/gray.jpg" lang=EN-US link=blue vlink=purple style='tab-interval:.5in'> <div class=Section1> <p align=center style='text-align:center'><b><span style='font-size:18.0pt'>Active-HDL Simulation Introduction<span class=GramE>:</span><br> 1-bit Full Adder VHDL Design &amp; Simulation</span></b></p> <div class=MsoNormal align=center style='text-align:center'><span style='mso-fareast-font-family:"Times New Roman"'> <hr size=2 width="100%" align=center> </span></div> <p><u><span style='font-size:13.5pt'>I. Introduction </span></u></p> <p style='margin:0in;margin-bottom:.0001pt'>In this lab the functionality of a design, in our case a 1-bit <span class=GramE>adder,</span> is written in a VHDL.<span style='mso-spacerun:yes'>                                                                                                                </span><span style='mso-tab-count:4'>                                                </span><span style='mso-spacerun:yes'>    </span></p> <p style='margin:0in;margin-bottom:.0001pt'>The correctness of the design is verified at the software level through simulation, thus saving critical design time. </p> <p><u><span style='font-size:13.5pt'>II. Procedure </span></u></p> <p><b><i>Creating the 1-bit adder</i> <o:p></o:p></b></p> <ol start=1 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Start ALDEC Active-HDL<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select &quot;Create New Design&quot; and click OK<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Enter <b>adder1</b> as the name of the project and change the directory to <b>c:\lab1</b> and click NEXT<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select &quot;Create Empty Design&quot; and click NEXT<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Click FINISH<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Double-click on &quot;Add New File&quot; in the Design Browser window<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select &quot;VHDL Source Code&quot; and type in <b>adder1</b> in the name field, click OK.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>The following is the VHDL code for the 1-bit adder. Enter the code as seen below into the empty file. <o:p></o:p></span></li> </ol> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:.5in'><span style='mso-fareast-font-family:"Times New Roman"'>NOTE: All lines that start with &quot;--&quot; are not needed. These are comments to help you better understand what the actual code is doing. <o:p></o:p></span></p> <pre><span style='mso-spacerun:yes'>   </span>-- We declare the 1-bit adder with the inputs and outputs</pre><pre><span style='mso-spacerun:yes'>   </span>-- shown inside the <span class=GramE>port(</span>).</pre><pre><span style='mso-spacerun:yes'>   </span>-- This will add two bits together(<span class=SpellE>x<span class=GramE>,y</span></span>), with a carry in(<span class=SpellE>cin</span>) and </pre><pre><span style='mso-spacerun:yes'>   </span>-- output the <span class=GramE>sum(</span>sum) and a carry out(<span class=SpellE>cout</span>).</pre><pre><span style='mso-spacerun:yes'>   </span><span class=GramE><b>entity</b></span> BIT_ADDER is</pre><pre><span style='mso-spacerun:yes'>        </span><span class=GramE><b>port</b>(</span> a, b, <span class=SpellE>cin</span><span style='mso-spacerun:yes'>         </span>: <b>in</b><span style='mso-spacerun:yes'>  </span>bit;</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>             </span><span class=GramE>sum</span>, <span class=SpellE>cout</span><span style='mso-spacerun:yes'>    </span>: out bit );</pre><pre><b><span style='mso-spacerun:yes'>   </span><span class=GramE>end</span></b> <b>entity</b> BIT_ADDER;</pre><pre style='margin-left: .5in'><o:p>&nbsp;</o:p></pre><pre><span style='mso-spacerun:yes'>   </span>-- This describes the functionality of the 1-BIT adder.</pre><pre><span style='mso-spacerun:yes'>   </span><span class=GramE><b>architecture</b></span> BHV <b>of</b> BIT_ADDER <b>is</b></pre><pre><span style='mso-spacerun:yes'>   </span><span class=GramE><b>begin</b></span><b><span style='mso-spacerun:yes'>        </span><o:p></o:p></b></pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>    </span>-- Calculate the sum of the 1-BIT adder.</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>    </span><span class=GramE>sum</span> &lt;= (a <span class=SpellE><b>xor</b></span> b <span class=SpellE><b>xor</b></span> <span class=SpellE>cin</span>);</pre><pre><span style='mso-spacerun:yes'>          </span>-- Calculates the carry out of the 1-BIT adder.</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>    </span><span class=SpellE><span class=GramE>cout</span></span> &lt;= (a <b>and</b> b) <b>or</b> (a <b>and</b> <span class=SpellE>cin</span>) <b>or</b> (b <b>and</b> <span class=SpellE>cin</span>);</pre><pre><span style='mso-spacerun:yes'>   </span><span class=GramE><b>end</b></span> <b>architecture</b> BHV;</pre> <ol start=9 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select the File menu and choose Save to <b>c:\lab1\src</b><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Right click on &quot;bit_adder.vhd&quot; in the Design Browser window and select the Compile option.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>The code should compile without any problems and the question mark next to the add.vhd file should change into a green check mark. <o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l0 level1 lfo1;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>If you get any errors, check the code that you have typed <span class=SpellE>agains</span> the code provided.<o:p></o:p></span></li> </ol> <p style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span class=GramE><b><i>Creating <span class=SpellE>testbench</span> for the adder.</i></b></span><b> <o:p></o:p></b></p> <ol start=1 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>The following is the VHDL code for the 1-bit adder test bench. Enter the code as seen below into the empty file.<o:p></o:p></span></li> </ol> <pre style='margin-left:.5in'><span class=GramE><b>entity</b></span> BIT_ADDER_TB <b>is</b></pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>        </span></pre><pre style='margin-left:.5in'><span class=GramE><b>end</b></span> <b>entity</b> BIT_ADDER_TB;</pre><pre><o:p>&nbsp;</o:p></pre><pre style='margin-left:.5in'><span class=GramE><b>architecture</b></span> <span class=SpellE>arc_BHV</span> <b>of</b> BIT_ADDER_TB <b>is<o:p></o:p></b></pre><pre><b><span style='mso-tab-count:1'>        </span><span class=GramE>component</span></b> BIT_ADDER <b>is</b></pre><pre><span style='mso-spacerun:yes'>        </span><span class=GramE><b>port</b>(</span> a, b, <span class=SpellE>cin</span><span style='mso-spacerun:yes'>         </span>: <b>in</b><span style='mso-spacerun:yes'>  </span>bit;</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>             </span><span class=GramE>sum</span>, <span class=SpellE>cout</span><span style='mso-spacerun:yes'>    </span>: out bit );</pre><pre><b><span style='mso-spacerun:yes'>       </span><span class=GramE>end</span></b> <b>component</b> BIT_ADDER;</pre><pre style='margin-left:.5in'> <span class=GramE><b>signal</b></span> <span class=SpellE>a,b,cin</span><span style='mso-spacerun:yes'>  </span>: bit:=<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>0<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>;</pre><pre style='margin-left:.5in'><b> <span class=GramE>signal</span></b> <span class=SpellE>sum,cout</span> : bit;<b> </b></pre><pre style='margin-left:.5in'><span class=GramE><b>begin</b></span><b><span style='mso-spacerun:yes'>        </span><o:p></o:p></b></pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>    </span>U1: BIT_ADDER</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>    </span><span class=GramE><b>port</b></span><b> map<o:p></o:p></b></pre><pre style='margin-left:.5in'><span style='mso-tab-count:2'>         </span><span class=GramE>( a</span>=&gt;a,</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>           </span><span class=GramE>b</span>=&gt;b,</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>           </span><span class=SpellE><span class=GramE>cin</span></span>=&gt;<span class=SpellE>cin</span>,</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>           </span><span class=GramE>sum</span>=&gt;sum,</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>           </span><span class=SpellE><span class=GramE>cout</span></span>=&gt;<span class=SpellE>cout</span></pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>          </span>);</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>      </span><span class=SpellE>a</span>&lt;= <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>1<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 10 ns, <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>0<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 20 ns, <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>1<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 25 ns;</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>      </span>b&lt;= <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>1<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 5 ns, <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>0<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 15 ns, <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>1<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 20 ns;</pre><pre style='margin-left:.5in'><span style='mso-spacerun:yes'>      </span><span class=SpellE><span class=GramE>cin</span></span>&lt;= <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>1<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 12 ns, <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>0<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 18 ns, <span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span dir=LTR></span>1<span dir=RTL></span><span lang=HE dir=RTL><span dir=RTL></span>'</span><span dir=LTR></span><span lang=HE><span dir=LTR></span> </span><b>after</b> 22 ns;</pre><pre style='margin-left:.5in'> <span class=GramE><b>end</b></span> <b>architecture</b> <span class=SpellE>arc_BHV</span>;</pre> <ol start=2 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Save to <b>c:\lab1\src</b><o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select the Design Menu and choose &quot;Add Files to Design&quot; Add &quot;bit_adder_tb.vhd&quot; to the design.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Right click on &quot;bit_adder_tb.vhd&quot; in the Design Browser window and select the Compile option.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Left click on the plus next to bit_adder_tb.vhd. This will bring us the </span>BIT_ADDER_TB <span style='mso-fareast-font-family: "Times New Roman"'>entity. <o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l1 level1 lfo2;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Right click on the </span>BIT_ADDER_TB <span style='mso-fareast-font-family:"Times New Roman"'>and choose Set as Top-Level<o:p></o:p></span></li> </ol> <p style='tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span class=GramE><b><i>Simulating the design.</i></b></span><b> <o:p></o:p></b></p> <ol start=1 type=1> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select the &quot;File&quot; menu and choose the &quot;New&quot; option and pick &quot;New Waveform&quot;.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>In the <span class=SpellE>Desing</span> Browser <span class=GramE>window</span> select the Structure tab at the bottom of the window.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select the Simulation menu and choose &quot;Initialize Simulation&quot;.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Click on U1<span class=GramE>:BIT</span> ADDER and drag all signals to the waveform window.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Change the time for simulation to 100 ns by clicking on the up arrow.<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>Select the Simulation menu and choose Run For<o:p></o:p></span></li> <li class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; mso-list:l3 level1 lfo3;tab-stops:list .5in'><span style='mso-fareast-font-family: "Times New Roman"'>View the simulation to verify that the 1-bit adder functionality is indeed correct. <o:p></o:p></span></li> </ol> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:.5in;text-indent:-.5in'><b><i>Running project in batch mode by script<o:p></o:p></i></b></p> <p class=MsoListParagraphCxSpFirst style='mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;text-indent:-.25in;mso-list:l2 level1 lfo4'><![if !supportLists]><span style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>1.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span dir=LTR></span><span style='mso-fareast-font-family:"Times New Roman"'>Create the project folder and place your design sources under this folder.<o:p></o:p></span></p> <p class=MsoListParagraphCxSpMiddle style='mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;text-indent:-.25in;mso-list:l2 level1 lfo4'><![if !supportLists]><span style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>2.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span dir=LTR></span><span style='mso-fareast-font-family:"Times New Roman"'>Write the project flow script file by the following template, save this file as  run_sim.do under project folder<o:p></o:p></span></p> <p class=MsoListParagraphCxSpMiddle style='mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;text-indent:-.25in;mso-list:l2 level1 lfo4'><![if !supportLists]><span style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>3.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span dir=LTR></span><span style='mso-fareast-font-family:"Times New Roman"'>Start <span class=SpellE>Aldec</span> Active HDL.<o:p></o:p></span></p> <p class=MsoListParagraphCxSpMiddle style='mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;text-indent:-.25in;mso-list:l2 level1 lfo4'><![if !supportLists]><span style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>4.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span dir=LTR></span><span style='mso-fareast-font-family:"Times New Roman"'>In the Console window type the following command: <span class=SpellE>runscript</span>  <span class=SpellE>msim</span> <span class=SpellE>your_project_fullpath</span>/run_sim.do<o:p></o:p></span></p> <p class=MsoListParagraphCxSpLast style='mso-margin-top-alt:auto;mso-margin-bottom-alt: auto;mso-add-space:auto;text-indent:-.25in;mso-list:l2 level1 lfo4'><![if !supportLists]><span style='mso-fareast-font-family:"Times New Roman"'><span style='mso-list:Ignore'>5.<span style='font:7.0pt "Times New Roman"'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><![endif]><span dir=LTR></span><span style='mso-fareast-font-family:"Times New Roman"'>Enjoy.<o:p></o:p></span></p> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:.5in;text-indent:-.5in'><b><i>Script template<o:p></o:p></i></b></p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'>#------ Full simulation script for <span class=SpellE>Aldec</span> Active HDL ---------</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>#-------------<span style='mso-spacerun:yes'>    </span><span style='mso-spacerun:yes'> </span>Written by Abramov B.</span><span style='mso-spacerun:yes'>               </span>--------------</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'># set design environment</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>set</span> <span class=SpellE>run_time</span> &quot;insert here time and units&quot;</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>set</span> top <span class=SpellE>insert_here_your_design_test_bench_name</span></p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>set</span> <span class=SpellE>design_lib</span> <span class=SpellE>insert_here_your_design_directory_full_path</span></p> <p class=MsoNormal style='margin-left:.5in'># ------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'># <span class=GramE>build</span> ordered file list</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>set</span> <span class=SpellE>file_list</span> [list &quot;file1.vhd&quot; &quot;file2.vhd&quot; ..... &quot;your_design_tb.vhd&quot;]</p> <p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span class=GramE>cd</span></span> $<span class=SpellE>design_lib</span></p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'># <span class=SpellE><span class=GramE>creare</span></span> and open project</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>if</span> {![file exists $top]} {<span class=SpellE>createdesign</span> $top $<span class=SpellE>design_lib</span>/$top}</p> <p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span class=GramE>opendesign</span></span> $<span class=SpellE>design_lib</span>/$top/$top</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'># <span class=GramE>compile</span> design</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span class=GramE>foreach</span></span> source $<span class=SpellE>file_list</span> {<span class=SpellE>vcom</span> -93 $<span class=SpellE>design_lib</span>/$source}</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'># <span class=GramE>initialize</span> and run simulation</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'><span class=SpellE><span class=GramE>vsim</span></span> $top</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>add</span> wave -r *</p> <p class=MsoNormal style='margin-left:.5in'><span class=GramE>run</span> $<span class=SpellE>run_time</span></p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='margin-left:.5in'># <span class=GramE>end</span> of script</p> <p class=MsoNormal style='margin-left:.5in'>#-------------------------------------------------------------------------</p> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='mso-fareast-font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></p> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:.5in;text-indent:-.5in'><b><i><o:p>&nbsp;</o:p></i></b></p> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:.5in'><span style='mso-fareast-font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></p> <p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto; margin-left:.5in'><span style='mso-fareast-font-family:"Times New Roman"'><o:p>&nbsp;</o:p></span></p> <div class=MsoNormal align=center style='text-align:center;tab-stops:45.8pt 91.6pt 137.4pt 183.2pt 229.0pt 274.8pt 320.6pt 366.4pt 412.2pt 458.0pt 503.8pt 549.6pt 595.4pt 641.2pt 687.0pt 732.8pt'><span style='mso-fareast-font-family:"Times New Roman"'> <hr size=2 width="100%" align=center> </span></div> </div> </body> </html>