我有一个带有以下字段/事件的监视器单元: uart_env.e:
unit uart_monitor_u like uvm_monitor{
smp : uart_signal_map_u; //ptr to smp
keep smp == get_enclosing_unit(uart_env_u).smp;
kind : uart_monitor_u_kind_t;
};
uart_monitor.e:
extend uart_monitor_u{
!port_data_b : inout simple_port of bit; -- pointer to the data-bit port
event clk_e is rise (smp.port_uart_clk$) @sim;
event data_deassert is fall (port_data_b$) @uart_clk_e;
.......
.......
};
uart_rx_monitor.e:
extend RX uart_monitor_u{
keep soft port_data_b == smp.port_rxdi;
.....
.....
};
uart_types.e:
type uart_monitor_u_kind_t: [ RX, TX ];
uart_signal_map.e:
extend uart_signal_map_u {
p_def port_uart_clk bit;
p_def port_uart_clk_period real;
p_def port_resetn bit;
p_def port_br_clk_period real;
p_def port_uart_int bit;
p_def port_txdo bit;
p_def port_rxdi bit;
......
......
};
编辑相关文件的顺序:
import uart_types;
import uart_env;
import uart_monitor;
import uart_rx_monitor;
由于某种原因,当我尝试编译时出现以下错误: ***错误:无法访问空端口表达式。 在@uart_monitor的第22行 event data_deassert是fall(port_data_b $)@uart_clk_e;