From 2cd9b8df66c1216870cd6d67b548fdfa591583d4 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 23 Apr 2026 15:32:02 -0400 Subject: [PATCH] Fix multiple inclusion of verilated_std.sv (#7478). --- Changes | 3 ++- include/verilated_std.sv | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index 93da69f87..bc5536082 100644 --- a/Changes +++ b/Changes @@ -169,10 +169,11 @@ Verilator 5.047 devel * Fix modification of members of object with const handle (#7433). [Kamil Danecki, Antmicro Ltd.] * Fix `dist` under implication in constraints (#7440) (#7442). [Alex Solomatnikov] [Yilou Wang] * Fix std::randomize `inside` corrupting class-member queue operand (#7449) (#7456). [Yilou Wang] +* Fix module parameters not re-evaluated upon instantiation (#7463) (#7477). [em2machine] * Fix function-in-constraint internal error on bare port return (#7473) (#7480). [Yilou Wang] * Fix access to static variable inside function (#7474) (#7475). [Alex Zhou] +* Fix multiple inclusion of verilated_std.sv (#7478). [Larry Doolittle] * Fix std::randomize inside {typedef array} internal error (#7481). [Yilou Wang] -* Fix module parameters not re-evaluated upon instantiation (#7463) (#7477). [em2machine] Verilator 5.046 2026-02-28 diff --git a/include/verilated_std.sv b/include/verilated_std.sv index a8ea20692..7dfd98f31 100644 --- a/include/verilated_std.sv +++ b/include/verilated_std.sv @@ -26,6 +26,9 @@ // The following keywords from this file are hardcoded for detection in the parser: // "mailbox", "process", "randomize", "semaphore", "std" +`ifndef VERILATOR_STD_SV_ +`define VERILATOR_STD_SV_ + // verilator lint_off DECLFILENAME // verilator lint_off TIMESCALEMOD // verilator lint_off UNUSEDSIGNAL @@ -292,3 +295,5 @@ inline bool VlClassRef<`systemc_class_name>::operator<(const VlClassRef<`systemc } vl_cross_type_options_t; endpackage + +`endif // Guard