Skip to content

Conversation

@rishabhmitra-adi
Copy link

This brings out a port called 'debug_mode_o' from the core and at the top, signifying the state of debug mode when IBEX is connected to other peripherals dependent on the debug mode to update their operation like halt, etc. No functional changes to it.

This brings out a port called 'debug_mode_o' from the core and at the top, signifying the state of debug mode when IBEX is connected to other peripherals dependent on the debug mode to update their operation like halt, etc. No functional changes to it.
@rishabhmitra-adi rishabhmitra-adi marked this pull request as draft August 12, 2025 18:24
@rishabhmitra-adi rishabhmitra-adi marked this pull request as ready for review August 12, 2025 18:28
Copy link
Contributor

@marnovandermaas marnovandermaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind explaining what use-case you have for this? I'm unsure why a peripheral would need to know about whether the Ibex is in debug mode or not.

@rishabhmitra-adi
Copy link
Author

@marnovandermaas We have timers which need to enter the halt mode based on the processor's debug state. This port is tapped out of IBEX to feed into the timers to enable them to enter into the halt mode and exit based on the processor's state.

Copy link
Contributor

@marnovandermaas marnovandermaas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments from my end. I still don't fully understand what these timers are that you need to halt. What do the timers represent? Number of cycles passed not in debug mode?

);

// Debug Mode output
assign debug_mode_o = debug_mode;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that debug mode is already exposed when RVFI is defined. Does that suffice in your use-case?

// Debug Interface
input logic debug_req_i,
input logic debug_req_i, // Request to Core to enter debug mode
output logic debug_mode_o, // Indicates that the core has entered debug mode
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You would need to add this anywhere where ibex_top is instantiated as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants