forked from nguyensinhton9x/uvm_env_ver3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_sim.txt
169 lines (130 loc) · 5.88 KB
/
run_sim.txt
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
Note: http://www.csit-sun.pub.ro/ise/Mentor_Graphics/QuestaSim_10.7c/INSTALL_NOTES.txt
Download gcc: http://www.csit-sun.pub.ro/ise/Mentor_Graphics/
- Steps:
vlog -work work -sv testTop.sv +incdir+C:/questasim64_10.2c/uvm-1.2/src +define+UVM_CMDLINE_NO_DPI +define+UVM_REGEX_NO_DPI +define+UVM_NO_DPI
vsim -novopt work.testTop +UVM_TESTNAME=cTest
run 1ns
- Result:
1/ Neu chay vsim thanh cong thi log file nhu sau
vsim -novopt work.testTop +UVM_TESTNAME=cTest
# vsim +UVM_TESTNAME=cTest -novopt work.testTop
# Loading C:\Users\8560w\AppData\Local\Temp\8560w@8560W-PC_dpi_3008\win64_gcc-4.5.0\export_tramp.dll
# Loading sv_std.std
# Loading work.uvm_pkg
# Loading work.testTop
# ** Note: (vsim-8785) UVM-aware debugging capabilities will be disabled since no compiled "questa_uvm_pkg" can be found.
#
# This also means that later if you turn on UVM-aware debugging your debug simulations may have
#
# different random seeds from your non-debug simulations.
#
# Loading work.apb_protocol_checker_top
# Loading work.apb_protocol_checker
# Loading work.uart_protocol_checker_top
# Loading work.uart_protocol_checker
# Loading work.ifApbMaster
# Loading work.dut_top
# Loading work.uart_top
# Loading work.uart_apb_if
# Loading work.uart_receiver
# Loading work.uart_transmitter
# Compiling C:\Users\8560w\AppData\Local\Temp\8560w@8560W-PC_dpi_3008\win64_gcc-4.5.0\exportwrapper.c
# Loading C:\Users\8560w\AppData\Local\Temp\8560w@8560W-PC_dpi_3008\win64_gcc-4.5.0\dpi_auto_compile.dll
2/ Chay run OK thi log file hien tai nhu sau (dang FATAL):
run 1ns
# UVM_INFO C:/questasim64_10.2c/uvm-1.2/src/base/uvm_root.svh(392) @ 0: reporter [UVM/RELNOTES]
# ----------------------------------------------------------------
# UVM-1.2
# (C) 2007-2014 Mentor Graphics Corporation
# (C) 2007-2014 Cadence Design Systems, Inc.
# (C) 2006-2014 Synopsys, Inc.
# (C) 2011-2013 Cypress Semiconductor Corp.
# (C) 2013-2014 NVIDIA Corporation
# ----------------------------------------------------------------
#
# *********** IMPORTANT RELEASE NOTES ************
#
# You are using a version of the UVM library that has been compiled
# with `UVM_NO_DEPRECATED undefined.
# See http://www.eda.org/svdb/view.php?id=3313 for more details.
#
# You are using a version of the UVM library that has been compiled
# with `UVM_OBJECT_DO_NOT_NEED_CONSTRUCTOR undefined.
# See http://www.eda.org/svdb/view.php?id=3770 for more details.
#
# (Specify +UVM_NO_RELNOTES to turn off this notice)
#
# UVM_INFO C:/questasim64_10.2c/uvm-1.2/src/base/uvm_root.svh(453) @ 0: reporter [NO_DPI_TSTNAME] UVM_NO_DPI defined--getting UVM_TESTNAME directly, without DPI
# UVM_INFO @ 0: reporter [RNTST] Running test cTest...
# UVM_FATAL cApbMasterDriver.sv(42) @ 0: uvm_test_top.coEnd.coApbMasterAgentRx.coApbMasterDriver [NON-APBIF] A virtual interface must be set for: uvm_test_top.coEnd.coApbMasterAgentRx.coApbMasterDriver.uart_ifApbMaster
# UVM_INFO C:/questasim64_10.2c/uvm-1.2/src/base/uvm_report_server.svh(847) @ 0: reporter [UVM/REPORT/SERVER]
# --- UVM Report Summary ---
#
# ** Report counts by severity
# UVM_INFO : 3
# UVM_WARNING : 0
# UVM_ERROR : 0
# UVM_FATAL : 1
# ** Report counts by id
# [NON-APBIF] 1
# [NO_DPI_TSTNAME] 1
# [RNTST] 1
# [UVM/RELNOTES] 1
#
# ** Note: $finish : C:/questasim64_10.2c/uvm-1.2/src/base/uvm_root.svh(135)
# Time: 0 ns Iteration: 10 Region: /uvm_pkg::uvm_phase::m_run_phases
# 1
# Break in Function uvm_pkg/uvm_root::die at C:/questasim64_10.2c/uvm-1.2/src/base/uvm_root.svh line 135
Problems:
--------------------------------------------------
1/ Correct testTOP.sv
Change from
uvm_config_db#(virtual interface ifApbMaster)::set(null,"uvm_test_top.coEnv*","vifApbMaster_0",vifApbMaster_0);
uvm_config_db#(virtual interface ifApbMaster)::set(null,"uvm_test_top.coEnv*","vifApbMaster_1",vifApbMaster_1);
to
uvm_config_db#(virtual interface ifApbMaster)::set(null,"uvm_test_top.coEnv.coApbMasterAgentTx*","vifApbMaster",vifApbMaster_Tx);
uvm_config_db#(virtual interface ifApbMaster)::set(null,"uvm_test_top.coEnv.coApbMasterAgentRx*","vifApbMaster",vifApbMaster_Rx);
2/ Correct uvm_env.sv
Change from "coEnd" to "coEnv"
3/ Corrent cApbMasterDriver.sv
Change from
if (!uvm_config_db#(virtual interface ifApbMaster)::get(.cntxt(uvm_root::get()),
.inst_name("*"),
.field_name("vifApbMaster"),
.value(uart_vifApbMaster))) begin
to
if (!uvm_config_db#(virtual interface ifApbMaster)::get(.cntxt(this),
.inst_name(""),
.field_name("vifApbMaster"),
.value(uart_vifApbMaster))) begin
4/ Correct testTop (Add the interrupt interface connection)
ifInterrupt vifInterrupt_Tx();
ifInterrupt vifInterrupt_Rx();
`ifdef INTERRUPT_COM
.ctrl_if_0(vifInterrupt_Tx.ctrl_if),
`else
.ctrl_tif_0(vifInterrupt_Tx.ctrl_tif),
.ctrl_rif_0(vifInterrupt_Tx.ctrl_rif),
.ctrl_pif_0(vifInterrupt_Tx.ctrl_pif),
.ctrl_oif_0(vifInterrupt_Tx.ctrl_oif),
.ctrl_fif_0(vifInterrupt_Tx.ctrl_fif),
`endif
`ifdef INTERRUPT_COM
.ctrl_if_1(vifInterrupt_Rx.ctrl_if),
`else
.ctrl_tif_1(vifInterrupt_Rx.ctrl_tif),
.ctrl_rif_1(vifInterrupt_Rx.ctrl_rif),
.ctrl_pif_1(vifInterrupt_Rx.ctrl_pif),
.ctrl_oif_1(vifInterrupt_Rx.ctrl_oif),
.ctrl_fif_1(vifInterrupt_Rx.ctrl_fif),
`endif
//
uvm_config_db#(virtual interface ifInterrupt)::set(null,"uvm_test_top.coEnv.coApbMasterAgentTx*","vifInterrupt",vifInterrupt_Tx);
uvm_config_db#(virtual interface ifInterrupt)::set(null,"uvm_test_top.coEnv.coApbMasterAgentRx*","vifInterrupt",vifInterrupt_Rx);
5/ Correct cApbMasterSequencer
virtual interface ifInterrupt vifInterrupt;
if(!uvm_config_db#(virtual interface ifInterrupt)::get(this,"","vifInterrupt",vifInterrupt)) begin
`uvm_error("cVSequencer","Can't get vifInterrupt!!!")
end
6/ Remove the interface connection at cVSequencer
Comment all