From d5beb65d306116147f104f750089c660255c1eb5 Mon Sep 17 00:00:00 2001 From: Ethan Sifferman Date: Wed, 1 Oct 2025 10:19:25 -0700 Subject: [PATCH] added SIMLIB_VERILATOR_COMPAT --- techlibs/common/simlib.v | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/techlibs/common/simlib.v b/techlibs/common/simlib.v index 977b8bbf9..e0fb9fbfa 100644 --- a/techlibs/common/simlib.v +++ b/techlibs/common/simlib.v @@ -31,6 +31,14 @@ * */ +// If using Verilator, define SIMLIB_VERILATOR_COMPAT +`ifdef SIMLIB_VERILATOR_COMPAT + /* verilator lint_save */ + /* verilator lint_off DEFOVERRIDE */ + `define SIMLIB_NOCONNECT + /* verilator lint_restore */ +`endif + // -------------------------------------------------------- //* ver 2 //* title Bit-wise inverter