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

Add memory collection related API #85

Merged

Conversation

sasataku
Copy link
Member

@sasataku sasataku commented Nov 1, 2024

This PR adds APIs related to memory correction. Along with adding an API for error count retrieval, it also introduces an API to enable or disable memory scrubbing, which is enabled by default in the FPGA IP core.

This commit adds an API to retrieve the SEM Error Correction Count
provided by the FPGA System Monitor IP core.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds the control register address of HRMEM to the MAIN
and ADCS board's DTS. This is required for feature additions such
as HRMEM's memory collection.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds an API to enable or disable ECC Error Collect. When
this feature is enabled, the HRMEM IP core performs a write-back of
the corrected data to repair the memory upon detection of a 1-bit ECC
error. This feature is enabled by default in the HRMEM IP core.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds an API to enable or disable memory scrub. When this
feature is enabled, the HRMEM IP core performs periodic reads of all
fields in the SRAM to check the written data.This feature is enabled
by default in the HRMEM IP core.

The HRMEM IP core also allows configuration of settings such as the
read cycle and behavior when the FIFO for error correction data
becomes full. However, this API only controls the enable/disable
functionality, keeping the default settings unchanged.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
This commit adds an API to retrieve the 1-bit ECC error count. The
1-bit ECC error count can be retrieved separately for counters
detected by read from memory scrub or AHB/AXI bus.

Signed-off-by: Takuya Sasaki <takuya.sasaki@spacecubics.com>
@sasataku sasataku requested a review from yashi as a code owner November 1, 2024 01:51
@sasataku sasataku merged commit f5b8a63 into spacecubics:main Nov 1, 2024
42 checks passed
@sasataku sasataku deleted the add-memory-collection-related-api branch November 1, 2024 02:38
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.

1 participant