[#73220] remove name variable from ActivityVar
This commit is contained in:
parent
a45f521ca2
commit
0c0d98d4a6
|
|
@ -482,7 +482,6 @@ void VerilatedSaif::declare(uint32_t code, const char* name, const char* wirep,
|
|||
}
|
||||
|
||||
m_activity.emplace(code, ActivityVar{
|
||||
finalName,
|
||||
static_cast<uint32_t>(lsb),
|
||||
static_cast<uint32_t>(bits),
|
||||
m_activityArena.back().data() + bitsIdx
|
||||
|
|
@ -706,7 +705,7 @@ void VerilatedSaifBuffer::emitBit(uint32_t code, CData newval) {
|
|||
assert(m_owner.m_activity.count(code) && "Activity must be declared earlier");
|
||||
auto& activity = m_owner.m_activity.at(code);
|
||||
|
||||
fprintf(stdout, "Emitting bit - name: %s, code: %d, newval: %d, activity.width: %d\n", activity.name.c_str(), code, newval, activity.width);
|
||||
fprintf(stdout, "Emitting bit - code: %d, newval: %d, activity.width: %d\n", code, newval, activity.width);
|
||||
|
||||
auto& bit = activity.bits[0];
|
||||
bit.aggregateVal(m_owner.m_time - activity.lastTime, newval);
|
||||
|
|
@ -718,7 +717,7 @@ void VerilatedSaifBuffer::emitCData(uint32_t code, CData newval, int bits) {
|
|||
assert(m_owner.m_activity.count(code) && "Activity must be declared earlier");
|
||||
auto& activity = m_owner.m_activity.at(code);
|
||||
|
||||
fprintf(stdout, "Emitting char - name: %s, code: %d, newval: %d, bits: %d, activity.width: %d\n", activity.name.c_str(), code, newval, bits, activity.width);
|
||||
fprintf(stdout, "Emitting char - code: %d, newval: %d, bits: %d, activity.width: %d\n", code, newval, bits, activity.width);
|
||||
|
||||
if (bits > activity.width) {
|
||||
fprintf(stdout, "Trying to emit more bits than activity width\n");
|
||||
|
|
@ -736,7 +735,7 @@ void VerilatedSaifBuffer::emitSData(uint32_t code, SData newval, int bits) {
|
|||
assert(m_owner.m_activity.count(code) && "Activity must be declared earlier");
|
||||
auto& activity = m_owner.m_activity.at(code);
|
||||
|
||||
fprintf(stdout, "Emitting short - name: %s, code: %d, newval: %d, bits: %d, activity.width: %d\n", activity.name.c_str(), code, newval, bits, activity.width);
|
||||
fprintf(stdout, "Emitting short - code: %d, newval: %d, bits: %d, activity.width: %d\n", code, newval, bits, activity.width);
|
||||
|
||||
if (bits > activity.width) {
|
||||
fprintf(stdout, "Trying to emit more bits than activity width\n");
|
||||
|
|
@ -754,7 +753,7 @@ void VerilatedSaifBuffer::emitIData(uint32_t code, IData newval, int bits) {
|
|||
assert(m_owner.m_activity.count(code) && "Activity must be declared earlier");
|
||||
auto& activity = m_owner.m_activity.at(code);
|
||||
|
||||
fprintf(stdout, "Emitting integer - name: %s, code: %d, newval: %d, bits: %d, activity.width: %d\n", activity.name.c_str(), code, newval, bits, activity.width);
|
||||
fprintf(stdout, "Emitting integer - code: %d, newval: %d, bits: %d, activity.width: %d\n", code, newval, bits, activity.width);
|
||||
|
||||
if (bits > activity.width) {
|
||||
fprintf(stdout, "Trying to emit more bits than activity width\n");
|
||||
|
|
@ -772,7 +771,7 @@ void VerilatedSaifBuffer::emitQData(uint32_t code, QData newval, int bits) {
|
|||
assert(m_owner.m_activity.count(code) && "Activity must be declared earlier");
|
||||
auto& activity = m_owner.m_activity.at(code);
|
||||
|
||||
fprintf(stdout, "Emitting quad - name: %s, code: %d, newval: %d, bits: %d, activity.width: %d\n", activity.name.c_str(), code, newval, bits, activity.width);
|
||||
fprintf(stdout, "Emitting quad - code: %d, newval: %d, bits: %d, activity.width: %d\n", code, newval, bits, activity.width);
|
||||
|
||||
if (bits > activity.width) {
|
||||
fprintf(stdout, "Trying to emit more bits than activity width\n");
|
||||
|
|
@ -790,7 +789,7 @@ void VerilatedSaifBuffer::emitWData(uint32_t code, const WData* newvalp, int bit
|
|||
assert(m_owner.m_activity.count(code) && "Activity must be declared earlier");
|
||||
auto& activity = m_owner.m_activity.at(code);
|
||||
|
||||
fprintf(stdout, "Emitting words - name: %s, code: %d, bits: %d, activity.width: %d\n", activity.name.c_str(), code, bits, activity.width);
|
||||
fprintf(stdout, "Emitting words - code: %d, bits: %d, activity.width: %d\n", code, bits, activity.width);
|
||||
|
||||
if (bits > activity.width) {
|
||||
fprintf(stdout, "Trying to emit more bits than activity width\n");
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ struct ActivityBit {
|
|||
};
|
||||
|
||||
struct ActivityVar {
|
||||
std::string name;
|
||||
uint32_t lsb;
|
||||
uint32_t width;
|
||||
ActivityBit* bits;
|
||||
|
|
|
|||
Loading…
Reference in New Issue