1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
2 | <!-- saved from url=(0062)http://www.cs.ucr.edu/~ksewell/research/systemc/comparison.htm --> |
---|
3 | <HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o = |
---|
4 | "urn:schemas-microsoft-com:office:office" xmlns:w = |
---|
5 | "urn:schemas-microsoft-com:office:word"><HEAD><TITLE>Code Comparison: VHDL & SystemC</TITLE> |
---|
6 | <META http-equiv=Content-Type content="text/html; charset=iso-8859-1"> |
---|
7 | <META content=Word.Document name=ProgId> |
---|
8 | <META content="MSHTML 6.00.2600.0" name=GENERATOR> |
---|
9 | <META content="Microsoft Word 10" name=Originator><LINK |
---|
10 | href="comparison_files/filelist.xml" rel=File-List><!--[if gte mso 9]><xml> |
---|
11 | <o:DocumentProperties> |
---|
12 | <o:Author>Young Gates</o:Author> |
---|
13 | <o:Template>Normal</o:Template> |
---|
14 | <o:LastAuthor>Young Gates</o:LastAuthor> |
---|
15 | <o:Revision>3</o:Revision> |
---|
16 | <o:TotalTime>138</o:TotalTime> |
---|
17 | <o:Created>2002-09-03T18:51:00Z</o:Created> |
---|
18 | <o:LastSaved>2002-09-03T18:58:00Z</o:LastSaved> |
---|
19 | <o:Pages>1</o:Pages> |
---|
20 | <o:Words>635</o:Words> |
---|
21 | <o:Characters>3620</o:Characters> |
---|
22 | <o:Company>----</o:Company> |
---|
23 | <o:Lines>30</o:Lines> |
---|
24 | <o:Paragraphs>8</o:Paragraphs> |
---|
25 | <o:CharactersWithSpaces>4247</o:CharactersWithSpaces> |
---|
26 | <o:Version>10.2625</o:Version> |
---|
27 | </o:DocumentProperties> |
---|
28 | </xml><![endif]--><!--[if gte mso 9]><xml> |
---|
29 | <w:WordDocument> |
---|
30 | <w:SpellingState>Clean</w:SpellingState> |
---|
31 | <w:GrammarState>Clean</w:GrammarState> |
---|
32 | <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel> |
---|
33 | </w:WordDocument> |
---|
34 | </xml><![endif]--> |
---|
35 | <STYLE>@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; } |
---|
36 | P.MsoNormal { |
---|
37 | FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" |
---|
38 | } |
---|
39 | LI.MsoNormal { |
---|
40 | FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" |
---|
41 | } |
---|
42 | DIV.MsoNormal { |
---|
43 | FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"; mso-style-parent: ""; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" |
---|
44 | } |
---|
45 | P.MsoPlainText { |
---|
46 | FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" |
---|
47 | } |
---|
48 | LI.MsoPlainText { |
---|
49 | FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" |
---|
50 | } |
---|
51 | DIV.MsoPlainText { |
---|
52 | FONT-SIZE: 10pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Courier New"; mso-pagination: widow-orphan; mso-fareast-font-family: "Times New Roman" |
---|
53 | } |
---|
54 | SPAN.SpellE { |
---|
55 | mso-style-name: ""; mso-spl-e: yes |
---|
56 | } |
---|
57 | DIV.Section1 { |
---|
58 | page: Section1 |
---|
59 | } |
---|
60 | </STYLE> |
---|
61 | <!--[if gte mso 10]> |
---|
62 | <style> |
---|
63 | /* Style Definitions */ |
---|
64 | table.MsoNormalTable |
---|
65 | {mso-style-name:"Table Normal"; |
---|
66 | mso-tstyle-rowband-size:0; |
---|
67 | mso-tstyle-colband-size:0; |
---|
68 | mso-style-noshow:yes; |
---|
69 | mso-style-parent:""; |
---|
70 | mso-padding-alt:0in 5.4pt 0in 5.4pt; |
---|
71 | mso-para-margin:0in; |
---|
72 | mso-para-margin-bottom:.0001pt; |
---|
73 | mso-pagination:widow-orphan; |
---|
74 | font-size:10.0pt; |
---|
75 | font-family:"Times New Roman";} |
---|
76 | table.MsoTableGrid |
---|
77 | {mso-style-name:"Table Grid"; |
---|
78 | mso-tstyle-rowband-size:0; |
---|
79 | mso-tstyle-colband-size:0; |
---|
80 | border:solid windowtext 1.0pt; |
---|
81 | mso-border-alt:solid windowtext .5pt; |
---|
82 | mso-padding-alt:0in 5.4pt 0in 5.4pt; |
---|
83 | mso-border-insideh:.5pt solid windowtext; |
---|
84 | mso-border-insidev:.5pt solid windowtext; |
---|
85 | mso-para-margin:0in; |
---|
86 | mso-para-margin-bottom:.0001pt; |
---|
87 | mso-pagination:widow-orphan; |
---|
88 | font-size:10.0pt; |
---|
89 | font-family:"Times New Roman";} |
---|
90 | </style> |
---|
91 | <![endif]--></HEAD> |
---|
92 | <BODY lang=EN-US style="tab-interval: .5in"> |
---|
93 | <DIV class=Section1> |
---|
94 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN |
---|
95 | style="FONT-SIZE: 16pt">VHDL vs. SystemC<o:p></o:p></SPAN></P> |
---|
96 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center>Code Comparison |
---|
97 | Sheet</P> |
---|
98 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
99 | style="FONT-SIZE: 10pt">Bold: Reserved Word<o:p></o:p></SPAN></B></P> |
---|
100 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
101 | style="FONT-SIZE: 10pt">Italic: <SPAN class=SpellE>User_Defined</SPAN> |
---|
102 | Text<o:p></o:p></SPAN></I></P> |
---|
103 | <TABLE class=MsoTableGrid |
---|
104 | style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; WIDTH: 491.4pt; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext" |
---|
105 | cellSpacing=0 cellPadding=0 width=655 border=1> |
---|
106 | <TBODY> |
---|
107 | <TR style="mso-yfti-irow: 0"> |
---|
108 | <TD |
---|
109 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt" |
---|
110 | vAlign=top width=91> |
---|
111 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><B |
---|
112 | style="mso-bidi-font-weight: normal">Task<o:p></o:p></B></P></TD> |
---|
113 | <TD |
---|
114 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" |
---|
115 | vAlign=top width=300> |
---|
116 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><B |
---|
117 | style="mso-bidi-font-weight: normal">VHDL<o:p></o:p></B></P></TD> |
---|
118 | <TD |
---|
119 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt" |
---|
120 | vAlign=top width=264> |
---|
121 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><B |
---|
122 | style="mso-bidi-font-weight: normal">SystemC<o:p></o:p></B></P></TD></TR> |
---|
123 | <TR style="mso-yfti-irow: 1"> |
---|
124 | <TD |
---|
125 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
126 | vAlign=top width=91> |
---|
127 | <P class=MsoNormal><SPAN |
---|
128 | style="FONT-SIZE: 10pt">Basic<o:p></o:p></SPAN></P> |
---|
129 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Model |
---|
130 | Structure<o:p></o:p></SPAN></P></TD> |
---|
131 | <TD |
---|
132 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
133 | vAlign=top width=300> |
---|
134 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
135 | style="FONT-FAMILY: 'Times New Roman'">library</SPAN></B><SPAN |
---|
136 | style="FONT-FAMILY: 'Times New Roman'"> IEEE;<o:p></o:p></SPAN></P> |
---|
137 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
138 | style="FONT-FAMILY: 'Times New Roman'">use</SPAN></B><SPAN |
---|
139 | style="FONT-FAMILY: 'Times New Roman'"> |
---|
140 | IEEE.std_logic_1164.all;<o:p></o:p></SPAN></P> |
---|
141 | <P class=MsoPlainText><SPAN |
---|
142 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P> |
---|
143 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
144 | style="FONT-FAMILY: 'Times New Roman'">entity</SPAN></B><SPAN |
---|
145 | style="FONT-FAMILY: 'Times New Roman'"> <SPAN class=SpellE><I |
---|
146 | style="mso-bidi-font-style: normal">my_model</I></SPAN><I |
---|
147 | style="mso-bidi-font-style: normal"> </I><SPAN |
---|
148 | style="mso-spacerun: yes"> </SPAN><B |
---|
149 | style="mso-bidi-font-weight: normal">is</B><o:p></o:p></SPAN></P> |
---|
150 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
151 | style="mso-tab-count: 1"> |
---|
152 | </SPAN><B |
---|
153 | style="mso-bidi-font-weight: normal">port</B>(<o:p></o:p></SPAN></P> |
---|
154 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
155 | style="mso-tab-count: 1"> |
---|
156 | </SPAN><I style="mso-bidi-font-style: normal">input1</I><B |
---|
157 | style="mso-bidi-font-weight: normal">: in |
---|
158 | STD_LOGIC;</B><o:p></o:p></SPAN></P> |
---|
159 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
160 | style="mso-tab-count: 1"> |
---|
161 | </SPAN><I style="mso-bidi-font-style: normal">input2</I><B |
---|
162 | style="mso-bidi-font-weight: normal">: in STD_LOGIC;</B><SPAN |
---|
163 | style="mso-spacerun: yes"> </SPAN><o:p></o:p></SPAN></P> |
---|
164 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
165 | style="mso-tab-count: 1"> |
---|
166 | </SPAN><I style="mso-bidi-font-style: normal">output1</I><B |
---|
167 | style="mso-bidi-font-weight: normal">: out STD_LOGIC;<SPAN |
---|
168 | style="mso-tab-count: 1"> |
---|
169 | </SPAN></B><SPAN style="mso-spacerun: yes"> |
---|
170 | </SPAN><o:p></o:p></SPAN></P> |
---|
171 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
172 | style="mso-tab-count: 1"> |
---|
173 | </SPAN><I style="mso-bidi-font-style: normal">output2</I>: <B |
---|
174 | style="mso-bidi-font-weight: normal">out |
---|
175 | STD_LOGIC;<o:p></o:p></B></SPAN></P> |
---|
176 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
177 | style="mso-tab-count: 1"> |
---|
178 | </SPAN>)<B |
---|
179 | style="mso-bidi-font-weight: normal">;<o:p></o:p></B></SPAN></P> |
---|
180 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
181 | style="FONT-FAMILY: 'Times New Roman'">end</SPAN></B><SPAN |
---|
182 | style="FONT-FAMILY: 'Times New Roman'"> <SPAN class=SpellE><I |
---|
183 | style="mso-bidi-font-style: normal">my_model</I></SPAN>;<o:p></o:p></SPAN></P> |
---|
184 | <P class=MsoPlainText><SPAN |
---|
185 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P> |
---|
186 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
187 | style="FONT-FAMILY: 'Times New Roman'">architecture</SPAN></B><SPAN |
---|
188 | style="FONT-FAMILY: 'Times New Roman'"> <SPAN class=SpellE><I |
---|
189 | style="mso-bidi-font-style: normal">my_arch</I></SPAN> <B |
---|
190 | style="mso-bidi-font-weight: normal">of</B> <SPAN class=SpellE><I |
---|
191 | style="mso-bidi-font-style: normal">my_model</I></SPAN> <B |
---|
192 | style="mso-bidi-font-weight: normal">is</B><o:p></o:p></SPAN></P> |
---|
193 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
194 | style="FONT-FAMILY: 'Times New Roman'">begin<o:p></o:p></SPAN></B></P> |
---|
195 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
196 | style="mso-spacerun: yes"> </SPAN><B |
---|
197 | style="mso-bidi-font-weight: normal">process(</B><I |
---|
198 | style="mso-bidi-font-style: normal"> input1, input2</I><B |
---|
199 | style="mso-bidi-font-weight: normal">)<o:p></o:p></B></SPAN></P> |
---|
200 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
201 | style="mso-spacerun: yes"> |
---|
202 | </SPAN><B style="mso-bidi-font-weight: normal">variable</B> <I |
---|
203 | style="mso-bidi-font-style: normal">my_var1,my_var2</I>: <B |
---|
204 | style="mso-bidi-font-weight: normal">STD_LOGIC;</B><o:p></o:p></SPAN></P> |
---|
205 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
206 | style="mso-spacerun: yes"> </SPAN><B |
---|
207 | style="mso-bidi-font-weight: normal">begin<o:p></o:p></B></SPAN></P> |
---|
208 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
209 | style="mso-tab-count: 1"> |
---|
210 | </SPAN><I style="mso-bidi-font-style: normal">my_var1 </I>:=<SPAN |
---|
211 | style="mso-spacerun: yes"> </SPAN><B |
---|
212 | style="mso-bidi-font-weight: normal">not </B><I |
---|
213 | style="mso-bidi-font-style: normal">input1</I>;<o:p></o:p></SPAN></P> |
---|
214 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
215 | style="mso-tab-count: 1"> |
---|
216 | </SPAN><I style="mso-bidi-font-style: normal">my_var2 </I>:=<SPAN |
---|
217 | style="mso-spacerun: yes"> </SPAN><B |
---|
218 | style="mso-bidi-font-weight: normal">not </B><I |
---|
219 | style="mso-bidi-font-style: normal">input2</I>;<o:p></o:p></SPAN></P> |
---|
220 | <P class=MsoPlainText><SPAN |
---|
221 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P> |
---|
222 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
223 | style="mso-tab-count: 1"> |
---|
224 | </SPAN><I style="mso-bidi-font-style: normal">output1</I> <= <I |
---|
225 | style="mso-bidi-font-style: normal">input1 </I><B |
---|
226 | style="mso-bidi-font-weight: normal">and</B> <I |
---|
227 | style="mso-bidi-font-style: normal">my_var2</I>;<o:p></o:p></SPAN></P> |
---|
228 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
229 | style="mso-spacerun: yes"> |
---|
230 | </SPAN><I style="mso-bidi-font-style: normal">output2</I> <= <I |
---|
231 | style="mso-bidi-font-style: normal">input2 </I><B |
---|
232 | style="mso-bidi-font-weight: normal">and</B> <I |
---|
233 | style="mso-bidi-font-style: normal">my_var1</I>;<o:p></o:p></SPAN></P> |
---|
234 | <P class=MsoPlainText><SPAN |
---|
235 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P> |
---|
236 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
237 | style="mso-spacerun: yes"> </SPAN><B |
---|
238 | style="mso-bidi-font-weight: normal">end |
---|
239 | process;<o:p></o:p></B></SPAN></P> |
---|
240 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
241 | style="FONT-FAMILY: 'Times New Roman'">end</SPAN></B><SPAN |
---|
242 | style="FONT-FAMILY: 'Times New Roman'"> <SPAN class=SpellE><I |
---|
243 | style="mso-bidi-font-style: normal">my_arch</I></SPAN>;<o:p></o:p></SPAN></P> |
---|
244 | <P class=MsoNormal style="MARGIN-LEFT: 156.6pt; TEXT-INDENT: -156.6pt"><I |
---|
245 | style="mso-bidi-font-style: normal"><SPAN |
---|
246 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></I></P></TD> |
---|
247 | <TD |
---|
248 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
249 | vAlign=top width=264> |
---|
250 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
251 | style="FONT-SIZE: 10pt">#include </SPAN></B><SPAN |
---|
252 | style="FONT-SIZE: 10pt"><SPAN |
---|
253 | class=SpellE>systemc.h</SPAN><o:p></o:p></SPAN></P> |
---|
254 | <P class=MsoNormal><SPAN |
---|
255 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></P> |
---|
256 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
257 | style="FONT-SIZE: 10pt">SC_MODULE</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
258 | (<SPAN class=SpellE><I |
---|
259 | style="mso-bidi-font-style: normal">my_model</I></SPAN><I |
---|
260 | style="mso-bidi-font-style: normal">)<o:p></o:p></I></SPAN></P> |
---|
261 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">{<o:p></o:p></SPAN></P> |
---|
262 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
263 | style="FONT-SIZE: 10pt"><SPAN |
---|
264 | style="mso-spacerun: yes"> |
---|
265 | </SPAN><SPAN class=SpellE><B |
---|
266 | style="mso-bidi-font-weight: normal">sc_in</B></SPAN><B |
---|
267 | style="mso-bidi-font-weight: normal"><<SPAN |
---|
268 | class=SpellE>sc_logic</SPAN>> </B><I |
---|
269 | style="mso-bidi-font-style: normal">input1</I><B |
---|
270 | style="mso-bidi-font-weight: normal">;<o:p></o:p></B></SPAN></P> |
---|
271 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
272 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
273 | style="mso-spacerun: yes"> |
---|
274 | </SPAN><SPAN class=SpellE>sc_in</SPAN><<SPAN |
---|
275 | class=SpellE>sc_logic</SPAN>> </SPAN></B><I |
---|
276 | style="mso-bidi-font-style: normal"><SPAN |
---|
277 | style="FONT-SIZE: 10pt">input2</SPAN></I><B |
---|
278 | style="mso-bidi-font-weight: normal"><SPAN |
---|
279 | style="FONT-SIZE: 10pt">;<o:p></o:p></SPAN></B></P> |
---|
280 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
281 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
282 | style="mso-spacerun: yes"> |
---|
283 | </SPAN><SPAN class=SpellE>sc_out</SPAN><<SPAN |
---|
284 | class=SpellE>sc_logic</SPAN>> </SPAN></B><I |
---|
285 | style="mso-bidi-font-style: normal"><SPAN |
---|
286 | style="FONT-SIZE: 10pt">output1</SPAN></I><B |
---|
287 | style="mso-bidi-font-weight: normal"><SPAN |
---|
288 | style="FONT-SIZE: 10pt">;<o:p></o:p></SPAN></B></P> |
---|
289 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
290 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
291 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
292 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
293 | class=SpellE>sc_out</SPAN><<SPAN class=SpellE>sc_logic</SPAN>> |
---|
294 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
295 | style="FONT-SIZE: 10pt">output2</SPAN></I><B |
---|
296 | style="mso-bidi-font-weight: normal"><SPAN |
---|
297 | style="FONT-SIZE: 10pt">;<o:p></o:p></SPAN></B></P> |
---|
298 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
299 | style="mso-bidi-font-weight: normal"><SPAN |
---|
300 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></B></P> |
---|
301 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
302 | style="mso-bidi-font-weight: normal"><I |
---|
303 | style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
304 | style="mso-spacerun: yes"> |
---|
305 | </SPAN></SPAN></I></B><B style="mso-bidi-font-weight: normal"><SPAN |
---|
306 | style="FONT-SIZE: 10pt">SC_CTOR</SPAN></B><SPAN |
---|
307 | style="FONT-SIZE: 10pt"><SPAN style="mso-spacerun: yes"> |
---|
308 | </SPAN>(<SPAN class=SpellE><I |
---|
309 | style="mso-bidi-font-style: normal">my_model</I></SPAN><I |
---|
310 | style="mso-bidi-font-style: normal">)<o:p></o:p></I></SPAN></P> |
---|
311 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
312 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
313 | style="mso-spacerun: yes"> |
---|
314 | </SPAN></SPAN></B><SPAN style="FONT-SIZE: 10pt">{<o:p></o:p></SPAN></P> |
---|
315 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><I |
---|
316 | style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
317 | style="mso-spacerun: yes"> |
---|
318 | </SPAN></SPAN></I><B style="mso-bidi-font-weight: normal"><SPAN |
---|
319 | style="FONT-SIZE: 10pt">SC_METHOD</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
320 | ( process );<o:p></o:p></SPAN></P> |
---|
321 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
322 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
323 | style="mso-spacerun: yes"> |
---|
324 | </SPAN>sensitive</SPAN></B><SPAN style="FONT-SIZE: 10pt"> << <I |
---|
325 | style="mso-bidi-font-style: normal">input1</I> << <I |
---|
326 | style="mso-bidi-font-style: normal">input2</I>;<o:p></o:p></SPAN></P> |
---|
327 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
328 | style="FONT-SIZE: 10pt"><SPAN |
---|
329 | style="mso-spacerun: yes"> |
---|
330 | </SPAN>}<o:p></o:p></SPAN></P> |
---|
331 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
332 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></P> |
---|
333 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
334 | style="FONT-SIZE: 10pt"><SPAN |
---|
335 | style="mso-spacerun: yes"> |
---|
336 | </SPAN><B style="mso-bidi-font-weight: normal">void </B>process( |
---|
337 | )<o:p></o:p></SPAN></P> |
---|
338 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
339 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
340 | style="mso-spacerun: yes"> |
---|
341 | </SPAN></SPAN></B><SPAN style="FONT-SIZE: 10pt">{<o:p></o:p></SPAN></P> |
---|
342 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
343 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
344 | style="mso-spacerun: yes"> |
---|
345 | </SPAN><SPAN class=SpellE>sc_logic</SPAN></SPAN></B><SPAN |
---|
346 | style="FONT-SIZE: 10pt"> <I |
---|
347 | style="mso-bidi-font-style: normal">my_var1</I>, <I |
---|
348 | style="mso-bidi-font-style: normal">my_var2</I>;<o:p></o:p></SPAN></P> |
---|
349 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
350 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></P> |
---|
351 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
352 | style="FONT-SIZE: 10pt"><SPAN |
---|
353 | style="mso-spacerun: yes"> |
---|
354 | </SPAN><SPAN |
---|
355 | style="mso-spacerun: yes"> </SPAN><I |
---|
356 | style="mso-bidi-font-style: normal">my_var1</I> = ~<I |
---|
357 | style="mso-bidi-font-style: normal">input1</I>;<o:p></o:p></SPAN></P> |
---|
358 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
359 | style="FONT-SIZE: 10pt"><SPAN |
---|
360 | style="mso-spacerun: yes"> |
---|
361 | </SPAN><I style="mso-bidi-font-style: normal">my_var2</I> = ~<I |
---|
362 | style="mso-bidi-font-style: normal">input2</I>;<o:p></o:p></SPAN></P> |
---|
363 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
364 | style="FONT-SIZE: 10pt"><SPAN style="mso-spacerun: yes"> |
---|
365 | </SPAN><o:p></o:p></SPAN></P> |
---|
366 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
367 | style="FONT-SIZE: 10pt"><SPAN |
---|
368 | style="mso-spacerun: yes"> |
---|
369 | </SPAN><I style="mso-bidi-font-style: normal">output1</I> = <I |
---|
370 | style="mso-bidi-font-style: normal">input1</I> & <I |
---|
371 | style="mso-bidi-font-style: normal">my_var2</I>;<o:p></o:p></SPAN></P> |
---|
372 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
373 | style="FONT-SIZE: 10pt"><SPAN |
---|
374 | style="mso-spacerun: yes"> |
---|
375 | </SPAN><I style="mso-bidi-font-style: normal">output2</I> = <I |
---|
376 | style="mso-bidi-font-style: normal">input2</I> & <I |
---|
377 | style="mso-bidi-font-style: normal">my_var1</I>;<o:p></o:p></SPAN></P> |
---|
378 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
379 | style="FONT-SIZE: 10pt"><SPAN |
---|
380 | style="mso-spacerun: yes"> |
---|
381 | </SPAN>}<o:p></o:p></SPAN></P> |
---|
382 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
383 | style="FONT-SIZE: 10pt">};<o:p></o:p></SPAN></P></TD></TR> |
---|
384 | <TR style="mso-yfti-irow: 2"> |
---|
385 | <TD |
---|
386 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
387 | vAlign=top width=91> |
---|
388 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Logic |
---|
389 | Values<o:p></o:p></SPAN></P></TD> |
---|
390 | <TD |
---|
391 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
392 | vAlign=top width=300> |
---|
393 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">X, 0, 1, |
---|
394 | Z<o:p></o:p></SPAN></P></TD> |
---|
395 | <TD |
---|
396 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
397 | vAlign=top width=264> |
---|
398 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
399 | style="FONT-SIZE: 10pt">SC_LOGIC_X , SC_LOGIC_0<o:p></o:p></SPAN></P> |
---|
400 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
401 | style="FONT-SIZE: 10pt">SC_LOGIC_1, SC_LOGIC_Z<B |
---|
402 | style="mso-bidi-font-weight: normal"><o:p></o:p></B></SPAN></P></TD></TR> |
---|
403 | <TR style="mso-yfti-irow: 3"> |
---|
404 | <TD |
---|
405 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
406 | vAlign=top width=91> |
---|
407 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN class=SpellE><SPAN |
---|
408 | style="FONT-SIZE: 10pt">Variable:Type</SPAN></SPAN><SPAN |
---|
409 | style="FONT-SIZE: 10pt"> Logic Bit<o:p></o:p></SPAN></P></TD> |
---|
410 | <TD |
---|
411 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
412 | vAlign=top width=300> |
---|
413 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
414 | style="FONT-SIZE: 10pt">variable</SPAN></B><I |
---|
415 | style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 10pt"> <SPAN |
---|
416 | class=SpellE>my_bit</SPAN></SPAN></I><B |
---|
417 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt">: |
---|
418 | STD_LOGIC;</SPAN></B><SPAN |
---|
419 | style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></P></TD> |
---|
420 | <TD |
---|
421 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
422 | vAlign=top width=264> |
---|
423 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN class=SpellE><B |
---|
424 | style="mso-bidi-font-weight: normal"><SPAN |
---|
425 | style="FONT-SIZE: 10pt">sc_logic</SPAN></B></SPAN><SPAN |
---|
426 | style="FONT-SIZE: 10pt"> <SPAN class=SpellE><I |
---|
427 | style="mso-bidi-font-style: normal">my_bit</I></SPAN><B |
---|
428 | style="mso-bidi-font-weight: normal">;</B><o:p></o:p></SPAN></P></TD></TR> |
---|
429 | <TR style="mso-yfti-irow: 4"> |
---|
430 | <TD |
---|
431 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
432 | vAlign=top width=91> |
---|
433 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
434 | style="FONT-SIZE: 10pt">variable: 3-bit Logic |
---|
435 | Vector<o:p></o:p></SPAN></P></TD> |
---|
436 | <TD |
---|
437 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
438 | vAlign=top width=300> |
---|
439 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
440 | style="FONT-SIZE: 10pt">variable </SPAN></B><SPAN class=SpellE><I |
---|
441 | style="mso-bidi-font-style: normal"><SPAN |
---|
442 | style="FONT-SIZE: 10pt">my_vector</SPAN></I></SPAN><SPAN |
---|
443 | style="FONT-SIZE: 10pt">: <B |
---|
444 | style="mso-bidi-font-weight: normal">STD_LOGIC_VECTOR</B>(2 <SPAN |
---|
445 | class=SpellE><B style="mso-bidi-font-weight: normal">downto</B></SPAN> |
---|
446 | 0)<B style="mso-bidi-font-weight: normal"> ;</B><o:p></o:p></SPAN></P></TD> |
---|
447 | <TD |
---|
448 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
449 | vAlign=top width=264> |
---|
450 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN class=SpellE><B |
---|
451 | style="mso-bidi-font-weight: normal"><SPAN |
---|
452 | style="FONT-SIZE: 10pt">sc_lv</SPAN></B></SPAN><B |
---|
453 | style="mso-bidi-font-weight: normal"><SPAN |
---|
454 | style="FONT-SIZE: 10pt"><</SPAN></B><SPAN style="FONT-SIZE: 10pt">3<B |
---|
455 | style="mso-bidi-font-weight: normal">> </B><SPAN class=SpellE><I |
---|
456 | style="mso-bidi-font-style: normal">my_vector</I></SPAN><B |
---|
457 | style="mso-bidi-font-weight: normal">;</B><I |
---|
458 | style="mso-bidi-font-style: normal"><o:p></o:p></I></SPAN></P></TD></TR> |
---|
459 | <TR style="mso-yfti-irow: 5"> |
---|
460 | <TD |
---|
461 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
462 | vAlign=top width=91> |
---|
463 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
464 | style="FONT-SIZE: 10pt">Signal of Type Logic<o:p></o:p></SPAN></P></TD> |
---|
465 | <TD |
---|
466 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
467 | vAlign=top width=300> |
---|
468 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
469 | style="FONT-SIZE: 10pt">signal</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
470 | <SPAN class=SpellE><I |
---|
471 | style="mso-bidi-font-style: normal">my_signal</I></SPAN><B |
---|
472 | style="mso-bidi-font-weight: normal">: STD_LOGIC;<I |
---|
473 | style="mso-bidi-font-style: normal"><o:p></o:p></I></B></SPAN></P></TD> |
---|
474 | <TD |
---|
475 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
476 | vAlign=top width=264> |
---|
477 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN class=SpellE><B |
---|
478 | style="mso-bidi-font-weight: normal"><SPAN |
---|
479 | style="FONT-SIZE: 10pt">sc_signal</SPAN></B></SPAN><B |
---|
480 | style="mso-bidi-font-weight: normal"><SPAN |
---|
481 | style="FONT-SIZE: 10pt"><<SPAN |
---|
482 | class=SpellE>sc_logic</SPAN>></SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
483 | <SPAN class=SpellE><I |
---|
484 | style="mso-bidi-font-style: normal">my_signal</I></SPAN><B |
---|
485 | style="mso-bidi-font-weight: normal">;</B><o:p></o:p></SPAN></P></TD></TR> |
---|
486 | <TR style="mso-yfti-irow: 6"> |
---|
487 | <TD |
---|
488 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
489 | vAlign=top width=91> |
---|
490 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
491 | style="FONT-SIZE: 10pt">Signal for a 3-bit Logic |
---|
492 | Vector<o:p></o:p></SPAN></P></TD> |
---|
493 | <TD |
---|
494 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
495 | vAlign=top width=300> |
---|
496 | <P class=MsoNormal style="MARGIN-LEFT: 159.65pt; TEXT-INDENT: -149.4pt"><B |
---|
497 | style="mso-bidi-font-weight: normal"><SPAN |
---|
498 | style="FONT-SIZE: 10pt">signal</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
499 | <SPAN class=SpellE><I |
---|
500 | style="mso-bidi-font-style: normal">my_signal</I></SPAN><B |
---|
501 | style="mso-bidi-font-weight: normal">: STD_LOGIC_VECTOR</B><SPAN |
---|
502 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
503 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
504 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
505 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
506 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
507 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
508 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
509 | style="mso-spacerun: yes"> </SPAN>(2 |
---|
510 | <SPAN class=SpellE><B |
---|
511 | style="mso-bidi-font-weight: normal">downto</B></SPAN> 0)<B |
---|
512 | style="mso-bidi-font-weight: normal">; <o:p></o:p></B></SPAN></P></TD> |
---|
513 | <TD |
---|
514 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
515 | vAlign=top width=264> |
---|
516 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN class=SpellE><B |
---|
517 | style="mso-bidi-font-weight: normal"><SPAN |
---|
518 | style="FONT-SIZE: 10pt">sc_signal</SPAN></B></SPAN><B |
---|
519 | style="mso-bidi-font-weight: normal"><SPAN |
---|
520 | style="FONT-SIZE: 10pt"><<SPAN class=SpellE>sc_lv</SPAN><3> > |
---|
521 | </SPAN></B><SPAN class=SpellE><I style="mso-bidi-font-style: normal"><SPAN |
---|
522 | style="FONT-SIZE: 10pt">my_signal</SPAN></I></SPAN><B |
---|
523 | style="mso-bidi-font-weight: normal"><SPAN |
---|
524 | style="FONT-SIZE: 10pt">;</SPAN></B><I |
---|
525 | style="mso-bidi-font-style: normal"><SPAN |
---|
526 | style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></I></P></TD></TR> |
---|
527 | <TR style="mso-yfti-irow: 7"> |
---|
528 | <TD |
---|
529 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
530 | vAlign=top width=91> |
---|
531 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
532 | style="FONT-SIZE: 10pt">Input Ports Logic Type<o:p></o:p></SPAN></P></TD> |
---|
533 | <TD |
---|
534 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
535 | vAlign=top width=300> |
---|
536 | <P class=MsoNormal style="MARGIN-LEFT: 156.6pt; TEXT-INDENT: -156.6pt"><I |
---|
537 | style="mso-bidi-font-style: normal"><SPAN |
---|
538 | style="FONT-SIZE: 10pt">input1</SPAN></I><B |
---|
539 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt">: in |
---|
540 | STD_LOGIC;<o:p></o:p></SPAN></B></P> |
---|
541 | <P class=MsoNormal style="MARGIN-LEFT: 156.6pt; TEXT-INDENT: -156.6pt"><I |
---|
542 | style="mso-bidi-font-style: normal"><SPAN |
---|
543 | style="FONT-SIZE: 10pt">input2,input3,input4</SPAN></I><B |
---|
544 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt">: in |
---|
545 | STD_LOGIC;<o:p></o:p></SPAN></B></P></TD> |
---|
546 | <TD |
---|
547 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
548 | vAlign=top width=264> |
---|
549 | <P class=MsoNormal><SPAN class=SpellE><B |
---|
550 | style="mso-bidi-font-weight: normal"><SPAN |
---|
551 | style="FONT-SIZE: 10pt">sc_in</SPAN></B></SPAN><B |
---|
552 | style="mso-bidi-font-weight: normal"><SPAN |
---|
553 | style="FONT-SIZE: 10pt"><<SPAN class=SpellE>sc_logic</SPAN>> |
---|
554 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
555 | style="FONT-SIZE: 10pt">input1</SPAN></I><B |
---|
556 | style="mso-bidi-font-weight: normal"><SPAN |
---|
557 | style="FONT-SIZE: 10pt">;</SPAN></B><I |
---|
558 | style="mso-bidi-font-style: normal"><SPAN |
---|
559 | style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></I></P> |
---|
560 | <P class=MsoNormal><SPAN class=SpellE><B |
---|
561 | style="mso-bidi-font-weight: normal"><SPAN |
---|
562 | style="FONT-SIZE: 10pt">sc_in</SPAN></B></SPAN><B |
---|
563 | style="mso-bidi-font-weight: normal"><SPAN |
---|
564 | style="FONT-SIZE: 10pt"><<SPAN class=SpellE>sc_logic</SPAN>> |
---|
565 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
566 | style="FONT-SIZE: 10pt">input1</SPAN></I><SPAN style="FONT-SIZE: 10pt">,<I |
---|
567 | style="mso-bidi-font-style: normal">input2,input3</I><B |
---|
568 | style="mso-bidi-font-weight: normal">;<o:p></o:p></B></SPAN></P></TD></TR> |
---|
569 | <TR style="mso-yfti-irow: 8"> |
---|
570 | <TD |
---|
571 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
572 | vAlign=top width=91> |
---|
573 | <P class=MsoNormal style="TEXT-ALIGN: justify"><SPAN |
---|
574 | style="FONT-SIZE: 10pt">Output Ports Logic Type<o:p></o:p></SPAN></P></TD> |
---|
575 | <TD |
---|
576 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
577 | vAlign=top width=300> |
---|
578 | <P class=MsoNormal style="MARGIN-LEFT: 156.6pt; TEXT-INDENT: -156.6pt"><I |
---|
579 | style="mso-bidi-font-style: normal"><SPAN |
---|
580 | style="FONT-SIZE: 10pt">output1</SPAN></I><B |
---|
581 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt">: out |
---|
582 | STD_LOGIC;<o:p></o:p></SPAN></B></P> |
---|
583 | <P class=MsoNormal style="MARGIN-LEFT: 156.6pt; TEXT-INDENT: -156.6pt"><I |
---|
584 | style="mso-bidi-font-style: normal"><SPAN |
---|
585 | style="FONT-SIZE: 10pt">output2,output3,output4</SPAN></I><B |
---|
586 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt">: out |
---|
587 | STD_LOGIC;<o:p></o:p></SPAN></B></P></TD> |
---|
588 | <TD |
---|
589 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
590 | vAlign=top width=264> |
---|
591 | <P class=MsoNormal><SPAN class=SpellE><B |
---|
592 | style="mso-bidi-font-weight: normal"><SPAN |
---|
593 | style="FONT-SIZE: 10pt">sc_out</SPAN></B></SPAN><B |
---|
594 | style="mso-bidi-font-weight: normal"><SPAN |
---|
595 | style="FONT-SIZE: 10pt"><<SPAN class=SpellE>sc_logic</SPAN>> |
---|
596 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
597 | style="FONT-SIZE: 10pt">output1</SPAN></I><B |
---|
598 | style="mso-bidi-font-weight: normal"><SPAN |
---|
599 | style="FONT-SIZE: 10pt">;</SPAN></B><I |
---|
600 | style="mso-bidi-font-style: normal"><SPAN |
---|
601 | style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></I></P> |
---|
602 | <P class=MsoNormal><SPAN class=SpellE><B |
---|
603 | style="mso-bidi-font-weight: normal"><SPAN |
---|
604 | style="FONT-SIZE: 10pt">sc_out</SPAN></B></SPAN><B |
---|
605 | style="mso-bidi-font-weight: normal"><SPAN |
---|
606 | style="FONT-SIZE: 10pt"><<SPAN class=SpellE>sc_logic</SPAN>> |
---|
607 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
608 | style="FONT-SIZE: 10pt">output1</SPAN></I><SPAN |
---|
609 | style="FONT-SIZE: 10pt">,<I |
---|
610 | style="mso-bidi-font-style: normal">output2,output3</I><B |
---|
611 | style="mso-bidi-font-weight: normal">;<o:p></o:p></B></SPAN></P></TD></TR> |
---|
612 | <TR style="mso-yfti-irow: 9"> |
---|
613 | <TD |
---|
614 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
615 | vAlign=top width=91> |
---|
616 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Process & Sensitivity |
---|
617 | List<o:p></o:p></SPAN></P></TD> |
---|
618 | <TD |
---|
619 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
620 | vAlign=top width=300> |
---|
621 | <P class=MsoNormal |
---|
622 | style="MARGIN-LEFT: 156.6pt; TEXT-INDENT: -156.6pt; TEXT-ALIGN: justify"><B |
---|
623 | style="mso-bidi-font-weight: normal"><SPAN |
---|
624 | style="FONT-SIZE: 10pt">process</SPAN></B><SPAN |
---|
625 | style="FONT-SIZE: 10pt">(<I style="mso-bidi-font-style: normal"> input1, |
---|
626 | input2 </I>)<I |
---|
627 | style="mso-bidi-font-style: normal"><o:p></o:p></I></SPAN></P></TD> |
---|
628 | <TD |
---|
629 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
630 | vAlign=top width=264> |
---|
631 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
632 | style="mso-bidi-font-weight: normal"><SPAN |
---|
633 | style="FONT-SIZE: 10pt">SC_METHOD</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
634 | ( process );<o:p></o:p></SPAN></P> |
---|
635 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
636 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
637 | style="mso-spacerun: yes"> </SPAN>sensitive</SPAN></B><SPAN |
---|
638 | style="FONT-SIZE: 10pt"> << <I |
---|
639 | style="mso-bidi-font-style: normal">input1</I> << <I |
---|
640 | style="mso-bidi-font-style: normal">input2</I>;<o:p></o:p></SPAN></P> |
---|
641 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><SPAN |
---|
642 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></P></TD></TR> |
---|
643 | <TR style="mso-yfti-irow: 10"> |
---|
644 | <TD |
---|
645 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
646 | vAlign=top width=91> |
---|
647 | <P class=MsoNormal><SPAN |
---|
648 | style="FONT-SIZE: 10pt">Process:<o:p></o:p></SPAN></P> |
---|
649 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Positive |
---|
650 | <o:p></o:p></SPAN></P> |
---|
651 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Edge- Triggered |
---|
652 | <o:p></o:p></SPAN></P></TD> |
---|
653 | <TD |
---|
654 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
655 | vAlign=top width=300> |
---|
656 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
657 | style="mso-bidi-font-weight: normal"><SPAN |
---|
658 | style="FONT-FAMILY: 'Times New Roman'">[no predefined function-must use |
---|
659 | this code]<o:p></o:p></SPAN></B></P> |
---|
660 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
661 | style="mso-bidi-font-weight: normal"><SPAN |
---|
662 | style="FONT-FAMILY: 'Times New Roman'">process</SPAN></B><SPAN |
---|
663 | style="FONT-FAMILY: 'Times New Roman'">(<SPAN |
---|
664 | class=SpellE>clk</SPAN>)<o:p></o:p></SPAN></P> |
---|
665 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><SPAN |
---|
666 | style="FONT-FAMILY: 'Times New Roman'">. . .<o:p></o:p></SPAN></P> |
---|
667 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
668 | style="mso-bidi-font-weight: normal"><SPAN |
---|
669 | style="FONT-FAMILY: 'Times New Roman'">if </SPAN></B><SPAN |
---|
670 | style="FONT-FAMILY: 'Times New Roman'">( <SPAN |
---|
671 | class=SpellE>clkevent</SPAN> <B style="mso-bidi-font-weight: normal">and |
---|
672 | </B><SPAN class=SpellE>clk</SPAN> = 1) <B |
---|
673 | style="mso-bidi-font-weight: normal">then</B><o:p></o:p></SPAN></P> |
---|
674 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><SPAN |
---|
675 | style="FONT-FAMILY: 'Times New Roman'">. . .<o:p></o:p></SPAN></P></TD> |
---|
676 | <TD |
---|
677 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
678 | vAlign=top width=264> |
---|
679 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
680 | style="mso-bidi-font-weight: normal"><SPAN |
---|
681 | style="FONT-SIZE: 10pt">SC_METHOD</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
682 | ( process );<o:p></o:p></SPAN></P> |
---|
683 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
684 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
685 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
686 | class=SpellE>sensitive_pos</SPAN> </SPAN></B><SPAN |
---|
687 | style="FONT-SIZE: 10pt"><SPAN |
---|
688 | style="mso-spacerun: yes"> </SPAN><< <SPAN class=SpellE><I |
---|
689 | style="mso-bidi-font-style: normal">clk</I></SPAN>;<o:p></o:p></SPAN></P> |
---|
690 | <P class=MsoNormal style="TEXT-ALIGN: justify"><B |
---|
691 | style="mso-bidi-font-weight: normal"><SPAN |
---|
692 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></B></P></TD></TR> |
---|
693 | <TR style="mso-yfti-irow: 11"> |
---|
694 | <TD |
---|
695 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
696 | vAlign=top width=91> |
---|
697 | <P class=MsoNormal><SPAN |
---|
698 | style="FONT-SIZE: 10pt">Process:<o:p></o:p></SPAN></P> |
---|
699 | <P class=MsoNormal><SPAN |
---|
700 | style="FONT-SIZE: 10pt">Negative<o:p></o:p></SPAN></P> |
---|
701 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Edge- Triggered |
---|
702 | <o:p></o:p></SPAN></P></TD> |
---|
703 | <TD |
---|
704 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
705 | vAlign=top width=300> |
---|
706 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
707 | style="mso-bidi-font-weight: normal"><SPAN |
---|
708 | style="FONT-FAMILY: 'Times New Roman'">[no predefined function-must use |
---|
709 | following code]<o:p></o:p></SPAN></B></P> |
---|
710 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
711 | style="mso-bidi-font-weight: normal"><SPAN |
---|
712 | style="FONT-FAMILY: 'Times New Roman'">process</SPAN></B><SPAN |
---|
713 | style="FONT-FAMILY: 'Times New Roman'">(<SPAN |
---|
714 | class=SpellE>clk</SPAN>)<o:p></o:p></SPAN></P> |
---|
715 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><SPAN |
---|
716 | style="FONT-FAMILY: 'Times New Roman'">. . .<o:p></o:p></SPAN></P> |
---|
717 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
718 | style="mso-bidi-font-weight: normal"><SPAN |
---|
719 | style="FONT-FAMILY: 'Times New Roman'">if </SPAN></B><SPAN |
---|
720 | style="FONT-FAMILY: 'Times New Roman'">( <SPAN |
---|
721 | class=SpellE>clkevent</SPAN> <B style="mso-bidi-font-weight: normal">and |
---|
722 | </B><SPAN class=SpellE>clk</SPAN> = 0) <B |
---|
723 | style="mso-bidi-font-weight: normal">then</B><o:p></o:p></SPAN></P> |
---|
724 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><SPAN |
---|
725 | style="FONT-FAMILY: 'Times New Roman'">. . .<o:p></o:p></SPAN></P></TD> |
---|
726 | <TD |
---|
727 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
728 | vAlign=top width=264> |
---|
729 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
730 | style="mso-bidi-font-weight: normal"><SPAN |
---|
731 | style="FONT-SIZE: 10pt">SC_METHOD</SPAN></B><SPAN style="FONT-SIZE: 10pt"> |
---|
732 | ( process );<o:p></o:p></SPAN></P> |
---|
733 | <P class=MsoNormal style="MARGIN-LEFT: 0.3in; TEXT-INDENT: -0.3in"><B |
---|
734 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
735 | style="mso-spacerun: yes"> </SPAN><SPAN |
---|
736 | class=SpellE>sensitive_neg</SPAN> </SPAN></B><SPAN |
---|
737 | style="FONT-SIZE: 10pt"><SPAN |
---|
738 | style="mso-spacerun: yes"> </SPAN><< <SPAN class=SpellE><I |
---|
739 | style="mso-bidi-font-style: normal">clk</I></SPAN>;<o:p></o:p></SPAN></P> |
---|
740 | <P class=MsoNormal style="TEXT-ALIGN: justify"><B |
---|
741 | style="mso-bidi-font-weight: normal"><SPAN |
---|
742 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></B></P></TD></TR> |
---|
743 | <TR style="mso-yfti-irow: 12"> |
---|
744 | <TD |
---|
745 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
746 | vAlign=top width=91> |
---|
747 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Not Input1 |
---|
748 | <o:p></o:p></SPAN></P></TD> |
---|
749 | <TD |
---|
750 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
751 | vAlign=top width=300> |
---|
752 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><B |
---|
753 | style="mso-bidi-font-weight: normal"><SPAN |
---|
754 | style="FONT-FAMILY: 'Times New Roman'">not</SPAN></B><SPAN |
---|
755 | style="FONT-FAMILY: 'Times New Roman'"> input1<o:p></o:p></SPAN></P></TD> |
---|
756 | <TD |
---|
757 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
758 | vAlign=top width=264> |
---|
759 | <P class=MsoNormal style="TEXT-ALIGN: justify"><B |
---|
760 | style="mso-bidi-font-weight: normal"><SPAN |
---|
761 | style="FONT-SIZE: 10pt">~</SPAN></B><SPAN |
---|
762 | style="FONT-SIZE: 10pt">input1<o:p></o:p></SPAN></P></TD></TR> |
---|
763 | <TR style="mso-yfti-irow: 13"> |
---|
764 | <TD |
---|
765 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
766 | vAlign=top width=91> |
---|
767 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Input1 AND |
---|
768 | <o:p></o:p></SPAN></P> |
---|
769 | <P class=MsoNormal><SPAN |
---|
770 | style="FONT-SIZE: 10pt">Input2<o:p></o:p></SPAN></P></TD> |
---|
771 | <TD |
---|
772 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
773 | vAlign=top width=300> |
---|
774 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
775 | style="mso-bidi-font-style: normal"><SPAN |
---|
776 | style="FONT-FAMILY: 'Times New Roman'">
input1 </SPAN></I><B |
---|
777 | style="mso-bidi-font-weight: normal"><SPAN |
---|
778 | style="FONT-FAMILY: 'Times New Roman'">and </SPAN></B><I |
---|
779 | style="mso-bidi-font-style: normal"><SPAN |
---|
780 | style="FONT-FAMILY: 'Times New Roman'">input2;<o:p></o:p></SPAN></I></P></TD> |
---|
781 | <TD |
---|
782 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
783 | vAlign=top width=264> |
---|
784 | <P class=MsoNormal style="TEXT-ALIGN: justify"><I |
---|
785 | style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 10pt">
input1 |
---|
786 | </SPAN></I><B style="mso-bidi-font-weight: normal"><SPAN |
---|
787 | style="FONT-SIZE: 10pt">& </SPAN></B><I |
---|
788 | style="mso-bidi-font-style: normal"><SPAN |
---|
789 | style="FONT-SIZE: 10pt">input2;</SPAN></I><B |
---|
790 | style="mso-bidi-font-weight: normal"><SPAN |
---|
791 | style="FONT-SIZE: 10pt"><o:p></o:p></SPAN></B></P></TD></TR> |
---|
792 | <TR style="mso-yfti-irow: 14"> |
---|
793 | <TD |
---|
794 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
795 | vAlign=top width=91> |
---|
796 | <P class=MsoNormal><SPAN |
---|
797 | style="FONT-SIZE: 10pt">Input1<o:p></o:p></SPAN></P> |
---|
798 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
799 | style="mso-spacerun: yes"> </SPAN>OR <o:p></o:p></SPAN></P> |
---|
800 | <P class=MsoNormal><SPAN |
---|
801 | style="FONT-SIZE: 10pt">Input2<o:p></o:p></SPAN></P></TD> |
---|
802 | <TD |
---|
803 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
804 | vAlign=top width=300> |
---|
805 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
806 | style="mso-bidi-font-style: normal"><SPAN |
---|
807 | style="FONT-FAMILY: 'Times New Roman'">
input1 <B |
---|
808 | style="mso-bidi-font-weight: normal">or</B></SPAN></I><B |
---|
809 | style="mso-bidi-font-weight: normal"><SPAN |
---|
810 | style="FONT-FAMILY: 'Times New Roman'"> </SPAN></B><I |
---|
811 | style="mso-bidi-font-style: normal"><SPAN |
---|
812 | style="FONT-FAMILY: 'Times New Roman'">input2;<o:p></o:p></SPAN></I></P></TD> |
---|
813 | <TD |
---|
814 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
815 | vAlign=top width=264> |
---|
816 | <P class=MsoNormal style="TEXT-ALIGN: justify"><I |
---|
817 | style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 10pt">
input1 |
---|
818 | </SPAN></I><SPAN style="FONT-SIZE: 10pt">|<B |
---|
819 | style="mso-bidi-font-weight: normal"> </B><I |
---|
820 | style="mso-bidi-font-style: normal">input2;<o:p></o:p></I></SPAN></P></TD></TR> |
---|
821 | <TR style="mso-yfti-irow: 15"> |
---|
822 | <TD |
---|
823 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
824 | vAlign=top width=91> |
---|
825 | <P class=MsoNormal><SPAN |
---|
826 | style="FONT-SIZE: 10pt">Input1<o:p></o:p></SPAN></P> |
---|
827 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
828 | style="mso-spacerun: yes"> </SPAN>XOR <o:p></o:p></SPAN></P> |
---|
829 | <P class=MsoNormal><SPAN |
---|
830 | style="FONT-SIZE: 10pt">Input2<o:p></o:p></SPAN></P></TD> |
---|
831 | <TD |
---|
832 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
833 | vAlign=top width=300> |
---|
834 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
835 | style="mso-bidi-font-style: normal"><SPAN |
---|
836 | style="FONT-FAMILY: 'Times New Roman'">
input1 </SPAN></I><SPAN |
---|
837 | class=SpellE><B style="mso-bidi-font-weight: normal"><SPAN |
---|
838 | style="FONT-FAMILY: 'Times New Roman'">xor</SPAN></B></SPAN><B |
---|
839 | style="mso-bidi-font-weight: normal"><SPAN |
---|
840 | style="FONT-FAMILY: 'Times New Roman'"> </SPAN></B><I |
---|
841 | style="mso-bidi-font-style: normal"><SPAN |
---|
842 | style="FONT-FAMILY: 'Times New Roman'">input2;<o:p></o:p></SPAN></I></P></TD> |
---|
843 | <TD |
---|
844 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
845 | vAlign=top width=264> |
---|
846 | <P class=MsoNormal style="TEXT-ALIGN: justify"><I |
---|
847 | style="mso-bidi-font-style: normal"><SPAN style="FONT-SIZE: 10pt">
input1 |
---|
848 | </SPAN></I><SPAN style="FONT-SIZE: 10pt">^<B |
---|
849 | style="mso-bidi-font-weight: normal"> </B><I |
---|
850 | style="mso-bidi-font-style: normal">input2;<o:p></o:p></I></SPAN></P></TD></TR> |
---|
851 | <TR style="mso-yfti-irow: 16"> |
---|
852 | <TD |
---|
853 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
854 | vAlign=top width=91> |
---|
855 | <P class=MsoNormal><SPAN |
---|
856 | style="FONT-SIZE: 10pt">Input1<o:p></o:p></SPAN></P> |
---|
857 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
858 | style="mso-spacerun: yes"> </SPAN>NAND <o:p></o:p></SPAN></P> |
---|
859 | <P class=MsoNormal><SPAN |
---|
860 | style="FONT-SIZE: 10pt">Input2<o:p></o:p></SPAN></P></TD> |
---|
861 | <TD |
---|
862 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
863 | vAlign=top width=300> |
---|
864 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
865 | style="mso-bidi-font-style: normal"><SPAN |
---|
866 | style="FONT-FAMILY: 'Times New Roman'">
input1 </SPAN></I><SPAN |
---|
867 | class=SpellE><B style="mso-bidi-font-weight: normal"><SPAN |
---|
868 | style="FONT-FAMILY: 'Times New Roman'">nand</SPAN></B></SPAN><B |
---|
869 | style="mso-bidi-font-weight: normal"><SPAN |
---|
870 | style="FONT-FAMILY: 'Times New Roman'"> </SPAN></B><I |
---|
871 | style="mso-bidi-font-style: normal"><SPAN |
---|
872 | style="FONT-FAMILY: 'Times New Roman'">input2;<o:p></o:p></SPAN></I></P></TD> |
---|
873 | <TD |
---|
874 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
875 | vAlign=top width=264> |
---|
876 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
877 | style="FONT-SIZE: 10pt">[no operator-must use 2 statements of |
---|
878 | code]<o:p></o:p></SPAN></B></P> |
---|
879 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
880 | style="FONT-SIZE: 10pt">
input1 & input2;<o:p></o:p></SPAN></I></P> |
---|
881 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
882 | style="FONT-SIZE: 10pt">
</SPAN></I><SPAN style="FONT-SIZE: 10pt">~<I |
---|
883 | style="mso-bidi-font-style: normal">input;<o:p></o:p></I></SPAN></P></TD></TR> |
---|
884 | <TR style="mso-yfti-irow: 17"> |
---|
885 | <TD |
---|
886 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
887 | vAlign=top width=91> |
---|
888 | <P class=MsoNormal><SPAN |
---|
889 | style="FONT-SIZE: 10pt">Input1<o:p></o:p></SPAN></P> |
---|
890 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
891 | style="mso-spacerun: yes"> </SPAN>NOR <o:p></o:p></SPAN></P> |
---|
892 | <P class=MsoNormal><SPAN |
---|
893 | style="FONT-SIZE: 10pt">Input2<o:p></o:p></SPAN></P></TD> |
---|
894 | <TD |
---|
895 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
896 | vAlign=top width=300> |
---|
897 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
898 | style="mso-bidi-font-style: normal"><SPAN |
---|
899 | style="FONT-FAMILY: 'Times New Roman'">
input1 </SPAN></I><B |
---|
900 | style="mso-bidi-font-weight: normal"><SPAN |
---|
901 | style="FONT-FAMILY: 'Times New Roman'">nor </SPAN></B><I |
---|
902 | style="mso-bidi-font-style: normal"><SPAN |
---|
903 | style="FONT-FAMILY: 'Times New Roman'">input2;<o:p></o:p></SPAN></I></P></TD> |
---|
904 | <TD |
---|
905 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
906 | vAlign=top width=264> |
---|
907 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
908 | style="FONT-SIZE: 10pt">[no operator-must use 2 statements of |
---|
909 | code]<o:p></o:p></SPAN></B></P> |
---|
910 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
911 | style="FONT-SIZE: 10pt">
input1 | input2;<o:p></o:p></SPAN></I></P> |
---|
912 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
913 | style="FONT-SIZE: 10pt">
</SPAN></I><SPAN style="FONT-SIZE: 10pt">~<I |
---|
914 | style="mso-bidi-font-style: normal">input;<o:p></o:p></I></SPAN></P></TD></TR> |
---|
915 | <TR style="mso-yfti-irow: 18"> |
---|
916 | <TD |
---|
917 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
918 | vAlign=top width=91> |
---|
919 | <P class=MsoNormal><SPAN |
---|
920 | style="FONT-SIZE: 10pt">Input1<o:p></o:p></SPAN></P> |
---|
921 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt"><SPAN |
---|
922 | style="mso-spacerun: yes"> </SPAN>XNOR <o:p></o:p></SPAN></P> |
---|
923 | <P class=MsoNormal><SPAN |
---|
924 | style="FONT-SIZE: 10pt">Input2<o:p></o:p></SPAN></P></TD> |
---|
925 | <TD |
---|
926 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
927 | vAlign=top width=300> |
---|
928 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
929 | style="mso-bidi-font-style: normal"><SPAN |
---|
930 | style="FONT-FAMILY: 'Times New Roman'">
input1 </SPAN></I><SPAN |
---|
931 | class=SpellE><B style="mso-bidi-font-weight: normal"><SPAN |
---|
932 | style="FONT-FAMILY: 'Times New Roman'">xnor</SPAN></B></SPAN><B |
---|
933 | style="mso-bidi-font-weight: normal"><SPAN |
---|
934 | style="FONT-FAMILY: 'Times New Roman'"> </SPAN></B><I |
---|
935 | style="mso-bidi-font-style: normal"><SPAN |
---|
936 | style="FONT-FAMILY: 'Times New Roman'">input2;<o:p></o:p></SPAN></I></P></TD> |
---|
937 | <TD |
---|
938 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
939 | vAlign=top width=264> |
---|
940 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><SPAN |
---|
941 | style="FONT-SIZE: 10pt">[no operator-must use 2 statements of |
---|
942 | code]<o:p></o:p></SPAN></B></P> |
---|
943 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
944 | style="FONT-SIZE: 10pt">
input1 </SPAN></I><SPAN |
---|
945 | style="FONT-SIZE: 10pt">^<I style="mso-bidi-font-style: normal"> |
---|
946 | input2;<o:p></o:p></I></SPAN></P> |
---|
947 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
948 | style="FONT-SIZE: 10pt">
</SPAN></I><SPAN style="FONT-SIZE: 10pt">~<I |
---|
949 | style="mso-bidi-font-style: normal">input;<o:p></o:p></I></SPAN></P></TD></TR> |
---|
950 | <TR style="mso-yfti-irow: 19"> |
---|
951 | <TD |
---|
952 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
953 | vAlign=top width=91> |
---|
954 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Variable |
---|
955 | Assignment<o:p></o:p></SPAN></P></TD> |
---|
956 | <TD |
---|
957 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
958 | vAlign=top width=300> |
---|
959 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
960 | style="mso-bidi-font-style: normal"><SPAN |
---|
961 | style="FONT-FAMILY: 'Times New Roman'">var1 := input1 and |
---|
962 | input2;<o:p></o:p></SPAN></I></P></TD> |
---|
963 | <TD |
---|
964 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
965 | vAlign=top width=264> |
---|
966 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
967 | style="FONT-SIZE: 10pt">var1 = input1 & |
---|
968 | input2;<o:p></o:p></SPAN></I></P></TD></TR> |
---|
969 | <TR style="mso-yfti-irow: 20"> |
---|
970 | <TD |
---|
971 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
972 | vAlign=top width=91> |
---|
973 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Signal |
---|
974 | Assignment<o:p></o:p></SPAN></P></TD> |
---|
975 | <TD |
---|
976 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
977 | vAlign=top width=300> |
---|
978 | <P class=MsoPlainText style="TEXT-ALIGN: justify"><I |
---|
979 | style="mso-bidi-font-style: normal"><SPAN |
---|
980 | style="FONT-FAMILY: 'Times New Roman'">sig1 <= input1 and |
---|
981 | input2;<o:p></o:p></SPAN></I></P></TD> |
---|
982 | <TD |
---|
983 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
984 | vAlign=top width=264> |
---|
985 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
986 | style="FONT-SIZE: 10pt">sig1 = input1 & |
---|
987 | input2;<o:p></o:p></SPAN></I></P></TD></TR> |
---|
988 | <TR style="mso-yfti-irow: 21"> |
---|
989 | <TD |
---|
990 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
991 | vAlign=top width=91> |
---|
992 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Accessing a Value From a |
---|
993 | Port<o:p></o:p></SPAN></P></TD> |
---|
994 | <TD |
---|
995 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
996 | vAlign=top width=300> |
---|
997 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
998 | style="FONT-FAMILY: 'Times New Roman'">variable</SPAN></B><SPAN |
---|
999 | style="FONT-FAMILY: 'Times New Roman'"> <I |
---|
1000 | style="mso-bidi-font-style: normal">temp</I>;<o:p></o:p></SPAN></P> |
---|
1001 | <P class=MsoPlainText><SPAN |
---|
1002 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P> |
---|
1003 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1004 | style="FONT-FAMILY: 'Times New Roman'">temp</SPAN></I><SPAN |
---|
1005 | style="FONT-FAMILY: 'Times New Roman'"> = <I |
---|
1006 | style="mso-bidi-font-style: normal">input1;<o:p></o:p></I></SPAN></P></TD> |
---|
1007 | <TD |
---|
1008 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1009 | vAlign=top width=264> |
---|
1010 | <P class=MsoNormal><SPAN class=SpellE><B |
---|
1011 | style="mso-bidi-font-weight: normal"><SPAN |
---|
1012 | style="FONT-SIZE: 10pt">sc_logic</SPAN></B></SPAN><B |
---|
1013 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"> |
---|
1014 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
1015 | style="FONT-SIZE: 10pt">temp<B |
---|
1016 | style="mso-bidi-font-weight: normal">;<o:p></o:p></B></SPAN></I></P> |
---|
1017 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><I |
---|
1018 | style="mso-bidi-font-style: normal"><SPAN |
---|
1019 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></I></B></P> |
---|
1020 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1021 | style="FONT-SIZE: 10pt">temp = input1.<B |
---|
1022 | style="mso-bidi-font-weight: normal">read( )</B> |
---|
1023 | ;<o:p></o:p></SPAN></I></P></TD></TR> |
---|
1024 | <TR style="mso-yfti-irow: 22"> |
---|
1025 | <TD |
---|
1026 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1027 | vAlign=top width=91> |
---|
1028 | <P class=MsoNormal><SPAN style="FONT-SIZE: 10pt">Equality |
---|
1029 | Operator<o:p></o:p></SPAN></P></TD> |
---|
1030 | <TD |
---|
1031 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1032 | vAlign=top width=300> |
---|
1033 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1034 | style="FONT-FAMILY: 'Times New Roman'">=<o:p></o:p></SPAN></I></P> |
---|
1035 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1036 | style="FONT-FAMILY: 'Times New Roman'">example: </SPAN></I><B |
---|
1037 | style="mso-bidi-font-weight: normal"><SPAN |
---|
1038 | style="FONT-FAMILY: 'Times New Roman'">if </SPAN></B><SPAN |
---|
1039 | style="FONT-FAMILY: 'Times New Roman'">( <I |
---|
1040 | style="mso-bidi-font-style: normal">ENABLE</I> = 1) <B |
---|
1041 | style="mso-bidi-font-weight: normal">then </B><o:p></o:p></SPAN></P></TD> |
---|
1042 | <TD |
---|
1043 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1044 | vAlign=top width=264> |
---|
1045 | <P class=MsoNormal style="TEXT-ALIGN: justify"><I |
---|
1046 | style="mso-bidi-font-style: normal"><SPAN |
---|
1047 | style="FONT-SIZE: 10pt">==<o:p></o:p></SPAN></I></P> |
---|
1048 | <P class=MsoNormal style="TEXT-ALIGN: justify"><I |
---|
1049 | style="mso-bidi-font-style: normal"><SPAN |
---|
1050 | style="FONT-SIZE: 10pt">example</SPAN></I><SPAN style="FONT-SIZE: 10pt">: |
---|
1051 | <B style="mso-bidi-font-weight: normal">if </B>( ENABLE == |
---|
1052 | SC_LOGIC_1);<o:p></o:p></SPAN></P></TD></TR> |
---|
1053 | <TR style="HEIGHT: 117.85pt; mso-yfti-irow: 23"> |
---|
1054 | <TD |
---|
1055 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 117.85pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1056 | vAlign=top width=91> |
---|
1057 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN |
---|
1058 | style="FONT-SIZE: 10pt">Arithmetic Operations<o:p></o:p></SPAN></P></TD> |
---|
1059 | <TD |
---|
1060 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 117.85pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1061 | vAlign=top width=300> |
---|
1062 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'">use |
---|
1063 | <SPAN class=SpellE>IEEE.std_logic_arith.all</SPAN>;<o:p></o:p></SPAN></P> |
---|
1064 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1065 | style="FONT-FAMILY: 'Times New Roman'">
<o:p></o:p></SPAN></I></P> |
---|
1066 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1067 | style="FONT-FAMILY: 'Times New Roman'">input1 = input1 + |
---|
1068 | 1;<o:p></o:p></SPAN></I></P> |
---|
1069 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1070 | style="FONT-FAMILY: 'Times New Roman'">input1 = input1<SPAN |
---|
1071 | style="mso-spacerun: yes"> </SPAN>- 1;<o:p></o:p></SPAN></I></P> |
---|
1072 | <P class=MsoPlainText><I style="mso-bidi-font-style: normal"><SPAN |
---|
1073 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></I></P></TD> |
---|
1074 | <TD |
---|
1075 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; HEIGHT: 117.85pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1076 | vAlign=top width=264> |
---|
1077 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><B |
---|
1078 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt">[no |
---|
1079 | header file for arithmetic on logic types, must convert to unsigned |
---|
1080 | integer type first]<o:p></o:p></SPAN></B></P> |
---|
1081 | <P class=MsoNormal><SPAN class=SpellE><B |
---|
1082 | style="mso-bidi-font-weight: normal"><SPAN |
---|
1083 | style="FONT-SIZE: 10pt">sc_uint</SPAN></B></SPAN><B |
---|
1084 | style="mso-bidi-font-weight: normal"><SPAN style="FONT-SIZE: 10pt"> |
---|
1085 | </SPAN></B><I style="mso-bidi-font-style: normal"><SPAN |
---|
1086 | style="FONT-SIZE: 10pt">temp<B |
---|
1087 | style="mso-bidi-font-weight: normal">;<o:p></o:p></B></SPAN></I></P> |
---|
1088 | <P class=MsoNormal><B style="mso-bidi-font-weight: normal"><I |
---|
1089 | style="mso-bidi-font-style: normal"><SPAN |
---|
1090 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></I></B></P> |
---|
1091 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1092 | style="FONT-SIZE: 10pt">temp = input1.<B |
---|
1093 | style="mso-bidi-font-weight: normal">read( )</B> |
---|
1094 | ;<o:p></o:p></SPAN></I></P> |
---|
1095 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1096 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></I></P> |
---|
1097 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1098 | style="FONT-SIZE: 10pt">temp = temp + 1; <o:p></o:p></SPAN></I></P> |
---|
1099 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1100 | style="FONT-SIZE: 10pt">temp = temp 1;<o:p></o:p></SPAN></I></P> |
---|
1101 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1102 | style="FONT-SIZE: 10pt"><o:p> </o:p></SPAN></I></P> |
---|
1103 | <P class=MsoNormal><I style="mso-bidi-font-style: normal"><SPAN |
---|
1104 | style="FONT-SIZE: 10pt">input1 = temp;<o:p></o:p></SPAN></I></P></TD></TR> |
---|
1105 | <TR style="mso-yfti-irow: 24"> |
---|
1106 | <TD |
---|
1107 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1108 | vAlign=top width=91> |
---|
1109 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN |
---|
1110 | style="FONT-SIZE: 10pt">If ... Else... Structure<o:p></o:p></SPAN></P></TD> |
---|
1111 | <TD |
---|
1112 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1113 | vAlign=top width=300> |
---|
1114 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1115 | style="FONT-FAMILY: 'Times New Roman'">if</SPAN></B><SPAN |
---|
1116 | style="FONT-FAMILY: 'Times New Roman'">(<I |
---|
1117 | style="mso-bidi-font-style: normal">E</I>=1) <B |
---|
1118 | style="mso-bidi-font-weight: normal">then</B><o:p></o:p></SPAN></P> |
---|
1119 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1120 | style="mso-spacerun: yes"> </SPAN><I |
---|
1121 | style="mso-bidi-font-style: normal">Q</I> = <I |
---|
1122 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1123 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1124 | style="mso-spacerun: yes"> </SPAN><I |
---|
1125 | style="mso-bidi-font-style: normal">Q_P</I> = <B |
---|
1126 | style="mso-bidi-font-weight: normal">not</B> <I |
---|
1127 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1128 | <P class=MsoPlainText><SPAN class=SpellE><B |
---|
1129 | style="mso-bidi-font-weight: normal"><SPAN |
---|
1130 | style="FONT-FAMILY: 'Times New Roman'">elsif</SPAN></B></SPAN><SPAN |
---|
1131 | style="FONT-FAMILY: 'Times New Roman'">(<I |
---|
1132 | style="mso-bidi-font-style: normal">E</I>=0)<B |
---|
1133 | style="mso-bidi-font-weight: normal">then</B><o:p></o:p></SPAN></P> |
---|
1134 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1135 | style="mso-spacerun: yes"> </SPAN><I |
---|
1136 | style="mso-bidi-font-style: normal">Q_P</I> = <I |
---|
1137 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1138 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1139 | style="mso-spacerun: yes"> </SPAN><I |
---|
1140 | style="mso-bidi-font-style: normal">Q</I> = <B |
---|
1141 | style="mso-bidi-font-weight: normal">not</B> <I |
---|
1142 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1143 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1144 | style="FONT-FAMILY: 'Times New Roman'">else<o:p></o:p></SPAN></B></P> |
---|
1145 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1146 | style="mso-spacerun: yes"> </SPAN><I |
---|
1147 | style="mso-bidi-font-style: normal">Q</I> = <I |
---|
1148 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1149 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1150 | style="mso-spacerun: yes"> </SPAN><I |
---|
1151 | style="mso-bidi-font-style: normal">Q_P</I> = <B |
---|
1152 | style="mso-bidi-font-weight: normal">not</B> <I |
---|
1153 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1154 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1155 | style="FONT-FAMILY: 'Times New Roman'">end if</SPAN></B><SPAN |
---|
1156 | style="FONT-FAMILY: 'Times New Roman'">;<o:p></o:p></SPAN></P> |
---|
1157 | <P class=MsoPlainText><SPAN |
---|
1158 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P></TD> |
---|
1159 | <TD |
---|
1160 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1161 | vAlign=top width=264> |
---|
1162 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1163 | style="FONT-FAMILY: 'Times New Roman'">if</SPAN></B><SPAN |
---|
1164 | style="FONT-FAMILY: 'Times New Roman'">(<I |
---|
1165 | style="mso-bidi-font-style: normal">E</I>=1) <o:p></o:p></SPAN></P> |
---|
1166 | <P class=MsoPlainText><SPAN |
---|
1167 | style="FONT-FAMILY: 'Times New Roman'">{<o:p></o:p></SPAN></P> |
---|
1168 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1169 | style="mso-spacerun: yes"> </SPAN><I |
---|
1170 | style="mso-bidi-font-style: normal">Q</I> = <I |
---|
1171 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1172 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1173 | style="mso-spacerun: yes"> </SPAN><I |
---|
1174 | style="mso-bidi-font-style: normal">Q_P</I> = <B |
---|
1175 | style="mso-bidi-font-weight: normal">~</B><I |
---|
1176 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1177 | <P class=MsoPlainText><SPAN |
---|
1178 | style="FONT-FAMILY: 'Times New Roman'">}<o:p></o:p></SPAN></P> |
---|
1179 | <P class=MsoPlainText><SPAN class=SpellE><B |
---|
1180 | style="mso-bidi-font-weight: normal"><SPAN |
---|
1181 | style="FONT-FAMILY: 'Times New Roman'">elsif</SPAN></B></SPAN><SPAN |
---|
1182 | style="FONT-FAMILY: 'Times New Roman'">(<I |
---|
1183 | style="mso-bidi-font-style: normal">E</I>=0)<o:p></o:p></SPAN></P> |
---|
1184 | <P class=MsoPlainText><SPAN |
---|
1185 | style="FONT-FAMILY: 'Times New Roman'">{<o:p></o:p></SPAN></P> |
---|
1186 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1187 | style="mso-spacerun: yes"> </SPAN><I |
---|
1188 | style="mso-bidi-font-style: normal">Q_P</I> = <I |
---|
1189 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1190 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1191 | style="mso-spacerun: yes"> </SPAN><I |
---|
1192 | style="mso-bidi-font-style: normal">Q</I> = <B |
---|
1193 | style="mso-bidi-font-weight: normal">~</B><I |
---|
1194 | style="mso-bidi-font-style: normal">D</I>;<o:p></o:p></SPAN></P> |
---|
1195 | <P class=MsoPlainText><SPAN |
---|
1196 | style="FONT-FAMILY: 'Times New Roman'">}<o:p></o:p></SPAN></P> |
---|
1197 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1198 | style="FONT-FAMILY: 'Times New Roman'">else<o:p></o:p></SPAN></B></P> |
---|
1199 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'">{<SPAN |
---|
1200 | style="mso-spacerun: yes"> </SPAN><I |
---|
1201 | style="mso-bidi-font-style: normal">Q</I> = <I |
---|
1202 | style="mso-bidi-font-style: normal">D</I>; <I |
---|
1203 | style="mso-bidi-font-style: normal">Q_P</I> = <B |
---|
1204 | style="mso-bidi-font-weight: normal">~</B><I |
---|
1205 | style="mso-bidi-font-style: normal">D</I>;}<o:p></o:p></SPAN></P></TD></TR> |
---|
1206 | <TR style="mso-yfti-irow: 25; mso-yfti-lastrow: yes"> |
---|
1207 | <TD |
---|
1208 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: windowtext 1pt solid; WIDTH: 68.55pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1209 | vAlign=top width=91> |
---|
1210 | <P class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN |
---|
1211 | style="FONT-SIZE: 10pt">Switch/Case Statement<o:p></o:p></SPAN></P></TD> |
---|
1212 | <TD |
---|
1213 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 224.9pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1214 | vAlign=top width=300> |
---|
1215 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1216 | style="FONT-FAMILY: 'Times New Roman'">case</SPAN></B><SPAN |
---|
1217 | style="FONT-FAMILY: 'Times New Roman'"> <I |
---|
1218 | style="mso-bidi-font-style: normal">ctrl</I> <B |
---|
1219 | style="mso-bidi-font-weight: normal">is</B><o:p></o:p></SPAN></P> |
---|
1220 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1221 | style="mso-spacerun: yes"> </SPAN><B |
---|
1222 | style="mso-bidi-font-weight: normal">when </B>0 => <I |
---|
1223 | style="mso-bidi-font-style: normal">f</I> <= <I |
---|
1224 | style="mso-bidi-font-style: normal">a</I>;<o:p></o:p></SPAN></P> |
---|
1225 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1226 | style="mso-spacerun: yes"> </SPAN><B |
---|
1227 | style="mso-bidi-font-weight: normal">when</B> 1 => <I |
---|
1228 | style="mso-bidi-font-style: normal">f</I> <= <I |
---|
1229 | style="mso-bidi-font-style: normal">b</I>;<o:p></o:p></SPAN></P> |
---|
1230 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1231 | style="FONT-FAMILY: 'Times New Roman'">end case</SPAN></B><SPAN |
---|
1232 | style="FONT-FAMILY: 'Times New Roman'">;<B |
---|
1233 | style="mso-bidi-font-weight: normal"><o:p></o:p></B></SPAN></P></TD> |
---|
1234 | <TD |
---|
1235 | style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: medium none; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; WIDTH: 197.95pt; PADDING-TOP: 0in; BORDER-BOTTOM: windowtext 1pt solid; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt" |
---|
1236 | vAlign=top width=264> |
---|
1237 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1238 | style="FONT-FAMILY: 'Times New Roman'">[illegal to use logic type in |
---|
1239 | switch statement must use temp variable]<o:p></o:p></SPAN></B></P> |
---|
1240 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1241 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></B></P> |
---|
1242 | <P class=MsoPlainText><SPAN class=SpellE><B |
---|
1243 | style="mso-bidi-font-weight: normal"><SPAN |
---|
1244 | style="FONT-FAMILY: 'Times New Roman'">sc_uint</SPAN></B></SPAN><SPAN |
---|
1245 | style="FONT-FAMILY: 'Times New Roman'"><2> temp = <SPAN |
---|
1246 | class=SpellE>ctrl.read</SPAN>();<o:p></o:p></SPAN></P> |
---|
1247 | <P class=MsoPlainText><SPAN |
---|
1248 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></P> |
---|
1249 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1250 | style="FONT-FAMILY: 'Times New Roman'">switch</SPAN></B><SPAN |
---|
1251 | style="FONT-FAMILY: 'Times New Roman'">(temp)<o:p></o:p></SPAN></P> |
---|
1252 | <P class=MsoPlainText><SPAN |
---|
1253 | style="FONT-FAMILY: 'Times New Roman'">{<o:p></o:p></SPAN></P> |
---|
1254 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1255 | style="mso-tab-count: 1"> |
---|
1256 | </SPAN><B style="mso-bidi-font-weight: normal">case </B>0: f = a; <B |
---|
1257 | style="mso-bidi-font-weight: normal">break</B>;<o:p></o:p></SPAN></P> |
---|
1258 | <P class=MsoPlainText><SPAN style="FONT-FAMILY: 'Times New Roman'"><SPAN |
---|
1259 | style="mso-tab-count: 1"> |
---|
1260 | </SPAN><B style="mso-bidi-font-weight: normal">case </B>1: f = b; <B |
---|
1261 | style="mso-bidi-font-weight: normal">break</B>;<o:p></o:p></SPAN></P> |
---|
1262 | <P class=MsoPlainText><SPAN |
---|
1263 | style="FONT-FAMILY: 'Times New Roman'">}<o:p></o:p></SPAN></P> |
---|
1264 | <P class=MsoPlainText><B style="mso-bidi-font-weight: normal"><SPAN |
---|
1265 | style="FONT-FAMILY: 'Times New Roman'"><o:p> </o:p></SPAN></B></P></TD></TR></TBODY></TABLE> |
---|
1266 | <P class=MsoNormal style="TEXT-ALIGN: center" |
---|
1267 | align=center><o:p> </o:p></P></DIV></BODY></HTML> |
---|