diff options
author | Benjamin Chausse <benjamin@chausse.xyz> | 2025-05-04 11:52:56 -0400 |
---|---|---|
committer | Benjamin Chausse <benjamin@chausse.xyz> | 2025-05-04 11:52:56 -0400 |
commit | 2cc7f5bf6f16d7a8b9e78caf38dcc4986fd8bbe0 (patch) | |
tree | 2c6855377cb32630cf93c42ad2e15dce63c82408 | |
parent | a4682596963a919f543bf7692a884626120c63b7 (diff) |
LSP configurations start
-rw-r--r-- | .hdl_checker.config | 13 | ||||
-rw-r--r-- | vhdl_ls.toml | 19 |
2 files changed, 32 insertions, 0 deletions
diff --git a/.hdl_checker.config b/.hdl_checker.config new file mode 100644 index 0000000..da7b6c4 --- /dev/null +++ b/.hdl_checker.config @@ -0,0 +1,13 @@ +{ + "sources": [ + [ "src/**/*.vhd", { "library": "work", "flags": ["-2008"] } ], + [ "lib/**/*.vhd", { "library": "work", "flags": ["-2008"] } ] + ], + "vhdl": { + "flags": { + "single": ["-2008"], + "dependencies": [], + "global": [] + } + } +} diff --git a/vhdl_ls.toml b/vhdl_ls.toml new file mode 100644 index 0000000..79148f6 --- /dev/null +++ b/vhdl_ls.toml @@ -0,0 +1,19 @@ +standard = "2008" + +[libraries] +defaultlib.files = [ + "pb_APP_log_comb.sim/sim_1/behav/xsim/**/*.vhd", +] +defaultlib.exclude = [ + "**/*.vdb", # compiled binaries + "**/xsim.dir/**", # simulation-specific internal files +] + +UNISIM.files = [ + "/opt/Xilinx/Vivado/2023.1/data/vhdl/src/unisims/unisim_VCOMP.vhd", +] +UNISIM.is_third_party = true + +[lint] +unused = "error" +unnecessary_work_library = false |