Design the program counter of the TinyMicro. After reset, the program counter must have the value zero. The value will be modified at each cycle the counter is enabled. If signal jump is asserted, the program counter will be loaded with jump_address, otherwise it will be increased by one.
The number of bits of the program counter must be a parameter (N) with the default value shown in the specification.
Specification
module program_counter(pc, jump_address, enable, jump, clk, rst); parameter N=6; output [N-1:0] pc; input [N-1:0] jump_address; input enable, jump, clk, rst;
Input
Output