Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions