OpenCores
Issue List
inclusion of PC register in IRF #9
Open santhuvlsi opened this issue over 8 years ago
santhuvlsi commented over 8 years ago

Hi Skordal,

From RISCV specification, we have to create a new register in IRF logic. "There is one additional user-visible register: the program counter pc holds the address of the current instruction."

-- Regards, Santhosh Kumar.

skordal commented over 8 years ago
<p>Hi,</p><p>The PC register is not a general-purpose register that is available through the register file like the other registers - that is, it cannot be used as the source or destination register of instructions; however, it is possible to obtain the value of the register using the AUIPC instruction, which is why the register is still considered to be user-visible. </p><p>Take a look at the footnote beneath the description of the AUIPC instruction in the specification for an example of how to obtain the PC value.</p><p>PS: I am currently moving this project to GitHub, so please post any further issues on <a href="https://github.com/skordal/potato/issues">https://github.com/skordal/potato/issues</a> :-)</p>

Assignee
No one
Labels
Request