2019-10-09 10:47:26 +00:00
|
|
|
// -*- mode: C++; c-file-style: "cc-mode" -*-
|
|
|
|
//*************************************************************************
|
2023-11-11 04:25:53 +00:00
|
|
|
// DESCRIPTION: Verilator: Build DPI protected C++ and SV
|
2019-10-09 10:47:26 +00:00
|
|
|
//
|
2019-11-08 03:33:59 +00:00
|
|
|
// Code available from: https://verilator.org
|
2019-10-09 10:47:26 +00:00
|
|
|
//
|
|
|
|
//*************************************************************************
|
|
|
|
//
|
2024-01-01 08:19:59 +00:00
|
|
|
// Copyright 2003-2024 by Wilson Snyder. This program is free software; you
|
2020-03-21 15:24:24 +00:00
|
|
|
// can redistribute it and/or modify it under the terms of either the GNU
|
2019-10-09 10:47:26 +00:00
|
|
|
// Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
// Version 2.0.
|
2020-03-21 15:24:24 +00:00
|
|
|
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
2019-10-09 10:47:26 +00:00
|
|
|
//
|
|
|
|
//*************************************************************************
|
|
|
|
|
2021-03-04 02:57:07 +00:00
|
|
|
#ifndef VERILATOR_V3PROTECTLIB_H_
|
|
|
|
#define VERILATOR_V3PROTECTLIB_H_
|
2019-10-09 10:47:26 +00:00
|
|
|
|
|
|
|
#include "config_build.h"
|
|
|
|
#include "verilatedos.h"
|
|
|
|
|
|
|
|
//============================================================================
|
|
|
|
|
2020-11-19 02:32:16 +00:00
|
|
|
class V3ProtectLib final {
|
2019-10-09 10:47:26 +00:00
|
|
|
public:
|
2023-09-25 02:12:23 +00:00
|
|
|
static void protect() VL_MT_DISABLED;
|
2019-10-09 10:47:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // Guard
|