efabless / openlane2

The next generation of OpenLane, rewritten from scratch with a modular architecture
https://openlane2.readthedocs.io/
Apache License 2.0
194 stars 37 forks source link

Passing custom argument to Yosys's GHDL #450

Open leonidas213 opened 5 months ago

leonidas213 commented 5 months ago

Description

When i try to build vhdl files with a synopsys library, Yosys gives me this message and throw an error.

  1. Executing GHDL.
    /home/runner/work/tt06-vhdl-demo/tt06-vhdl-demo/src/tt_um_smallcpu.vhdl:998:10: use of synopsys package "std_logic_unsigned" needs the -fsynopsys option
    USE ieee.std_logic_unsigned.all;
    ^
    /home/runner/work/tt06-vhdl-demo/tt06-vhdl-demo/src/tt_um_smallcpu.vhdl:1022:10: use of synopsys package "std_logic_unsigned" needs the -fsynopsys option
    USE ieee.std_logic_unsigned.all;
    ^
    ERROR: vhdl import failed.
    ERROR: TCL interpreter returned an error: Yosys command produced an error
    [20:06:58] ERROR 2. Executing GHDL. step.py:1170 /home/runner/work/tt06-vhdl-demo/tt06-vhdl-demo
    /src/tt_um_smallcpu.vhdl:998:10: use of
    synopsys package "std_logic_unsigned" needs the
    -fsynopsys option
    USE ieee.std_logic_unsigned.all;
    ^
    /home/runner/work/tt06-vhdl-demo/tt06-vhdl-demo
    /src/tt_um_smallcpu.vhdl:1022:10: use of
    synopsys package "std_logic_unsigned" needs the
    -fsynopsys option
    USE ieee.std_logic_unsigned.all;
    ^
    ERROR: vhdl import failed.
    ERROR: TCL interpreter returned an error: Yosys
    command produced an error

normally i use GHDL with these arguments "--std=08 --ieee=synopsys" . So it would be nice if there is a way to pass these arguments to Yosys's GHDL.

Proposal

No response