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

[LLHD][TCM] Fix CFG loops detection #8230

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AndreyVV-100
Copy link
Contributor

Hi! This PR fixes CFG loops detection. In the current algorithm confluence block is pushed to workset twice, I fixed that by memorizing control flow.

@AndreyVV-100
Copy link
Contributor Author

For context: below sv code example crashes arcilator on the current main branch.

module mod (input clk, input rst, output reg a, output reg b);
  always_ff @(posedge clk or posedge rst) begin
    if (rst)
        a <= 0;
    b <= 1;
  end
endmodule
circt-verilog mod.sv | arcilator

<stdin>:13:5: error: 'llhd.process' op has regions; not supported by ConvertToArcs

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