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.
i'm providing you some statements from the log file
# KERNEL: UVM_INFO /home/runner/output_monitor.sv(33) @ 1425: uvm_test_top.env.out_agt.out_mon [OUTPUT MON] DATA WRITE Valid:0 data:38 ready_out:1
# KERNEL: UVM_INFO /home/runner/apb_reference_model.sv(61) @ 1425: uvm_test_top.env.model [output_ref SCO] DATA MATCHED :data:38
# KERNEL: UVM_INFO /home/runner/output_driver.sv(35) @ 1435: uvm_test_top.env.out_agt.out_drv [OUT_DRV] ready_signal:1
# KERNEL: UVM_INFO /home/runner/output_monitor.sv(33) @ 1455: uvm_test_top.env.out_agt.out_mon [OUTPUT MON] DATA WRITE Valid:0 data:91 ready_out:1
# KERNEL: UVM_INFO /home/runner/apb_reference_model.sv(61) @ 1455: uvm_test_top.env.model [output_ref SCO] DATA MATCHED :data:91
# KERNEL: UVM_INFO /home/runner/output_driver.sv(35) @ 1465: uvm_test_top.env.out_agt.out_drv [OUT_DRV] ready_signal:1
# KERNEL: UVM_INFO /home/runner/output_monitor.sv(33) @ 1485: uvm_test_top.env.out_agt.out_mon [OUTPUT MON] DATA WRITE Valid:0 data:69 ready_out:1
# KERNEL: UVM_INFO /home/runner/apb_reference_model.sv(61) @ 1485: uvm_test_top.env.model [output_ref SCO] DATA MATCHED :data:69
# KERNEL: ** Report counts by severity
# KERNEL: UVM_INFO : 136
# KERNEL: UVM_WARNING : 0
# KERNEL: UVM_ERROR : 0
# KERNEL: UVM_FATAL : 0
# KERNEL: ** Report counts by id
# KERNEL: [OUTPUT MON]7
# KERNEL: [OUT_DRV]7
# KERNEL: [output_ref SCO]6
my python code should give the number of times output mon, OUT_drv 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!