Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct description of "En" output for Priority Encoder #378

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 29 additions & 1 deletion docs/chapter4/5muxandplex.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@ You can verify the behavior of the **Least Significant Bit (LSB)** detector circ

## Priority Encoder

The **Priority Encoder** circuit element works similarly to the **MSB and LSB **detector. There is a specific output based on the bit position of the MSB, irrespective of the lesser significant bits. An enable input is also provided to activate/deactivate the priority encoder. If there are N outputs, there will be 2^N inputs.
The **Priority Encoder** circuit element works similarly to the **MSB and LSB **detector. There is a specific output based on the bit position of the MSB, irrespective of the lesser significant bits. If there are N outputs, there will be 2^N inputs.

There is also an output labeled "EN", which is 1 when the input is valid (e.g., not all zero).

In the live circuit embedded below, a **Priority Encoder** with four single-bit inputs (T3, T2, T1 and T0 from most to least-significant bit) and two single-bit outputs (O2 and O1 from most to least-significant bit). Table 4.6 displays the truth table of the four-input priority encoder.

Expand All @@ -299,6 +301,24 @@ Table 4.6 : Truth table of a four-input priority encoder
</td>
<td><strong>O1</strong>
</td>
<td><strong>EN</strong>
</td>
</tr>
<tr>
<td>0
</td>
<td>0
</td>
<td>0
</td>
<td>0
</td>
<td>0
</td>
<td>0
</td>
<td>0
</td>
</tr>
<tr>
<td>0
Expand All @@ -313,6 +333,8 @@ Table 4.6 : Truth table of a four-input priority encoder
</td>
<td>0
</td>
<td>1
</td>
</tr>
<tr>
<td>0
Expand All @@ -327,6 +349,8 @@ Table 4.6 : Truth table of a four-input priority encoder
</td>
<td>1
</td>
<td>1
</td>
</tr>
<tr>
<td>0
Expand All @@ -341,6 +365,8 @@ Table 4.6 : Truth table of a four-input priority encoder
</td>
<td>0
</td>
<td>1
</td>
</tr>
<tr>
<td>1
Expand All @@ -355,6 +381,8 @@ Table 4.6 : Truth table of a four-input priority encoder
</td>
<td>1
</td>
<td>1
</td>
</tr>
</table>

Expand Down