I am working on a project in which i have to create 8:1 mux using 4:1 mux, I am done with the 4:1 code and then create symbol file which i used for making 8:1 mux .
4:1 code is mentioned in attachment.(If you find any error here please inform)
Problem is that when i run RTL Simulation Error occurs "WRONG OUTPUT FOR GIVEN INPUT" and i didn't get correct waveform .
Circuit Diagram is also attached!
May be i am not able to build the logic , Can someone help me in this case?
Without seeing the testbench or the waveform, it's hard to figure out what's wrong here.
If A is the enable signal, I'm not sure why you are inverting it going into the upper mux.
And your s0 line (D) is disconnected from the upper mux in the schematic.
I am New to this coding area!
PLEASE help me clear my basics!
Suppose i have a 4:1 mux and have 4bit input i0,i1,i2,i3, (s0,s1)select lines and output Y.
I use two vcc pins A and B to connect with 4:1.
I want to know that when WE USE RTL Simulation It Give random values to the input and check expected output with the current output , It give random value to A and B or i0,i1,i2,i3.
Can anyone help me design or can anyone design 8:1 mux using 4:1 mux?
If you want to design 8:1 mux using 4:1 mux, perhaps the link below may helps.
Let me know if you need further help with this circuit design.
First, you might need to check your design whether it is designed correctly. Like what Strell mentioned, the D2 wire is not connected to s0 in the first 4 mux. Is this expected? Then, check whether the testbench is write correctly.
Are you simulate using Modelsim? Seems to me, "Wrong output to input" error is generated from your testbench and most probably due to design issue, as you got an unexpected output.
You mentioned there is no wave window, have you try to simulate using the flow below, by adding Signals To Wave Window?
@RichardTanSY_Intel Ok Let's start from the beginning! Can you help mw with this project?
1- I code for 4:1 mux please check if you find something wrong! (Code complied successfully)
2-I made a symbol file for 4:1 mux and then give Two inputs A and B .
3-But when is use university program vmf method to check my design error occurs.
All screen shot are provided below.
And last this is i didn't know how to connect A and B with the 4:1 mux i just did random connections as i didn't understand the logic behind connecting 2 bits input with 4 bits input so if you also find something wrong there then please correct me.
Well, now your design doesn't make any sense at all. You have that "A" bus input and you're creating signals off of A that are lowercase letters. That doesn't make any sense. Your initial design, as I stated, was close to what you needed to do. The 4-to-1 mux itself looks fine.
And since you still have not shared the simulation testbench (the sequence of inputs into the design for the simulation), it's still not possible to figure out why you're getting an error (thought that changed design would explain the more recent problems).