Not again! Mux8way16 this time

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Not again! Mux8way16 this time

The Gigabiter
I have a problem AGAIN! Seems like muxes seem to trip me up, don't they! Especially the bigger ones, there are so many bleeping internal pins that I cannot stand it! And those blasted SEL lines...cussed old blighters! Whenever there's more than one, I get 'em confused. This is in the same vein as my topic "Where did I go wrong?" which is right below this one in the list. Ive checked the code for my Mux8way16 and there are NO duplicated internal things. And stay away from berating me/the way I see things for anything....someone whose username I cannot remember cut a little too close with his judgment and hurt my feelings.

Here is the parts section of my code. I didnt change anything else.
Mux16(a=a , b=b , sel=sel[0] , out=internal1 );
    Mux16(a=c , b=d , sel=sel[0] , out=internal2 );  
    Mux16(a=internal1 , b=internal2 , sel=sel[1] , out=final1 );
      Mux16(a=a , b=b , sel=sel[0] , out=internal3 );
    Mux16(a=c , b=d , sel=sel[0] , out=internal4 );  
    Mux16(a=internal3 , b=internal4 , sel=sel[1] , out=final2 );
    Mux16(a=final1 , b=final2 , sel=sel[2] , out=out );
Hello, I am The Gigabiter(my official Net pseudonym because if you give out your real name on the Net you're hosed), also known as Major_Monogram, ElectroPaint and lightsofpahrump(and daniel-g-cs50 on GitHub but dont go poking around my repos 'cause there's nothing there). I enrolled because I was recommended the course....it may be a bit above my pay grade. I live in Pahrump, Nevada, which is basically the middle of nowhere. I like technology; electric stuff including lighting, telephones and electric clocks; and books. DONT EMAIL ME OR ASK FOR MY ADDRESS, PHYSICAL OR EMAIL!
Reply | Threaded
Open this post in threaded view
|

Re: Not again! Mux8way16 this time

WBahn
Administrator
You can certainly implement an 8Way mux using nothing by 2Way muxes, but it defeats the purpose of walking your way up the levels of abstraction. This will REALLY come back to bite you when you start implementing the RAM chips in Chapter 3. You will start by implementing a 1 bit memory cell and use that as your building block to eventually implement a memory with 262,144 bits. You do NOT want to keep going back and using small building blocks at each step. You want to use the largest blocks you have in order to make a new block that is a step up in size, and then use that one to step up again.

The authors had you implement a 4Way mux for a reason. It's because it makes implementing an 8Way mux extremely simple -- the HDL code for the 8Way mux will look almost the same as the code for the 4 Way, including the same number of parts (namely three).

As before, to find out where your implementation is going awry, you need to look at your code for what is actually there. Draw a schematic that matches the code. There are four glaring errors that should jump out at you immediately if you do that.

Hint: According to your code, what value of 'sel' is needed to get input 'g' to appear at the output?

Reply | Threaded
Open this post in threaded view
|

Re: Not again! Mux8way16 this time

The Gigabiter
I found out that I had had some inputs wired wrong. Fixed em aaaaaaaaaand still getting compare failures.
Hello, I am The Gigabiter(my official Net pseudonym because if you give out your real name on the Net you're hosed), also known as Major_Monogram, ElectroPaint and lightsofpahrump(and daniel-g-cs50 on GitHub but dont go poking around my repos 'cause there's nothing there). I enrolled because I was recommended the course....it may be a bit above my pay grade. I live in Pahrump, Nevada, which is basically the middle of nowhere. I like technology; electric stuff including lighting, telephones and electric clocks; and books. DONT EMAIL ME OR ASK FOR MY ADDRESS, PHYSICAL OR EMAIL!
Reply | Threaded
Open this post in threaded view
|

Re: Not again! Mux8way16 this time

The Gigabiter
PROBLEM SOLVED now working on DMux4way
Hello, I am The Gigabiter(my official Net pseudonym because if you give out your real name on the Net you're hosed), also known as Major_Monogram, ElectroPaint and lightsofpahrump(and daniel-g-cs50 on GitHub but dont go poking around my repos 'cause there's nothing there). I enrolled because I was recommended the course....it may be a bit above my pay grade. I live in Pahrump, Nevada, which is basically the middle of nowhere. I like technology; electric stuff including lighting, telephones and electric clocks; and books. DONT EMAIL ME OR ASK FOR MY ADDRESS, PHYSICAL OR EMAIL!
Reply | Threaded
Open this post in threaded view
|

Re: Not again! Mux8way16 this time

The Gigabiter
I finished that..and Dmux4way and Dmux8way...I submitted Project 1
Hello, I am The Gigabiter(my official Net pseudonym because if you give out your real name on the Net you're hosed), also known as Major_Monogram, ElectroPaint and lightsofpahrump(and daniel-g-cs50 on GitHub but dont go poking around my repos 'cause there's nothing there). I enrolled because I was recommended the course....it may be a bit above my pay grade. I live in Pahrump, Nevada, which is basically the middle of nowhere. I like technology; electric stuff including lighting, telephones and electric clocks; and books. DONT EMAIL ME OR ASK FOR MY ADDRESS, PHYSICAL OR EMAIL!