forked from openhwgroup/cv32e40x-dv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqverify.tcl
70 lines (60 loc) · 3.52 KB
/
qverify.tcl
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright 2022 Silicon Labs, Inc.
#
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
#
# Licensed under the Solderpad Hardware License v 2.1 (the "License"); you may
# not use this file except in compliance with the License, or, at your option,
# the Apache License version 2.0.
#
# You may obtain a copy of the License at
# https://solderpad.org/licenses/SHL-2.1/
#
# Unless required by applicable law or agreed to in writing, any work
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#
# See the License for the specific language governing permissions and
# limitations under the License.
proc cvfv_rerun {} {
onerror {exit 1}
puts "cvfv: compiling verilog"
vlog -mfcu -f fv.flist
puts "cvfv: cutpointing general 'control points'"
netlist cutpoint {uvmt_cv32e40x_tb.clknrst_if.reset_n} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.debug_if.debug_req} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.interrupt_if.irq} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.core_cntrl_if.boot_addr} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.core_cntrl_if.mtvec_addr} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.core_cntrl_if.dm_halt_addr} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.core_cntrl_if.dm_exception_addr} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.core_cntrl_if.mhartid} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.core_cntrl_if.mimpid_patch} -module uvmt_cv32e40x_tb
#cutpoints needed to subdue "Design Checks" errors that lead to bonkers CEXes
puts "cvfv: cutpointing obi 'control points'"
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.err} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.gntpar} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.gnt} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.rchk} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.rdata} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.rvalidpar} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_instr_if.rvalid} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.err} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.gntpar} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.gnt} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.rchk} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.rdata} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.rvalidpar} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.obi_data_if.rvalid} -module uvmt_cv32e40x_tb
netlist cutpoint {uvmt_cv32e40x_tb.fencei_if.flush_ack} -module uvmt_cv32e40x_tb
puts "cvfv: setting constants"
netlist constant {uvmt_cv32e40x_tb.core_cntrl_if.scan_cg_en} {0} -module uvmt_cv32e40x_tb
netlist constant {uvmt_cv32e40x_tb.core_cntrl_if.fetch_en} {1} -module uvmt_cv32e40x_tb
puts "cvfv: initializing clock/reset"
netlist clock {uvmt_cv32e40x_tb.clknrst_if.clk} -module uvmt_cv32e40x_tb
netlist reset {uvmt_cv32e40x_tb.clknrst_if.reset_n} -active_low -module uvmt_cv32e40x_tb
formal init -inferred
puts "cvfv: compiling formal model"
formal compile -d uvmt_cv32e40x_tb -work work
puts "cvfv: see the visualizer log for compilation warnings"
}
cvfv_rerun