forked from lowRISC/opentitan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlec_sv2v.do
45 lines (36 loc) · 1.5 KB
/
lec_sv2v.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
// 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 lec_sv2v
//-------------------------------------------------------------------------
// read in golden (SystemVerilog) and revised (Verilog)
//-------------------------------------------------------------------------
set parallel option -threads 8
// map all multi-dimensional ports (including structs) onto 1-dim. ports
set naming rule -mdportflatten
read design -golden -sv12 -f flist_gold -rootonly -root $LEC_TOP
read design -revised -ve -f flist_rev -rootonly -root $LEC_TOP
//-------------------------------------------------------------------------
// pre-LEC reports
//-------------------------------------------------------------------------
report rule check -verbose
report design data
report black box
report module
//-------------------------------------------------------------------------
// compare
//-------------------------------------------------------------------------
set mapping method -name_effort low
set system mode lec
report unmapped points
add compare point -all
compare -threads 8 -noneq_stop 1
analyze abort -compare
//-------------------------------------------------------------------------
// reports
//-------------------------------------------------------------------------
report compare data -class nonequivalent -class abort -class notcompared
report verification -verbose
report statistics
usage
exit -force