Saturday, August 27, 2011

ALU - Activity 5

Made my own ALU!  Whoo!

I ended up making my own gates for a couple bits of it...  Couldn't figure out how to do it otherwise.  Should probably revisit this later to determine if there's a way to do it without resorting to that.  If HDL let you reference individual bits for internal pins, I wouldn't have had to do it.

6 comments:

  1. I thought I had to do this too, but then I discovered you have to specify internal bus segments on the output of a Chip like so:
    Chip(..., out=out, out[0..7]=outlo, out[8..15]=outhi, out[15]=outsign);

    Awesome course, I've just finished the 3rd section, even though the files were missing for RAM512, RAM4K and RAM16K.

    ReplyDelete
  2. Oh wow! Thanks for telling me! That will make rewriting some of it a lot nicer. :)

    ReplyDelete
  3. Looks like the missing files can be found at http://www1.idc.ac.il/tecs/projects/03/index.htm in case anyone else is looking and sees this.

    ReplyDelete
  4. Cool thanks! Yeah I had to find the assembler tutorial on that original site as well. Ran the tests and they were all successful as expected :)

    Almost done with the 4th section now :)

    ReplyDelete
  5. Did you end up making your own gates for the output from zx, nx, zy, ny ... etc ?

    ReplyDelete
  6. I don't remember exactly. It's been too long. Sorry!

    At any rate, Logician's advice above would have made the custom logic gates unnecessary.

    ReplyDelete