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

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

3.3.6.6. Configuring the Program Counter Manually

The Ashling* Visual Studio Code Extension provides the feature to change the processor's program counter during debugging. Use this feature with caution.

If not done carefully, changing the program counter can lead to inconsistent program states, unexpected behaviour, or crashes. Altera recommends this option for you if you have advanced knowledge and a thorough understanding of the program's logic and state.

  1. Navigate to Startup tab. Click 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 148. Set Program Counter at (hex) in Startup Tab