forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtl_diff.do
55 lines (47 loc) · 1.63 KB
/
rtl_diff.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// dofile for LEC script rtl_diff
//-----------------------------------------------------------------
// read in golden and revised
//-----------------------------------------------------------------
read library -sv09 -f formal_0.scr
// read golden design
read design -golden -sv09 \
../../../../ip/prim/rtl/prim_assert.sv \
../../../../top_earlgrey/rtl/*_pkg.sv \
../../../../ip/*/rtl/*_pkg.sv \
../../../../vendor/*/*/*_pkg.sv \
$LEC_GOLDEN
// read revised design
read design -revised -sv09 \
../../../../ip/prim/rtl/prim_assert.sv \
../../../../top_earlgrey/rtl/*_pkg.sv \
../../../../ip/*/rtl/*_pkg.sv \
../../../../vendor/*/*/*_pkg.sv \
$LEC_REVISED
//-----------------------------------------------------------------
// pre-LEC reports
//-----------------------------------------------------------------
report design data
report black box
report module
//-----------------------------------------------------------------
// compare
//-----------------------------------------------------------------
set system mode lec
map key points
set parallel option -threads 4
analyze datapath -merge -verbose -effort ultra
add compare point -all
set compare effort ultra
compare -threads 4
analyze abort -compare
//-----------------------------------------------------------------
// reports
//-----------------------------------------------------------------
report compare data -class nonequivalent -class abort -class notcompared
report verification -verbose
report statistics
usage
exit -force