SinBench
← All labs · Digital Logic Design · Free virtual lab

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 →
741488-to-3 priority encoder
Prioritythe highest input wins
Your designchecked on every row
Before you start

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.

01
Read the concepts page: encoders, priority, and the active LOW pins of the 74148.
02
Work out the table yourself. The expected column is hidden.
03
Design the two encoders with any gates. The bench checks the function.
Designed by
© 2026 Fasih Ullah Saleem. All rights reserved. · About · Terms of Use · Privacy
About this virtual lab

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.

Encoders and Priority Encoders (74148): the working 3D lab bench with its trainer and instruments
The bench of this lab, as it looks after you enter it.

What you do on this bench

  1. Wire the 74148 and record its outputs for each input pattern.
  2. Note how the enable input, the group select output and the enable output behave.
  3. Design a 4 x 2 priority encoder with a valid output and wire it.
  4. 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.