Trying to use verilog to design a 4-instruction 16-bit processor including instruction registry, data memory, ALU, controller, accumulator and mux modules.
I can write each individual module ok I think, it's putting it all together that I'm having problems with. It doesn't seem to be covered anywhere in any of the books I have.
Should I put the logic in a seperate module or keep it in the top-level entity? Do I need wires in the top-level entity? Shouldn't variables specified as outputs be automatically defaulted to wires, but how come in the few examples I come across (which never seem to actually work themselves) wires are specified???
Just need to know the general approach to take. Please help!
I can write each individual module ok I think, it's putting it all together that I'm having problems with. It doesn't seem to be covered anywhere in any of the books I have.
Should I put the logic in a seperate module or keep it in the top-level entity? Do I need wires in the top-level entity? Shouldn't variables specified as outputs be automatically defaulted to wires, but how come in the few examples I come across (which never seem to actually work themselves) wires are specified???
Just need to know the general approach to take. Please help!
Last edited: