Lab 9.
Many lines in,
one code out.
On a 3D digital logic trainer with a real breadboard, work out the truth table of the 74148 priority encoder, then design your own 4 x 2 priority encoder and an octal to binary encoder.
Read the concepts first →Your details
Free to use, no sign up. Your name is only printed on your own lab sheet, and your work is saved in this browser so you can continue later. Nothing is sent to a server.
Encoders and Priority Encoders (74148)
This virtual lab is a 74148 priority encoder simulator on a 3D digital logic trainer with a real breadboard. Eight switches are the inputs, and the chip gives the 3 bit code of the highest priority input that is active, with its outputs and inputs both active low.
After working out the 74148 truth table on the board, you design your own 4 x 2 priority encoder with input 3 at the highest priority and an octal to binary encoder, then wire and test both. Pressing several input switches at once shows how the priority rule picks one input and ignores the rest.

What you do on this bench
- Wire the 74148 and record its outputs for each input pattern.
- Note how the enable input, the group select output and the enable output behave.
- Design a 4 x 2 priority encoder with a valid output and wire it.
- Design an octal to binary encoder and test all eight inputs.
On the bench
- Digital logic trainer with 16 toggle switches, 16 LEDs, pulse switches, a clock and a two digit seven segment display
- Full size breadboard with power rails and jumper wires that are wired pin by pin
- Cabinet of TTL chips with real pinouts (7400 series)
- Logic probe, multimeter and a binder of chip data sheets
Free, runs in the browser, no sign up and nothing to install. A computer with a graphics card gives the smoothest 3D view.
Questions students ask
What is a priority encoder?
An encoder that gives the code of the highest priority active input when several inputs are active at once. A plain encoder would give a wrong code in that case.
Why does the 74148 use active low signals?
Active low lines let several 74148 chips be cascaded through their enable input and enable output to make a larger encoder, and they suit switches that pull a line to ground when pressed.
What is the valid output for?
It tells the next circuit whether any input is active, so that the code 00 for input 0 is not confused with no input at all.
Read the concepts page for this lab · All Digital Logic Design virtual labs · All articles