Вы находитесь на странице: 1из 14

UVM Debug

UVM Phase Debug


Tom Kiley
Verification Technologist

info@verificationacademy.com | www.verificationacademy.com
© 2017 Mentor Graphics Corporation
UVM Phase Debug Overview
• Quick overview of UVM Phases

• Common issues with Phases

• How to debug Phase Issues

• UVM Phase Debug Demo

© 2017 Mentor Graphics Corporation


Most Commonly Used Phases
• build, connect, run, extract,
check, report, and final

• Run phase has twelve sub-


phases

• Focus will be on build, connect,


and run
© 2017 Mentor Graphics Corporation
UVM Phase Overview: Build Phase

Test
Env ScoreBoard

Agent
Monitor

DUT

Sequencer Driver

© 2017 Mentor Graphics Corporation


UVM Phase Overview: Connect Phase

Test
Env ScoreBoard

Agent
Monitor

Virtual Interface DUT

Sequencer Driver

© 2017 Mentor Graphics Corporation


UVM Phase Overview: Connect Phase

Test
Env ScoreBoard

Agent
Monitor

Virtual Interface DUT

Sequencer Driver

© 2017 Mentor Graphics Corporation


UVM Phase Overview: Run Phase

Test
Env ScoreBoard

Agent
Monitor

Virtual Interface DUT

Sequencer Driver

© 2017 Mentor Graphics Corporation


Common Issues with UVM Phases
• Missing connections

• Dereferenced null handles

• uvm_config_db get failure

• Forgetting to call super.<parent>

© 2017 Mentor Graphics Corporation


Zero Time Execution
• The build and connect
phases execute at time 0 Build
• The run phase is started at

Runs in 0 time
time 0
Connect
• We need a way to debug
during time 0
Run

© 2017 Mentor Graphics Corporation


How To Debug UVM Phase Issues
• Built in UVM Phase debug feature
• Run each phase individually
• Run to a the beginning of a UVM Phase

© 2017 Mentor Graphics Corporation


How To Debug UVM Phase Issues
• The UVM hierarchy is available for debug
• Use “UVM next phase (any)” to go to sub phases

© 2017 Mentor Graphics Corporation


Demo: UVM Phase Debug

© 2017 Mentor Graphics Corporation


UVM Phase Debug Summary
• UVM Phasing overview

• Common issues with UVM Phases

• How to debug these issues with Mentor’s


Visualizer™ Debug Environment

© 2017 Mentor Graphics Corporation


UVM Debug
UVM Phase Debug
Tom Kiley
Verification Technologist

info@verificationacademy.com | www.verificationacademy.com
© 2017 Mentor Graphics Corporation

Вам также может понравиться