title: Questions about adding jal instruction to mips single cycle datapath
body: <p>I am trying to add jal instruction i understand how it works however i am having difficulty implementing  it in the hardware? </p>
  
  <p>I have this schematic and it shows that 31 connects to the mux before the register but not sure what to connect. I see that R[31] is equal to pc+8 or to the jump address however those are 32 bits while the entry to the mux is just 5 bits.</p>
  
  <p><img src="https://i.stack.imgur.com/qgIuy.jpg" alt="enter image description here"></p>