Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

1
[SymbiYosys] ERROR: syntax error, unexpected OP_CAST
Author Summary
fjpolo is in SymbiYosys
Post Body

Hi, so I'm pretty new to Yosys and SymbiYosis, relatively familiar wit SystemVerilog, though I've always used Verilog. I'm trying to run a formal verification on a module (not written by me) written in SystemVerilog.

Here's my sby file:

[options]
mode prove
depth 25

[engines]
smtbmc

[script]read_verilog -sv -formal mymodule.v
prep -top mymodule


[files]
mymodule.v

So, when I run sby -f mymodule.sby I get the following error:

ERROR: syntax error, unexpected OP_CAST

At this line:

    assign noise_pal_lut = '{

For more context:

logic [10:0] noise_pal_lut[16];
    assign noise_pal_lut = '{
        11'h200, 11'h280, 11'h550, 11'h5D5,
        11'h393, 11'h74F, 11'h61B, 11'h41F,
        11'h661, 11'h1C5, 11'h6AE, 11'h093,
        11'h4FE, 11'h12D, 11'h679, 11'h392
    };

As I said, really new to this Yosys world, and couldn't find anything on this on the docu, so I don't know if it's related to Yosys or the SystemVerilog module itself.

Edit: Temporary solution

Replace code block with:

reg [10:0] noise_pal_lut [16];
initial begin
    noise_pal_lut[0] = 11'h200;
    noise_pal_lut[1] = 11'h280;
    noise_pal_lut[2] = 11'h550;
    noise_pal_lut[3] = 11'h5D5;
    noise_pal_lut[4] = 11'h393;
    noise_pal_lut[5] = 11'h74F;
    noise_pal_lut[6] = 11'h61B;
    noise_pal_lut[7] = 11'h41F;
    noise_pal_lut[8] = 11'h661;
    noise_pal_lut[9] = 11'h1C5;
    noise_pal_lut[10] = 11'h6AE;
    noise_pal_lut[11] = 11'h093;
    noise_pal_lut[12] = 11'h4FE;
    noise_pal_lut[13] = 11'h12D;
    noise_pal_lut[14] = 11'h679;
    noise_pal_lut[15] = 11'h392;
end

Author
Account Strength
100%
Account Age
4 years
Verified Email
Yes
Verified Flair
No
Total Karma
1,059
Link Karma
5
Comment Karma
835
Profile updated: 1 day ago
Posts updated: 1 month ago
Gowin User

Subreddit

Post Details

Location
We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
6 months ago