Skip to content

Commit

Permalink
Merge pull request #327 from abrisco/liblib
Browse files Browse the repository at this point in the history
Add VPI to libverilator
  • Loading branch information
QuantamHD authored May 13, 2024
2 parents 206e1c5 + 75e8170 commit 95c68f7
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions dependency_support/verilator/verilator.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,16 @@ cc_library(
],
)

cc_library(
name = "vltstd",
hdrs = [
"include/vltstd/svdpi.h",
"include/vltstd/sv_vpi_user.h",
"include/vltstd/vpi_user.h",
],
strip_include_prefix = "include/vltstd",
)

cc_library(
name = "verilator",
srcs = [
Expand All @@ -285,30 +295,32 @@ cc_library(
"include/gtkwave/fstapi.h",
"include/gtkwave/lz4.h",
"include/gtkwave/wavealloca.h",
"include/verilated.cpp",
"include/verilated_fst_c.cpp",
"include/verilated_imp.h",
"include/verilated_syms.h",
"include/verilated_threads.cpp",
"include/verilated_vcd_c.cpp",
"include/verilated_vpi.cpp",
"include/verilated.cpp",
],
hdrs = [
"include/verilated.h",
"include/verilated_config.h",
"include/verilated_dpi.h",
"include/verilated_fst_c.h",
"include/verilated_funcs.h",
"include/verilated_intrinsics.h",
"include/verilated_threads.h",
"include/verilated_sc.h",
"include/verilated_sym_props.h",
"include/verilated_trace.h",
"include/verilated_threads.h",
"include/verilated_timing.h",
# Needed for verilated_vcd_c.cpp and verilated_fst_c.cpp
"include/verilated_trace_imp.h",
"include/verilated_trace.h",
"include/verilated_types.h",
"include/verilated_vcd_c.h",
"include/verilated_vpi.h",
"include/verilated.h",
"include/verilatedos.h",
"include/verilated_types.h",
"include/verilated_funcs.h",
"include/verilated_timing.h",
],
# TODO: Remove these once upstream fixes these warnings
copts = [
Expand All @@ -329,6 +341,7 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
"@net_zlib//:zlib",
":vltstd",
],
)

Expand Down

0 comments on commit 95c68f7

Please sign in to comment.