Rename std.sv and add to install.
This commit is contained in:
parent
675cc891a5
commit
84c7368621
|
|
@ -204,6 +204,7 @@ VL_INST_INC_BLDDIR_FILES = \
|
||||||
# Files under srcdir, instead of build time
|
# Files under srcdir, instead of build time
|
||||||
VL_INST_INC_SRCDIR_FILES = \
|
VL_INST_INC_SRCDIR_FILES = \
|
||||||
include/*.[chv]* \
|
include/*.[chv]* \
|
||||||
|
include/*.sv \
|
||||||
include/gtkwave/*.[chv]* \
|
include/gtkwave/*.[chv]* \
|
||||||
include/vltstd/*.[chv]* \
|
include/vltstd/*.[chv]* \
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,17 @@
|
||||||
// SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
// 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 DECLFILENAME
|
||||||
// verilator lint_off TIMESCALEMOD
|
// verilator lint_off TIMESCALEMOD
|
||||||
|
|
@ -67,7 +67,7 @@ void V3Global::readFiles() {
|
||||||
// Parse the std package
|
// Parse the std package
|
||||||
parser.parseFile(new FileLine{FileLine::commandLineFilename()},
|
parser.parseFile(new FileLine{FileLine::commandLineFilename()},
|
||||||
V3Options::getStdPackagePath(), false,
|
V3Options::getStdPackagePath(), false,
|
||||||
"Cannot find std.sv containing built-in std:: definitions: ");
|
"Cannot find verilated_std.sv containing built-in std:: definitions:");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Read libraries
|
// Read libraries
|
||||||
|
|
|
||||||
|
|
@ -706,7 +706,9 @@ string V3Options::getenvVERILATOR_ROOT() {
|
||||||
return var;
|
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) {
|
string V3Options::getSupported(const string& var) {
|
||||||
// If update below, also update V3Options::showVersion()
|
// If update below, also update V3Options::showVersion()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue