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] Improve llhd-desequentialize pass #7989

Open
AndreyVV-100 opened this issue Dec 13, 2024 · 0 comments
Open

[LLHD] Improve llhd-desequentialize pass #7989

AndreyVV-100 opened this issue Dec 13, 2024 · 0 comments

Comments

@AndreyVV-100
Copy link
Contributor

Hi! I'm trying to erase llhd.process by using llhd-desequentialize pass in this code:

module Mod(input clk, input rstn, output logic b);
always @(posedge clk or negedge rstn)
begin
    if (!rstn)
        b <= 0;
    else
        b <= 1;
end
endmodule

But it thinks that there are 3 triggers and it couldn't be optimized. How can I support it? As I know, seq.compreg supports only one clock and one reset.

Btw, I found another misprint:

if (triggers[0].clocks.size() != 1 || triggers[0].clocks.size() != 1)

We should check triggers[0].kinds.size() != 1 instead of second condition.

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