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

About control flow analysis #105

Open
earphonebreaker opened this issue May 25, 2022 · 0 comments
Open

About control flow analysis #105

earphonebreaker opened this issue May 25, 2022 · 0 comments

Comments

@earphonebreaker
Copy link

I tried the control flow analysis in ./example/ and I was wondering that what is the requirements of extracting an FSM for a verilog design? i.e. when I try to extract FSM from the following RTL (which is a simple DFF with asyn-reset), the result is None.

module test(
    input clk,
    input rst_n,
    input w,
    output y,
);
 
always @(posedge clk or negedge rst_n) begin
    if (!rst_n) begin
        y <= 0;
    end
    else begin
        y <= w;
    end
end
endmodule

So I suppose there must be a loop in the given FSM, such that the control flow analyzer could recognize it. Is it correct? Further more, if the analysis result is None, it means there should be no loops in the circuits. Is it correct?

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