<p>Using Case statement, design an 8 function ALU that takes 4bit inputs a and b
ID: 3628023 • Letter: #
Question
<p>Using Case statement, design an 8 function ALU that takes 4bit inputs a and b and also 3bit input signal select, and gives a 5bit output out. The ALU implements the following operations based on a 3bit input signal select. Ignore any overflow or underflow bits.</p><table border="1" cellspacing="0" cellpadding="0" width="639">
<tbody>
<tr>
<td width="320" valign="top">
<p>Select Signal</p>
</td>
<td width="320" valign="top">
<p>Function</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b000</p>
</td>
<td width="320" valign="top">
<p>Out=a-</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b001</p>
</td>
<td width="320" valign="top">
<p>Out=a+b</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b010</p>
</td>
<td width="320" valign="top">
<p>Out=a-b</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b011</p>
</td>
<td width="320" valign="top">
<p>Out=a/b</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b100</p>
</td>
<td width="320" valign="top">
<p>Out=a%b(remainder)</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b101</p>
</td>
<td width="320" valign="top">
<p>Out=a<<1</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b110</p>
</td>
<td width="320" valign="top">
<p>Out=a>>1</p>
</td>
</tr>
<tr>
<td width="320" valign="top">
<p>3’b111</p>
</td>
<td width="320" valign="top">
<p>Out=(a>b) (magnitude comparator)</p>
</td>
</tr>
</tbody>
</table>
Explanation / Answer
Get all your solution manuals here ! 4student.com@gmail.com
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.