Designing a Circuit with Decoders and Muxes for Aisle Sale Indication

  • Thread starter Thread starter mossfan563
  • Start date Start date
  • Tags Tags
    Decoder
Click For Summary

Discussion Overview

The discussion revolves around designing a circuit for indicating sales in a store with 8 aisles using decoders and multiplexers (muxes). Participants explore the requirements of the circuit, including the use of a 3-bit switch and a single-bit switch for enabling the sale indication lights above each aisle.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant suggests using a 3-bit 8 to 1 mux connected to a 3 to 8 decoder but expresses uncertainty about how the mux output connects to the decoder.
  • Another participant proposes the use of a priority encoder for the 8 to 3 function but is informed that encoders cannot be used, only decoders and muxes.
  • A participant questions the feasibility of using a mux for the 8 to 1 conversion and suggests creating a truth table to analyze the outputs needed for the 3-bit code.
  • One participant proposes that the circuit could be simplified to a single package by connecting the 3-bit output directly to a decoder and using the other switch for the enable input.
  • Another participant acknowledges the correction regarding the switch's output and agrees with the simplified approach of using a decoder with enable logic.

Areas of Agreement / Disagreement

There is some agreement on the use of a decoder and enable logic, but uncertainty remains regarding the initial approach of using a mux and how to properly implement the circuit design.

Contextual Notes

Participants discuss various configurations and the limitations of using certain components, such as the restriction against encoders and the need for a clear understanding of how to connect the mux and decoder.

Who May Find This Useful

This discussion may be useful for individuals interested in circuit design, particularly those focusing on digital logic design involving decoders and multiplexers.

mossfan563
Messages
54
Reaction score
0
There's a store owner who has 8 aisles numbered 0-7. Each aisle has a light above it to indicate if that aisle has a sale. Only one light can be on at a time. The store owner has a switch that can be set from 0-7 and has a 3-bit output representing the switch position in binary. A second switch can be set up or down and has a single bit output that is 1 when the switch is up and 0 when down to indicate that no aisles have a sale. Design a circuit using decoders and muxes.

From what I read, I was thinking of using an 3-bit 8 to 1 mux to a 3 to 8 decoder. The only reason I'm hesitant because I'm not sure how the output of the mux goes to the decoder. Does that sound feasible? If not, what would work better?
 
Physics news on Phys.org
mossfan563 said:
There's a store owner who has 8 aisles numbered 0-7. Each aisle has a light above it to indicate if that aisle has a sale. Only one light can be on at a time. The store owner has a switch that can be set from 0-7 and has a 3-bit output representing the switch position in binary. A second switch can be set up or down and has a single bit output that is 1 when the switch is up and 0 when down to indicate that no aisles have a sale. Design a circuit using decoders and muxes.

From what I read, I was thinking of using an 3-bit 8 to 1 mux to a 3 to 8 decoder. The only reason I'm hesitant because I'm not sure how the output of the mux goes to the decoder. Does that sound feasible? If not, what would work better?

For the 8 --> 3 function, can you use a priority encoder? You can use Google Images for find more info it you aren't familiar with them.
 
berkeman said:
For the 8 --> 3 function, can you use a priority encoder? You can use Google Images for find more info it you aren't familiar with them.

No, I can't use a priority encoder. I have to start with basics. I can't use encoders. Only decoders and multiplexers.
 
mossfan563 said:
No, I can't use a priority encoder. I have to start with basics. I can't use encoders. Only decoders and multiplexers.

Hmm. Well, going from 8-->1 via a MUX isn't going to help you make a 3-bit input for the output demux.

[STRIKE]I'm not sure this will work, but think of a N --> 1 MUX as an OR gate. Write out a truth table for forming the 3 bit code for the 8-position switch, and see if you could use the OR function to make each of the 3 output bits from the 8 input bits...[/STRIKE]

EDITING...

Okay, I think the best hint I can give you is to make that truth table, and think about how you can use a MUX per desired output bit in the 3-bit code. Look at the table and see how many "1"s contribute to making a "1" for each bit. Does that suggest what kind of MUX(s) to use?
 
Last edited:
Isn't this just a one package circuit? Run given three bits into a decoder and use the other switch for the EN input? Am I missing something?
 
LCKurtz said:
Isn't this just a one package circuit? Run given three bits into a decoder and use the other switch for the EN input? Am I missing something?

Oh yeah, I think you're right. I misread the OP and thought it was SP8T switch. But re-reading it, you are correct that the switch has a 3-bit output, so all he needs is the 3:8 decoder and some enable logic... Thanks for catching that.

The store owner has a switch that can be set from 0-7 and has a 3-bit output representing the switch position
 
Thank you guys! I really appreciate it!
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
19K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 6 ·
Replies
6
Views
18K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 1 ·
Replies
1
Views
6K
Replies
2
Views
2K
  • · Replies 25 ·
Replies
25
Views
12K
  • · Replies 1 ·
Replies
1
Views
4K