Skip to content

Commit 0655035

Browse files
author
Eunchan Kim
committed
Add SystemVerilog Language Server artifacts
This commit is to add config files for systemverilog language server. https://github.com/dalance/svls It uses svlint(https://github.com/dalance/svlint) as a linter. It is not as powerful as verilator, ascentlint. But can be easily integrated into any IDE as svls follows Language Server Protocol (LSP). Signed-off-by: Eunchan Kim <[email protected]>
1 parent 1500b40 commit 0655035

File tree

3 files changed

+52
-0
lines changed

3 files changed

+52
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
*~
22
*.bak
3+
tags
34
__pycache__
45
opentitan-docs
56

.svlint.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright lowRISC contributors.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
# Rules for svlint, a SystemVerilog linter commonly used in editors.
6+
# The configuration matches the lowRISC SystemVerilog style guide at
7+
# https://github.com/lowRISC/style-guides/blob/master/VerilogCodingStyle.md.
8+
# See https://github.com/dalance/svlint/blob/master/RULES.md for a list of rules.
9+
10+
[option]
11+
exclude_paths = ["build.*", "sw/.*", ".sv.tpl$"]
12+
13+
[rules]
14+
case_default = true
15+
enum_with_type = true
16+
for_with_begin = true
17+
function_same_as_system_function = true
18+
function_with_automatic = true
19+
generate_for_with_label = true
20+
generate_if_with_label = true
21+
generate_keyword_forbidden = true
22+
generate_keyword_required = false
23+
genvar_declaration_in_loop = true
24+
genvar_declaration_out_loop = false
25+
if_with_begin = true
26+
inout_with_tri = false
27+
input_with_var = false
28+
interface_port_with_modport = false
29+
legacy_always = false
30+
level_sensitive_always = true
31+
loop_variable_declaration = true
32+
non_ansi_module = true
33+
output_with_var = false
34+
parameter_in_package = false
35+
priority_keyword = true
36+
tab_character = true
37+
unique0_keyword = false
38+
unique_keyword = false
39+
wire_reg = true
40+
generate_keyword = false
41+
tab_charactor = false
42+
genvar_declaration = false

.svls.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Copyright lowRISC contributors.
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
[verilog]
6+
include_paths = ["hw/ip/prim/rtl"]
7+
8+
[option]
9+
linter = true

0 commit comments

Comments
 (0)