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

Modules with assert property fail #76

Open
7FM opened this issue Jan 10, 2025 · 2 comments
Open

Modules with assert property fail #76

7FM opened this issue Jan 10, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@7FM
Copy link

7FM commented Jan 10, 2025

A simple module like:

module top    
    (
        input logic clk,
        input logic rst,
        input logic in,
        output logic out
    );

always_ff @(posedge clk) out <= in;

dummy_assertion:
    assert property (@(posedge clk) 1'b1);

endmodule

currently fails with the following message:

-- Running command `read_slang --ignore-timing --top top test/top.sv' --

1. Executing SLANG frontend.
Top level design units:
    top

test/top.sv:11:1: error: unsynthesizable timing control (ignore with '--ignore-timing')
dummy_assertion:
^

The option --ignore-timing does not affect the outcome.

Tested against the latest commit: 1b19302

@povik povik added the bug Something isn't working label Jan 10, 2025
@povik
Copy link
Owner

povik commented Jan 10, 2025

Thanks! This is a bug at least to the degree that it's a confusing error message. Let me check

@povik
Copy link
Owner

povik commented Jan 10, 2025

Let me fix the confusing error message, but as to the assert property syntax itself, that's part of SVA which is not supported at the moment. I've opened #77 to track

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

No branches or pull requests

2 participants