Is there a more elegant solution?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Is there a more elegant solution?

James
I got the A register logic solution but i feel like it may be a little bit of bad practice the way i solved it and was just wondering if there is a more elegant solution to selecting both the Mux before the ARegister and when to load the register itself.  This is how i did it..



as you can see i used alot of constants and it feels wierd to me i think i must be missing something to simplify this logic.  any help would be appreciated
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is there a more elegant solution?

cadet1620
Administrator
Mux(a=true, b=false, sel=c, out=x) is equivalent to Not(in=c, out=x).
Mux(a=a, b=true, sel=c, out=x) is equivalent to Or(a=a, b=c, out=x).

--Mark
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Is there a more elegant solution?

James
Awesome. Thanks again Mark you are the master of this subject :)
Loading...