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

[rtl] clean-up simulation-only pragmas #956

Merged
merged 4 commits into from
Jul 20, 2024
Merged

[rtl] clean-up simulation-only pragmas #956

merged 4 commits into from
Jul 20, 2024

Conversation

stnolting
Copy link
Owner

  • remove redundant sim-only pragmas in package file
  • UART: exclude all textio stuff for synthesis

Different vendors use different pragams for excluding simulation-only code: https://insights.sigasi.com/tech/list-known-vhdl-metacomment-pragmas/

However, this “is this a simulation?” identifier has proven itself across multiple platforms:

  -- Check if we're inside the Matrix -------------------------------------------------------
  -- -------------------------------------------------------------------------------------------
  constant is_simulation_c : boolean := false -- seems like we're on real hardware
-- pragma translate_off
-- RTL_SYNTHESIS OFF
  or true -- this MIGHT be a simulation
-- RTL_SYNTHESIS ON
-- pragma translate_on
  ;

@stnolting stnolting added HW Hardware-related cleanup Clean-up the codebase labels Jul 20, 2024
@stnolting stnolting self-assigned this Jul 20, 2024
@stnolting stnolting marked this pull request as ready for review July 20, 2024 11:55
@stnolting stnolting merged commit 3ada741 into main Jul 20, 2024
10 checks passed
@stnolting stnolting deleted the sim_only_pragma branch July 20, 2024 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Clean-up the codebase HW Hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant