Rename std.sv and add to install.

This commit is contained in:
Wilson Snyder 2022-12-03 11:31:26 -05:00
parent 675cc891a5
commit 84c7368621
4 changed files with 16 additions and 2 deletions

View File

@ -204,6 +204,7 @@ VL_INST_INC_BLDDIR_FILES = \
# Files under srcdir, instead of build time
VL_INST_INC_SRCDIR_FILES = \
include/*.[chv]* \
include/*.sv \
include/gtkwave/*.[chv]* \
include/vltstd/*.[chv]* \

View File

@ -10,6 +10,17 @@
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
//
//*************************************************************************
///
/// \file
/// \brief Verilated IEEE std:: header
///
/// This file is included automatically by Verilator when a std::mailbox or
/// std::semaphore is referenced.
///
/// This file is not part of the Verilated public-facing API.
/// It is only for internal use.
///
//*************************************************************************
// verilator lint_off DECLFILENAME
// verilator lint_off TIMESCALEMOD

View File

@ -67,7 +67,7 @@ void V3Global::readFiles() {
// Parse the std package
parser.parseFile(new FileLine{FileLine::commandLineFilename()},
V3Options::getStdPackagePath(), false,
"Cannot find std.sv containing built-in std:: definitions: ");
"Cannot find verilated_std.sv containing built-in std:: definitions:");
}
// Read libraries

View File

@ -706,7 +706,9 @@ string V3Options::getenvVERILATOR_ROOT() {
return var;
}
string V3Options::getStdPackagePath() { return getenvVERILATOR_ROOT() + "/include/std.sv"; }
string V3Options::getStdPackagePath() {
return getenvVERILATOR_ROOT() + "/include/verilated_std.sv";
}
string V3Options::getSupported(const string& var) {
// If update below, also update V3Options::showVersion()