Remove VerilatedVcd::m_evcd and related dead code.
The legacy code that was using this was removed earlier, and m_evcd was constant false, so removed.
This commit is contained in:
parent
f8b7981be4
commit
3a002b6cf2
|
|
@ -261,11 +261,6 @@ void VerilatedVcd::close() VL_MT_SAFE_EXCLUDES(m_mutex) {
|
||||||
// This function is on the flush() call path
|
// This function is on the flush() call path
|
||||||
const VerilatedLockGuard lock{m_mutex};
|
const VerilatedLockGuard lock{m_mutex};
|
||||||
if (!isOpen()) return;
|
if (!isOpen()) return;
|
||||||
if (m_evcd) {
|
|
||||||
printStr("$vcdclose ");
|
|
||||||
printQuad(timeLastDump());
|
|
||||||
printStr(" $end\n");
|
|
||||||
}
|
|
||||||
closePrev();
|
closePrev();
|
||||||
// closePrev() called Super::flush(), so we just
|
// closePrev() called Super::flush(), so we just
|
||||||
// need to shut down the tracing thread here.
|
// need to shut down the tracing thread here.
|
||||||
|
|
@ -515,20 +510,12 @@ void VerilatedVcd::declare(uint32_t code, const char* name, const char* wirep, b
|
||||||
|
|
||||||
// Print reference
|
// Print reference
|
||||||
std::string decl = "$var ";
|
std::string decl = "$var ";
|
||||||
if (m_evcd) {
|
|
||||||
decl += "port";
|
|
||||||
} else {
|
|
||||||
decl += wirep; // usually "wire"
|
decl += wirep; // usually "wire"
|
||||||
}
|
|
||||||
|
|
||||||
constexpr size_t bufsize = 1000;
|
constexpr size_t bufsize = 1000;
|
||||||
char buf[bufsize];
|
char buf[bufsize];
|
||||||
VL_SNPRINTF(buf, bufsize, " %2d ", bits);
|
VL_SNPRINTF(buf, bufsize, " %2d ", bits);
|
||||||
decl += buf;
|
decl += buf;
|
||||||
if (m_evcd) {
|
|
||||||
VL_SNPRINTF(buf, bufsize, "<%u", code);
|
|
||||||
decl += buf;
|
|
||||||
} else {
|
|
||||||
// Add string code to decl
|
// Add string code to decl
|
||||||
char* const endp = writeCode(buf, code);
|
char* const endp = writeCode(buf, code);
|
||||||
*endp = '\0';
|
*endp = '\0';
|
||||||
|
|
@ -546,7 +533,6 @@ void VerilatedVcd::declare(uint32_t code, const char* name, const char* wirep, b
|
||||||
entryp[length + !isBit] = '\n'; // Replace '\0' with line termination '\n'
|
entryp[length + !isBit] = '\n'; // Replace '\0' with line termination '\n'
|
||||||
// Set length of suffix (used to increment write pointer)
|
// Set length of suffix (used to increment write pointer)
|
||||||
entryp[VL_TRACE_SUFFIX_ENTRY_SIZE - 1] = !isBit + length + 1;
|
entryp[VL_TRACE_SUFFIX_ENTRY_SIZE - 1] = !isBit + length + 1;
|
||||||
}
|
|
||||||
decl += " ";
|
decl += " ";
|
||||||
decl += basename;
|
decl += basename;
|
||||||
if (array) {
|
if (array) {
|
||||||
|
|
|
||||||
|
|
@ -49,7 +49,6 @@ private:
|
||||||
VerilatedVcdFile* m_filep; // File we're writing to
|
VerilatedVcdFile* m_filep; // File we're writing to
|
||||||
bool m_fileNewed; // m_filep needs destruction
|
bool m_fileNewed; // m_filep needs destruction
|
||||||
bool m_isOpen = false; // True indicates open file
|
bool m_isOpen = false; // True indicates open file
|
||||||
bool m_evcd = false; // True for evcd format
|
|
||||||
std::string m_filename; // Filename we're writing to (if open)
|
std::string m_filename; // Filename we're writing to (if open)
|
||||||
uint64_t m_rolloverMB = 0; // MB of file size to rollover at
|
uint64_t m_rolloverMB = 0; // MB of file size to rollover at
|
||||||
int m_modDepth = 0; // Depth of module hierarchy
|
int m_modDepth = 0; // Depth of module hierarchy
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue