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

spr_ack is high when there is no mtspr/mfspr instructions #136

Open
Harshitha172000 opened this issue Aug 6, 2021 · 2 comments
Open

spr_ack is high when there is no mtspr/mfspr instructions #136

Harshitha172000 opened this issue Aug 6, 2021 · 2 comments

Comments

@Harshitha172000
Copy link
Member

In the control module, signal spr_access is driven by the spr_group which is dependent on the address computed in the execution stage i.e., ctrl_alu_result_i. When we don’t have spr instructions but the last five bits of address ctrl_alu_result_i match to any of SPR groups then spr_access will get updated. Due to which spr_access_valid and spr_ack are driven when there are no mtspr/mfspr opcode signals.

Assertion:

always @(posedge clk)
   if ($onehot(spr_access) && !$past(rst) && f_past_valid)
      assert (ctrl_op_mtspr_i | ctrl_op_mfspr_i);

Trace:
image

@stffrdhrn
Copy link
Member

can you put a link to the code, or mention the module where this is happening?

@Harshitha172000
Copy link
Member Author

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

2 participants