Ashling* RiscFree* Integrated Development Environment (IDE) for Altera® FPGAs User Guide

ID 730783
Date 4/11/2025
Public
Document Table of Contents

2.3.5.6. Configuring Program Counter Manually

The RiscFree* IDE for Altera® FPGAs provide the feature to change the processor's program counter during debugging. Note that, this feature must be used with caution.

Changing the program counter can lead to inconsistent program states, unexpected behaviour, or crashes if not done carefully. It is generally recommended for advanced users who have a deep understanding of the program's logic and state.

  1. Navigate to Startup tab > Run Commands > Set program counter at (hex).
  2. Provide any instruction memory address in HEX.
  3. You may refer to the objdump file to locate the interested instruction memory address.
  4. Start debugging, and the processor jumps to the specified instruction memory address.
Figure 41. Set program counter at (hex) in Startup tab