From 32dbddbd561d752d7b98864cba3176fd627ca463 Mon Sep 17 00:00:00 2001 From: zht-coder Date: Mon, 17 Jun 2024 22:29:52 +0800 Subject: [PATCH 1/2] Update xvlog.vim when using xvlog in Vivado 2019.1 for SystemVerilog, you should add the option '-sv'. --- ale_linters/verilog/xvlog.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ale_linters/verilog/xvlog.vim b/ale_linters/verilog/xvlog.vim index 98b5aae72a..f8ffd5b04d 100644 --- a/ale_linters/verilog/xvlog.vim +++ b/ale_linters/verilog/xvlog.vim @@ -2,7 +2,11 @@ " Description: Adds support for Xilinx Vivado `xvlog` Verilog compiler/checker call ale#Set('verilog_xvlog_executable', 'xvlog') -call ale#Set('verilog_xvlog_options', '') + +if &filetype == 'systemverilog' + call ale#Set('verilog_xvlog_options', '-sv') +else + call ale#Set('verilog_xvlog_options', '') function! ale_linters#verilog#xvlog#GetCommand(buffer) abort return '%e ' . ale#Pad(ale#Var(a:buffer, 'verilog_xvlog_options')) . ' %t' From a6d53d7a9fe32104ec2f1e43a5977ba730efb779 Mon Sep 17 00:00:00 2001 From: zht-coder Date: Mon, 17 Jun 2024 23:40:15 +0800 Subject: [PATCH 2/2] Update xvlog.vim --- ale_linters/verilog/xvlog.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/ale_linters/verilog/xvlog.vim b/ale_linters/verilog/xvlog.vim index f8ffd5b04d..85d45aa390 100644 --- a/ale_linters/verilog/xvlog.vim +++ b/ale_linters/verilog/xvlog.vim @@ -7,6 +7,7 @@ if &filetype == 'systemverilog' call ale#Set('verilog_xvlog_options', '-sv') else call ale#Set('verilog_xvlog_options', '') +endif function! ale_linters#verilog#xvlog#GetCommand(buffer) abort return '%e ' . ale#Pad(ale#Var(a:buffer, 'verilog_xvlog_options')) . ' %t'