mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Remove $date from .vcd files (#3779)
This commit is contained in:
parent
f4be3d5d2b
commit
6349e76abd
@ -29,7 +29,6 @@
|
||||
|
||||
#include <algorithm>
|
||||
#include <cerrno>
|
||||
#include <ctime>
|
||||
#include <fcntl.h>
|
||||
|
||||
#if defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
|
||||
@ -362,17 +361,13 @@ void VerilatedVcd::printIndent(int level_change) {
|
||||
|
||||
void VerilatedVcd::dumpHeader() {
|
||||
printStr("$version Generated by VerilatedVcd $end\n");
|
||||
printStr("$date ");
|
||||
{
|
||||
const time_t tick = time(nullptr);
|
||||
tm ticktm;
|
||||
VL_LOCALTIME_R(&tick, &ticktm);
|
||||
constexpr size_t LEN_BUF = 50;
|
||||
char buf[LEN_BUF];
|
||||
std::strftime(buf, LEN_BUF, "%c", &ticktm);
|
||||
printStr(buf);
|
||||
}
|
||||
printStr(" $end\n");
|
||||
|
||||
// Verilator used to put in a $date here. Although $date is shown in
|
||||
// IEEE examples, and it is common in VCD writers, VCD readers don't
|
||||
// seem to care about it. Thus, we omit the $date so artifacts are
|
||||
// more likely to be reproducible. If use cases show up that require
|
||||
// the $date command to be present, it could be re-added with support
|
||||
// for the SOURCE_DATE_EPOCH hook.
|
||||
|
||||
printStr("$timescale ");
|
||||
printStr(timeResStr().c_str()); // lintok-begin-on-ref
|
||||
|
@ -502,12 +502,6 @@ using ssize_t = uint32_t; ///< signed size_t; returned from read()
|
||||
# define VL_STRCASECMP strcasecmp
|
||||
#endif
|
||||
|
||||
#if defined(__MINGW32__) || defined(_MSC_VER)
|
||||
# define VL_LOCALTIME_R(timep, tmp) localtime_s((tmp), (timep))
|
||||
#else
|
||||
# define VL_LOCALTIME_R(timep, tmp) localtime_r((timep), (tmp))
|
||||
#endif
|
||||
|
||||
//=========================================================================
|
||||
// Macros controlling target specific optimizations
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user