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

Test written in veryl has the module in the ifdef line #715

Closed
wigwagwent opened this issue May 11, 2024 · 1 comment · Fixed by #717
Closed

Test written in veryl has the module in the ifdef line #715

wigwagwent opened this issue May 11, 2024 · 1 comment · Fixed by #717
Labels
bug Something isn't working

Comments

@wigwagwent
Copy link

The only example of using the test feature I could find in the documentation uses an embed(inline) to give a system verilog test. When I don't use the embed it does not generate right. I am using the 0.10.0 release.

The test I wrote base on the example. I did not look into how to use the assert if that works yet so it is commented out.

#[test(Test2)]
module Test2 {
    initial {
    	//assert (0) else $error("error");
    }
}

The generated results

`ifdef __veryl_test_test_bug_Test2__module test_bug_Test2;
    initial begin
        //assert (0) else $error("error");
    end
endmodule
`endif

It is putting the module statement in the ifdef line.

@dalance dalance added the bug Something isn't working label May 13, 2024
@dalance
Copy link
Collaborator

dalance commented May 13, 2024

This bug will be fixed by #717.
But at the moment, Veryl aims logic description not verification.
So there is no support for verification description like assert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants