11 oct 1999
> I have a question about the first lab; I'm not sure > how we would implement a mux, would a series of > if-else statements be an acceptable option? No. But that is a good question. If-then-elif...-else would be a FUNCTIONAL simulation. That is you are simulating what the mux does but not HOW it does it. For a gate level simulation, you need to implement the mux in terms of AND, NOT, OR, XOR and then write code like Fulladder.c The implementation of a two way mux in terms of AND OR NOT is figure B.4 on page B-9 of the text. You need to do a 3 way mux.
20 Sep 1999