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

Housekeeping SPI should force hkspi_disable to zero on a digital reset. #550

Open
RTimothyEdwards opened this issue Aug 22, 2024 · 1 comment

Comments

@RTimothyEdwards
Copy link
Contributor

At around line 1483:

if (wb_rst_i == 1'b1) begin
    hkspi_disable <= 1'b0;
end

This prevents the housekeeping SPI from going into an uncommunicative state due to setting the disable bit in software. If the above correction is not done, then the disable state can only be undone by a power-on-reset.

@RTimothyEdwards
Copy link
Contributor Author

The better method is just to change the definition of spi_is_enabled:

wire spi_is_enabled = ~hkspi_disable | wb_rst_i;

This forces the SPI to be enabled whenever the digital reset (button) is active.

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

No branches or pull requests

1 participant