Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional Tracing #26

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Optional Tracing #26

wants to merge 2 commits into from

Conversation

HU90m
Copy link

@HU90m HU90m commented Mar 13, 2024

I made these changes for the sonata system and thought they may be valuable upstream.

I've changes ibexc_top_tracing module to match ports and parameters of ibexc_top. I've also made it possible to leave RVFI unset, in which case ibexc_top_tracing is equivalent to ibexc_top.

This allows users to use ibexc_top_tracing as a drop in replacement for ibexc_top, with the tracing only enabled when RVFI is enabled so that the same system top can be used for simulation and synthesis.

@HU90m
Copy link
Author

HU90m commented Mar 13, 2024

@microsoft-github-policy-service agree company="lowRISC"

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.

Thanks for doing this! I've made two suggestions.

rtl/ibexc_top_tracing.sv Outdated Show resolved Hide resolved

ibex_top #(
ibexc_top #(
Copy link
Contributor

Choose a reason for hiding this comment

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

This should stay ibex_top.

Copy link
Contributor

Choose a reason for hiding this comment

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

Proposed change looks good to me. BTW are you using ibexc_top or ibex_top for sonata? They both should work. Althoug, the reason I put together ibexc_top is mostly for the cheriot-safe FPGA platform which is supposed to be minimalistic.

Copy link
Contributor

Choose a reason for hiding this comment

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

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. It might be better to use the ibex_top with sonata, at least I am interested in seeing how the cheriot changes work with the security features like dummy instr and lockstep. ibexc_top was meant to for people who just want a simple and fast way to get started on CHERIoT.

Also yes please keep the module names as ibex_top* instead of ibexc_top*. No need to change things and break things in other places.

HU90m added 2 commits March 20, 2024 10:24
This change enables one to leave RVFI unset. When this is done,
ibexc_top_tracing is equivilant to ibexc_top, which is useful when using
the same module hierachy for both simulation and synthesis.
@HU90m
Copy link
Author

HU90m commented Mar 20, 2024

Thanks @marnovandermaas , just made the suggested changes

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.

Thanks for making the changes, looks good to me.

@kliuMsft
Copy link
Contributor

Can we not change top-level ports for ibexc_top_tracing? I am trying to make it consistent with ibex_top_tracing. and it breaks my environment and cheriot-safe environment 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.

3 participants