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

move nmi to irq 32 #139

Merged
merged 4 commits into from
Aug 30, 2023
Merged

Conversation

davideschiavone
Copy link

No description provided.

@davideschiavone davideschiavone marked this pull request as draft August 16, 2023 09:21
@davideschiavone davideschiavone marked this pull request as ready for review August 16, 2023 13:45
@christian-herber-nxp
Copy link

christian-herber-nxp commented Aug 16, 2023

@szbieg: Davide would like to see SEC run on this, with the follwing contraints:

  • nmi set to 0
  • irq_fast[15] set to 0

@LeeHoff
Copy link

LeeHoff commented Aug 16, 2023

@davideschiavone will you also change cve2_top_tracing.sv to match cve2_top. We are using cve2_top_tracing in verification.

@christian-herber-nxp christian-herber-nxp linked an issue Aug 21, 2023 that may be closed by this pull request
@christian-herber-nxp christian-herber-nxp removed the request for review from szbieg August 21, 2023 07:08
@szbieg
Copy link

szbieg commented Aug 29, 2023

Beside fixing the following external input signals:

  • nmi set to 0
  • irq_fast[15] set to 0
    equivalence is confirmed after fixing the internal write data bus to constant 32'b0:
  • cs_registers_i.csr_wdata_int
  • cve2_core_imp.cs_registers_i.csr_wdata_int

@davideschiavone
Copy link
Author

Beside fixing the following external input signals:

  • nmi set to 0
  • irq_fast[15] set to 0
    equivalence is confirmed after fixing the internal write data bus to constant 32'b0:
  • cs_registers_i.csr_wdata_int
  • cve2_core_imp.cs_registers_i.csr_wdata_int

the NMI interrupt has been tested as well, when the core jumps to the NMI, it jumps to the ISR number 32, the mcause registers switches to 0x60 (MSB=1 interrupt, plus 32 in the bits 5:0) and the CSRR instruction on MCAUSE reports correctly 0x8000_0020`, i.e. interrupt 32.

@davideschiavone davideschiavone merged commit 9a79be8 into openhwgroup:main Aug 30, 2023
1 check passed
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.

[TASK] Move NMI to interrupt ID 32 from 31
4 participants