Skip to content

Commit

Permalink
Merge pull request #386 from hzeller/feature-20250227-verilator-update
Browse files Browse the repository at this point in the history
Update Verilator to 5.0.34
  • Loading branch information
hzeller authored Feb 28, 2025
2 parents b3ade33 + a026af5 commit 11fc268
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions dependency_support/verilator/verilator.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")
load("@rules_hdl//dependency_support/com_github_westes_flex:flex.bzl", "genlex")
load(
"@rules_hdl//dependency_support/verilator/private:verilator_utils.bzl",
"current_flex_lexer_header",
"verilator_astgen",
"verilator_bisonpre",
"verilator_build_template",
"verilator_flexfix",
"verilator_version",
"current_flex_lexer_header"
)

package(default_visibility = ["//visibility:private"])
Expand Down Expand Up @@ -193,13 +193,16 @@ verilator_bisonpre(

cc_library(
name = "verilatedos",
hdrs = ["include/verilatedos.h"],
hdrs = [
"include/verilatedos.h",
"include/verilatedos_c.h",
],
strip_include_prefix = "include/",
)

current_flex_lexer_header(
name = "current_flex_lexer_header",
out = "flex/src/FlexLexer.h"
out = "flex/src/FlexLexer.h",
)

cc_library(
Expand Down Expand Up @@ -310,7 +313,6 @@ cc_library(
"include/verilated_vcd_c.h",
"include/verilated_vpi.h",
"include/verilated.h",
"include/verilatedos.h",
],
# TODO: Remove these once upstream fixes these warnings
copts = [
Expand All @@ -332,6 +334,7 @@ cc_library(
deps = [
"@net_zlib//:zlib",
":vltstd",
":verilatedos",
],
)

Expand Down
6 changes: 3 additions & 3 deletions dependency_support/verilator/verilator.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def verilator():
http_archive,
name = "verilator",
build_file = Label("//dependency_support/verilator:verilator.BUILD.bazel"),
urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.022.tar.gz"],
sha256 = "3c2f5338f4b6ce7e2f47a142401acdd18cbf4c5da06092618d6d036c0afef12d",
strip_prefix = "verilator-5.022",
urls = ["https://github.com/verilator/verilator/archive/refs/tags/v5.034.tar.gz"],
sha256 = "002da98e316ca6eee40407f5deb7d7c43a0788847d39c90d4d31ddbbc03020e8",
strip_prefix = "verilator-5.034",
)

0 comments on commit 11fc268

Please sign in to comment.