Project

General

Profile

Actions

How to debug

write debug message

  • in c++, all debug message should be output with the macro DBG(num, xxxx)
  • in python, all debug message should be output with logging.debug(num, xxx)

enable debug message

  • we should put below code at the begin of the user script to enable any debug code.
set—debug—level(num, filename)

num should be larger than the macro used in the source code, such as set—debug—level(lOO, 'aa.cc'),
all debug message in aa.cc were output with DBG(num, xx x) where num < lOO will be print

use set—debug—level(num) without specify the filename, all source files debug message will be enabled.

show source file name of the debug message

show—debug—filename()

vectorless flow correlation between vesper and hvp

  1. get pin service
>>lt=dv.get—design()
>>cell=lt.get—cell(l625)
>>ps=cell.get—pin—service()
>>pin—data= ps.get—pin—data(64)
>>pin—data
  1. hvp deubg

correlation vesper and hvp.pptx

hvp -regression -wd /**tempfolder /**run.tcl
  1. vesper debug instance power
    在create_view后使用debug_instance=["instance_name",...]

  2. gdb hvp:

gdb hvp_binary set args *.tcl
b *.cpp:line_number 
wh
run

Updated by jun chen 3 months ago · 1 revisions