Question: write a python script for the following I need a program to parse and analyze log files generated by UVM verification. i ' m providing
write a python script for the following
I need a program to parse and analyze log files generated by UVM verification.
im providing you some statements from the log file
# KERNEL: UVMINFO homerunneroutputmonitor.sv @ : uvmtesttop.env.outagt.outmon OUTPUT MON DATA WRITE Valid: data: readyout:
# KERNEL: UVMINFO homerunnerapbreferencemodel.sv @ : uvmtesttop.env.model outputref SCO DATA MATCHED :data:
# KERNEL: UVMINFO homerunneroutputdriver.sv @ : uvmtesttop.env.outagt.outdrv OUTDRV readysignal:
# KERNEL: UVMINFO homerunneroutputmonitor.sv @ : uvmtesttop.env.outagt.outmon OUTPUT MON DATA WRITE Valid: data: readyout:
# KERNEL: UVMINFO homerunnerapbreferencemodel.sv @ : uvmtesttop.env.model outputref SCO DATA MATCHED :data:
# KERNEL: UVMINFO homerunneroutputdriver.sv @ : uvmtesttop.env.outagt.outdrv OUTDRV readysignal:
# KERNEL: UVMINFO homerunneroutputmonitor.sv @ : uvmtesttop.env.outagt.outmon OUTPUT MON DATA WRITE Valid: data: readyout:
# KERNEL: UVMINFO homerunnerapbreferencemodel.sv @ : uvmtesttop.env.model outputref SCO DATA MATCHED :data:
# KERNEL: Report counts by severity
# KERNEL: UVMINFO :
# KERNEL: UVMWARNING :
# KERNEL: UVMERROR :
# KERNEL: UVMFATAL :
# KERNEL: Report counts by id
# KERNEL: OUTPUT MON
# KERNEL: OUTDRV
# KERNEL: outputref SCO
my python code should give the number of times output mon, OUTdrv etc has appears. and it should also give the line where it has occured. The code should be generic not specific for this Log file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
