mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +02:00
committed by
Wilson Snyder
parent
248de2be2e
commit
d667b73e8d
@@ -88,6 +88,21 @@ void FileLineSingleton::fileNameNumMapDumpXml(std::ostream& os) {
|
||||
os << "</files>\n";
|
||||
}
|
||||
|
||||
void FileLineSingleton::fileNameNumMapDumpJson(std::ostream& os) {
|
||||
std::string sep = "\n ";
|
||||
os << "\"files\": {";
|
||||
for (const auto& itr : m_namemap) {
|
||||
const std::string name
|
||||
= itr.first == V3Options::getStdPackagePath() ? "<verilated_std>" : itr.first;
|
||||
os << sep << '"' << filenameLetters(itr.second) << '"' << ": {\"filename\":\"" << name
|
||||
<< '"' << ", \"realpath\":\""
|
||||
<< V3OutFormatter::quoteNameControls(V3Os::filenameRealPath(itr.first)) << '"'
|
||||
<< ", \"language\":\"" << numberToLang(itr.second).ascii() << "\"}";
|
||||
sep = ",\n ";
|
||||
}
|
||||
os << "\n }";
|
||||
}
|
||||
|
||||
FileLineSingleton::msgEnSetIdx_t FileLineSingleton::addMsgEnBitSet(const MsgEnBitSet& bitSet)
|
||||
VL_MT_SAFE_EXCLUDES(m_mutex) {
|
||||
V3LockGuard lock{m_mutex};
|
||||
|
||||
Reference in New Issue
Block a user