Skip to content

Yosys-Slang Parsing Errors #3169

Open
Open
@loglav03

Description

@loglav03

@petergrossmann21 I now have yosys-slang set up to be used as a frontend for yosys, and I'm experiencing some errors that I think you would expect from your experience with slang.

I ran ./run_reg_test.py vtr_reg_system_verilog -show_failures and I got the following error below:

Image

This is the section of verilog from vtr_primitives.v (in module duel_port_ram) that I think is tripping up slang:

Image

I believe slang doesn't like it whenever 'always@(posedge clk)' is used or similar rules.

I also noticed the benchmarks you provided that had error/warnings for parsing with slang also had these 'always@(posedge clk)' lines. Is this something that is fixable?

The error is coming from line 3604 in this file from yosys-slang: https://github.com/povik/yosys-slang/blob/master/src/slang_frontend.cc

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions