ALU zx,nx,zy,ny problem

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

ALU zx,nx,zy,ny problem

AntonioCS
This post was updated on .
Hey!

I am trying to implement the alu and have come up with thie code for the zx,nx,zy,ny part

<< HDL code >>

Am I doing anything wrong?

Also, the x & y means And16 right?

I am sorry if this seems foolish I have stopped for a while and am now trying to come back to all this :(

Edit: Removed code
Reply | Threaded
Open this post in threaded view
|

Re: ALU zx,nx,zy,ny problem

cadet1620
Administrator
Yes, that's the idea.

Please edit your post to remove the good code so that other can discover it for themselves.  Feel free to PM me if you want to discuss details.

--Mark
Reply | Threaded
Open this post in threaded view
|

Re: ALU zx,nx,zy,ny problem

AntonioCS
Thanks for the quick reply.

If what I am doing is correct I don't understand I the ALU code keeps failing :(

I guess I'll work on it a bit to try to see what is wrong.

Thanks again
Reply | Threaded
Open this post in threaded view
|

Re: ALU zx,nx,zy,ny problem

cadet1620
Administrator
If you think that you still have conceptual problems with the ALU, there's a nice worksheet to help.

It can also be problematic to get the status flags debugged when the computation is not yet working. These test files will check only the computation: ALU-nostat.tst, ALU-nostat.cmp. Once ALU-nostat.tst passes you can use ALU.tst to check the status flags.

--Mark