Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 673 Bytes

15_Program_Counter.md

File metadata and controls

34 lines (30 loc) · 673 Bytes

Program Counter

Contents

Inputs

Name Bits wide
clk 1-bit
rstn 1-bit
npc 32-bits
pc_en 1-bit

Outputs

Name Bits wide
pc 32-bits

Functionality

Registers

  • 32-bit pc register

On posedge clk

  • pc
    State Output
    pc_en == 0 pc stays the same
    pc_en == 1 pc = npc

Asynchronous active low reset

  • pc value resets to 0