A Mux4 chip to implement Mux4Way16

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

A Mux4 chip to implement Mux4Way16

Jorge

I figured it was much easier to implement Mux4Way16 if I designed a Mux chip that would select from 4 inputs. I called this one Mux4.

CHIP Mux4 {
     
    IN a, b, c, d, sel[2];
    OUT out;

    PARTS:
    // ...
}

[Spoiler Warning]

Mux4Way16 becomes a matter of calling Mux4 with each array item 16 times.

[/Spoiler Warning]

My implementation looks clean and clever to me, however if anyone could share their own thoughts on Mux4Way16 implementation would be great.
Reply | Threaded
Open this post in threaded view
|

Re: A Mux4 chip to implement Mux4Way16

milythael
Jorge wrote
I figured it was much easier to implement Mux4Way16 if I designed a Mux chip that would select from 4 inputs. I called this one Mux4.
My initial implementation of Mux4Way16 was similar to yours but I eventually migrated to using Mux16s instead because the HDL is much easier to read with 3 parts than with 16.