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

cxxrtl hangs on a loop #4225

Open
gatecat opened this issue Feb 21, 2024 · 3 comments
Open

cxxrtl hangs on a loop #4225

gatecat opened this issue Feb 21, 2024 · 3 comments

Comments

@gatecat
Copy link
Member

gatecat commented Feb 21, 2024

Version

Yosys 0.38+75 (git sha1 01d6c12, gcc 13.2.1 -fPIC -Os)

On which OS did this happen?

Linux

Reproduction Steps

Make some Verilog with a typo like assign x = x;

module top;
assign x = x;
endmodule
yosys -p "hierarchy -top top; write_cxxrtl" loop.v

Expected Behavior

Either it can be implemented with delta cycles, or an error.

Actual Behavior

write_cxxrtl hangs forever after:

Module `top' contains feedback arcs through wires:
  x
@gatecat gatecat added pending-verification This issue is pending verification and/or reproduction cxxrtl labels Feb 21, 2024
@povik
Copy link
Member

povik commented Feb 21, 2024

For a loop like this to be caught by check we need the change of behavior from #3965.

@whitequark whitequark added bug and removed pending-verification This issue is pending verification and/or reproduction labels Feb 21, 2024
@whitequark
Copy link
Member

Either it can be implemented with delta cycles, or an error.

Yeah, I agree.

@whitequark
Copy link
Member

For a loop like this to be caught by check we need the change of behavior from #3965.

I think we don't necessarily have to require check here, this should be solvable on CXXRTL side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants