Nios® V Processor Reference Manual

ID 683632
Date 5/25/2025
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.3.2.2.2. Read Previous Shadow Register CSR (mrdpsrf)

The mrdpsrf register facilitates copying a single register from previous shadow register sets to the active one. A csrrw instruction to mrdpsrf reads the rs1 register in previous register file and stores its value in the rd register of active register file.

For example: csrrw x10, mrdpsrf, x10

Read the value of x10 register in previous register file, and store it to x10 register of active register file.