Skip to content
New issue

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

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

Already on GitHub? # to your account

Update neorv32_cpu_control.vhd #1128

Merged
merged 4 commits into from
Dec 29, 2024
Merged

Update neorv32_cpu_control.vhd #1128

merged 4 commits into from
Dec 29, 2024

Conversation

mahdi259
Copy link
Contributor

Hi,
This change enables 64-bit counter to be implemented.

The former formula zeros hpm_cnt_hi_width_c when HPM_CNT_WIDTH equals to 64 and the actual bit width of implemented counter is 32 in that case. Thanks

Hi, 
This change enables 64-bit counter to be implemented.

The former formula zeros hpm_cnt_hi_width_c when HPM_CNT_WIDTH equals to 64 and the actual bit width of implemented counter is 32 in that case.
Thanks

Signed-off-by: mahdi259 <73544027+mahdi259@users.noreply.github.com>
@stnolting
Copy link
Owner

Oh, thanks for the hint! I'll check that!

The rather complex formula we were using here was menat to avoid a negative value for the high-counter width. But I cannot remeber why this was an isuue. 🙈

@stnolting stnolting self-assigned this Dec 29, 2024
@stnolting stnolting added the HW Hardware-related label Dec 29, 2024
@mahdi259
Copy link
Contributor Author

You're welcome.

@stnolting stnolting added the bug Something isn't working as expected label Dec 29, 2024
@stnolting
Copy link
Owner

Indeed, this is a bug. Thanks for fixing!

@stnolting stnolting merged commit dc4e7e5 into stnolting:main Dec 29, 2024
2 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working as expected HW Hardware-related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants