ABEL Designing a 4-to-1 Multiplexer

  • Thread starter Thread starter EvLer
  • Start date Start date
  • Tags Tags
    Multiplexer
AI Thread Summary
The discussion focuses on designing a 4-to-1 multiplexer using ABEL code. The key point is that the selector pins SEL0 and SEL1 represent a 2-bit binary code, which determines which of the four inputs (A, B, C, D) is routed to the output (MUX_OUT). Each combination of the selector pins corresponds to a specific input: 00 for A, 01 for B, 10 for C, and 11 for D. Understanding this binary representation is crucial for implementing the multiplexer correctly. The conversation clarifies how to interpret the select lines to determine the output based on the input configuration.
EvLer
Messages
454
Reaction score
0
I have this ABEL file but can't figure out where 0, 1, 2, 3 come from in "when-then" statements...

"The following ABEL code demonstrates how to implement a combinatorial multiplexer.
" 4 to 1 multiplexer design

SEL0..SEL1 pin;
A,B,C,D pin;
MUX_OUT pin istype 'com';
SEL = [SEL1,SEL0];

equations

when SEL==0 then MUX_OUT = A;
else when SEL==1 then MUX_OUT = B;
else when SEL==2 then MUX_OUT = C;
else when SEL==3 then MUX_OUT = D;

thanks beforehand.
 
Engineering news on Phys.org
SEL = SEL[1:0] are the two selector pins. The 2-bit code on those pins goes from 0 to 3, and that MUXes one of the four inputs A-D to the single output pin. When SEL[1:0] = 0b01 = 0x1, for example, input B is routed to the output. Make sense?
 
hmmm... sorta... so i have to look at the select lines' binary code to get the numbers...ok, makes sense.
But how do you know it's B? i missed that part...
 
EvLer said:
SEL0..SEL1 pin;
A,B,C,D pin;
MUX_OUT pin istype 'com';
SEL = [SEL1,SEL0];
equations
when SEL==0 then MUX_OUT = A;
else when SEL==1 then MUX_OUT = B;
else when SEL==2 then MUX_OUT = C;
else when SEL==3 then MUX_OUT = D;
(apologies for the spacing of the following table -- no font control...)
SEL[1:0] Input-->Output
====== ===========
00 A-->Output
01 B-->Output
10 C-->Output
11 D-->Output
 
Hi all I have some confusion about piezoelectrical sensors combination. If i have three acoustic piezoelectrical sensors (with same receive sensitivity in dB ref V/1uPa) placed at specific distance, these sensors receive acoustic signal from a sound source placed at far field distance (Plane Wave) and from broadside. I receive output of these sensors through individual preamplifiers, add them through hardware like summer circuit adder or in software after digitization and in this way got an...
I have recently moved into a new (rather ancient) house and had a few trips of my Residual Current breaker. I dug out my old Socket tester which tell me the three pins are correct. But then the Red warning light tells me my socket(s) fail the loop test. I never had this before but my last house had an overhead supply with no Earth from the company. The tester said "get this checked" and the man said the (high but not ridiculous) earth resistance was acceptable. I stuck a new copper earth...
Thread 'Beauty of old electrical and measuring things, etc.'
Even as a kid, I saw beauty in old devices. That made me want to understand how they worked. I had lots of old things that I keep and now reviving. Old things need to work to see the beauty. Here's what I've done so far. Two views of the gadgets shelves and my small work space: Here's a close up look at the meters, gauges and other measuring things: This is what I think of as surface-mount electrical components and wiring. The components are very old and shows how...
Back
Top