PCCounter.v 237 B

1234567891011
  1. module PCCounter(
  2. input CLK, RST,
  3. input [31:0] PCNext, //nextstate
  4. output reg [31:0] PC //current state
  5. );
  6. always @ (posedge CLK or posedge RST) //CS
  7. if (RST)
  8. PC <= 0;
  9. else PC <= PCNext;
  10. endmodule