|
Hello! I'm very lost on the CPU and have come to ask some questions/for some recommendations!
What are the A register and ALU doing when the instruction is an A-instruction? We already know what 15 bit address we are going to use/what we are going to output right off the bat when it is an A-instruction, unless I'm mistaken. The use of the ALU makes some more sense to me when it is a C-instruction since the ALU is helping us parse what needs to be output and what address our program counter should be looking at.
Or am I misunderstanding what is going on with the A-instruction/ALU?
Similarly, I'm confused with the program counter, I didn't struggle in building it but I'm struggling with the idea of creating some logic that has it outputting what we want? I believe wiring the in reset to the out reset might be correct. But when would we ever just load the currently loaded address? If we aren't jumping, shouldn't we always be going to the next aka incremented instruction? (Assuming we're not resetting of course.)
I do not have the textbook and I've been using the presentation slides/diagrams/videos (I've rewatched unit 5.3 and unit 4.4 the most, as well as looking back on the previous chips I built and their specifications.)
Any advice on the questions above or additional resources/concepts that I might be missing would be very appreciated, I've been stuck on the CPU alone for over a week and am starting to find myself just frustrated but I don't want to proceed without building it and understanding it.
|