Skip to content

Conversation

@nasahlpa
Copy link
Member

Manual backport of #28929.

When executing the Verilator model of EG, setting up the GPIOs in the
`pentest_init_gpio` crashes. Hence, provide a Verilator specific GPIO
setup.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit fc9ad7a)
As the Verilator EG model does not have any analog sensors connected,
disable the config for them. Moreover, disable configuring the reset
manager for the crash dumps as we are not reading them anyways in
the Verilator FI simulation.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit a1a578c)
As GPIO9 is available in the Verilator simulation of EG, use this
pin as the trigger for the pentests.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit 181900e)
This is necessary as we are using different GPIOs for the pentest triggers
in the Verilator model.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit ac7bf01)
For fast fault injections in Verilator, the tool needs to know when a
test has completed. This commit adds a new function that raises a GPIO
pin once the test has completed.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit d76ce01)
@nasahlpa nasahlpa requested a review from a team as a code owner December 22, 2025 15:53
@nasahlpa nasahlpa requested review from engdoreis and removed request for a team December 22, 2025 15:53
When conducting FI experiments in Verilator, use a default
configuration for the device. This helps to reduce the com.
overhead allowing us to increase the performance of Verilator
FI experiments.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit fabef16)
As we are now also return the loc_alerts, add them to the expected
response.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(cherry picked from commit 8edfda0)
@nasahlpa nasahlpa force-pushed the verilator_fi_backport1 branch from 68ee3f7 to d92b81b Compare December 22, 2025 16:27
As the UART and its timeout in the eg100 branch is differently configured
as in master, we actually need to finish the init function with an UART
response. This commit adds back the sending of the SKU config over UART
to the host.

Signed-off-by: Pascal Nasahl <nasahlpa@lowrisc.org>
(commit is original to earlgrey_1.0.0)
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