我在我的项目中使用 e (specman)。我为uart构建了验证环境。我有一个类似于any_sequence_item
命名的结构uart_frame_s.
我想为 uart 中的 tx 添加记分牌。我在以下实例中uart_tx_agent
:
uart_monitor: uart_tx_monitor_u is instance;
记分牌的定义:
unit uart_tx_scoreboard_u like uvm_scoreboard{
scbd_port frame_add : add uart_frame_s;
scbd_port frame_match : match uart_frame_s;
};
我尝试通过以下方式连接:
connect_ports() is also {
uart_monitor.uart_frame_s_started.connect(tx_scb.uart_frame_s_add);
uart_monitor.uart_frame_s_ended.connect(tx_scb.uart_frame_s_match);
};
其中: uart_scb(记分板)是 uart_tx_agent 中的实例
监视器中 TLM 端口的定义:
uart_frame_s_started : out iterface_port of tlm_analysis of uart_frame_s is instance;
uart_frame_s_ended : out iterface_port of tlm_analysis of uart_frame_s is instance;
我收到以下错误:错误:'uart_monitor'('uart_tx_monitor_u')没有'uart_frame_S_started'字段...。错误:'uart_monitor'('uart_tx_monitor_u')没有'uart_frame_S_ended'字段