Project

General

Profile

USDB support » History » Version 2

jun chen, 03/27/2025 12:25 AM

1 1 jun chen
# USDB support
2
3
300 
4
Developer: ShuMiao PE: JiaXiao
5
PV: SiQi
6
Date: 2023/12
7
8
## in-house utility {SiQi)
9
10
vcddiff D叩DD (SiQi todo)
11
叩田叩叩DD叩叩DDDusdb-> vcd, DDvcd-> usdb叩D执叩O叩D 
12
D叩DD叩
13
```
14
source /scratch02/rnd/sqchen/work—to—do/GB—VCD/.VD/setup.csh
15
1.usdb-> vcd:	usdb2vcd -i �input—usdb—file -o �output—vcd—file
16
2.vcd->usdb:	vcd2usdb -i �input—vcd—file	-o �output—usdb—file
17
```
18
19
![](clipboard-202503270022-82q9e.png)
20
21
## Spec and function {Shumiao)
22
参伲D料叩 
23 2 jun chen
USDB API specification file: attachment:"EDA2数字波形接口.pdf" 
24
Discussion with USDB: attachment:"国标USDB问题解答.pptx"
25 1 jun chen
26
D叩叩叩parse  usdbDDO叩D叩叩是叩见叩供叩parserDD叩叩译叩见叩供叩libOD这叩O叩支叩cent7DDDD叩叩cent7O叩译binaryDDDOD叩O叩图叩示叩
27
![](clipboard-202503270022-qbuor.png)
28
29
如叩使叩extract_usdb叩
30
option叩D释叩
31
-input_file叩叩DusdbDD叩O叩D 
32
-output_file:  叩DOODO叩vcdO叩DDODDDDO叩DusdbOOvcd
33
-start_time: DDDDusdbOOD叩
34
-end_time: DDDDusdb叩叩D叩
35
-refine_path: DDDDusdbDD叩strip掉叩层叩 eg1. 叩DusdbOOvcdO叩叩
36
37
extract—usdb -input—file example.usdb -output—file demo.vcd -start—time �STARTTIMF -end—time �FNDT IMF
38
39
eg2. DDusdbDOswitching activity:
40
41
extract—usdb -input—file example.usdb -start—time �STARTTIMF -end—time �FNDTIMF -refine—path �PAT:
42
43
如叩DD vcdD叩叩 tool: vcddiff 位DDD叩DD叩
44
45
/reg/util/vp/util—scripts/work—util/vcddiff test1.vcd test2.vcd > diff.log
46
47
48
Case, regression {ShuMiao)
49
PS叩 Cases必须叩cent7叩binary□D叩叩DDO0支叩cent6
50
Case 1. 通叩cht□D hvp门D usdbD叩咖叩将叩转叩叩叩价叩vcdD叩叩 
51
a)D叩vcd2usdb叩DDDOdemo_golden.vcdOOOdemo.usdbO叩
52
53
54
vcd2usdb -i demo—golden.vcd -o demo.usdb
55
56
b)DDextract_usdbOOOdemo.vcdO叩
57
58
59
extract—usdb -input—file demo.usdb -output—file demo.vcd
60
61
D田D叩叩DDvcddiffD衄demo_golden.vcdDdemo.vcdO叩,  ODdiff.logOD叩pass
62
63
64
vcddiff test—golden.vcd demo.vcd > diff.log
65
66
example case:
67
68
69
/scratch02/rnd/smli/usdb—case/usdb/usdb—to—vcd/test.tcl
70
71
Case 2. 搭叩cht power所叩要叩design, 门D usdbD叩咖叩D usdb叩标工switching activity信息咖生叩功叩分D结叩:
72
a)D叩vcd2usdb叩D拿叩叩Dcase叩xxx.usdbO叩
73
b)D田cht design, DOtiming analysis后D叩叩DOxxx.vcdD叩叩叩power analysis
74
75
76
extract—switching—activity -format vcd -file xxx.vcd -refine—path �PAT: report—power—anaysis > golden/power—golden.rpt
77
78
c)DDswitching activityD叩Dxxx.usdbO叩D叩叩叩power analysis
79
80
81
set—switching—activity -clear
82
extract—usdb -intput—file xxx.usdb -refine—path �PAT: report—power—anaysis > power.rpt
83
84
D田D叩叩
85
1.Switching  activity叩DDDDDDcheckpointD衄DD叩DD 
86
2.D耗叩DOD叩
87
88
89
qa—report—power—analysis design golden/power—golden.rpt power.rpt
90
91
example case:
92
93
94
/scratch02/rnd/smli/usdb—case/usdb/usdb—to—pow/test.tcl
95
96
Schedule and result {JiaXiao)
97
98
99
![](clipboard-202503270023-1ota6.png)