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

Feature/unroll csfr clusters #22

Merged
merged 2 commits into from
Jun 13, 2024
Merged

Feature/unroll csfr clusters #22

merged 2 commits into from
Jun 13, 2024

Conversation

AthiraRamakrishna
Copy link
Contributor

@AthiraRamakrishna AthiraRamakrishna commented May 22, 2024

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

Support unroll of clusters for csfr peripherals
The cluster name has been prefixed because there are clusters with register of same name, without the prefixing it would result in compilation errors E.g The Clusters TPS and FPU_TRAP have the register with the name CON.
Naming-Index convention followed:
If Cluster has dim=1, reg has dim=1 then {clustername}_{regname} E.g tps_extim_exit_cval for EXIT_CVAL register of TPS_EXTIM Cluster
If Cluster has dim>1, reg has dim=1 then {clustername}_{regname}{clusterindex}E.g cpr_cpry_u0 for CPRy_U register of CPR[%s] Cluster
If Cluster has dim=1, reg has dim>1 then {clustername}_{regname}{regindex} E.g tps_timer0 for TIMER[%s] register of TPS Cluster
If Cluster has dim>1, reg has dim>1 then {clustername}_{regname}_{clusterindex}_{regindex} (This condition not there currently for any of the clusters in the tricore svd)

The cluster name has been prefixed because there are clusters with same register names, without the prefixing it would result in compilation errors E.g The Clusters TPS and FPU_TRAP have the same register name CON.
Naming-Index convention followed:
If Cluster has dim=1, reg =1 then <clustername>_<regname> E.g tps_extim_exit_cval  for EXIT_CVAL register of TPS_EXTIM Cluster
If Cluster has dim>1, reg =1 then <clustername>_<regname><clusterindex> E.g cpr_cpry_u0  for  CPRy_U register of CPR[%s] Cluster
If Cluster has dim=1, reg >1 then <clustername>_<regname><regindex> E.g tps_timer0 for TIMER[%s] register of TPS Cluster
If Cluster has dim>1, reg >1 then <clustername>_<regname>_<clusterindex>_<regindex> (This condition not there currently for any of the clusters in the tricore svd)
templates/rust/macros.tera Outdated Show resolved Hide resolved
templates/rust/macros.tera Outdated Show resolved Hide resolved
@pellico pellico added this to the Release 0.2.0 milestone Jun 12, 2024
@AthiraRamakrishna AthiraRamakrishna dismissed andreasWallnerIFX’s stale review June 13, 2024 09:54

The merge-base changed after approval.

@AthiraRamakrishna AthiraRamakrishna dismissed andreasWallnerIFX’s stale review June 13, 2024 11:22

The merge-base changed after approval.

@pellico pellico removed the request for review from manczak-ifx June 13, 2024 11:23
pellico
pellico previously approved these changes Jun 13, 2024
@AthiraRamakrishna AthiraRamakrishna dismissed pellico’s stale review June 13, 2024 11:31

The merge-base changed after approval.

pellico
pellico previously approved these changes Jun 13, 2024
@AthiraRamakrishna AthiraRamakrishna dismissed pellico’s stale review June 13, 2024 12:07

The merge-base changed after approval.

@pellico pellico closed this Jun 13, 2024
@pellico pellico reopened this Jun 13, 2024
@pellico pellico merged commit 1b2e19f into main Jun 13, 2024
14 checks passed
@pellico pellico deleted the feature/unroll_csfr_clusters branch June 13, 2024 12:17
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.

Support unroll of cluster for csfr peripherals
3 participants