在UVM寄存器模型中,Backdoor(后门)用于直接对寄存器进行访问和修改,绕过了寄存器模型的事务层接口。本文将介绍UVM寄存器模型中Backdoor的用法。 一、什么是Backdoor Backdoor是一种在UVM寄存器模型中执行直接寄存器访问的机制。通过使用Backdoor,可以绕过寄存器模型的事务层接口(Transaction Level Interface,简称TLI),直接对...
uvm寄存器模型的backdoor用法 uvm寄存器模型的backdoor用法UVM(Universal Verification Methodology)中的寄存器模型通常用于验证设计中的寄存器。Backdoor(背门)是一种UVM寄存器模型中的特性,用于在测试中直接读取或写入寄存器的值,而不通过正常的寄存器访问路径。在UVM中,Backdoor访问通过UVM的uvm_reg_backdoor类实现。
(1.2) uvm_reg_map的do_write任务会查看系统是否设置了adapter,如果没有设置,就直接启动sequence, 让sequencer发送uvm_reg_item类型的transaction;如果设置了,那就调用do_bus_write任务. (1.3) uvm_reg_map的do_write完成后,如果auto predict功能打开了, uvm_reg的do_write会根据写入的值更新register model中寄存器...
super.new(name);endfunction: new
1)之后可以在systemverilog 中像普通函数一样调用uvm_hdl_read,比vpi 简练许多。 4.整个过程: 1)要操作的寄存器路径被抽象成一个字符串,不再是一个绝对路径: 2)路径变成字符串,可以存储,为建立寄存器模型提供可能。 5.UVM使用DPI+VPI 后门的大体流程是: ...
UVM register model allows access to the DUT registers using the front door as we have seen before in the register environment. This means that all register read and write operations in the environment are converted into bus transactions that get driven
UVM_HDL_MAX_WIDTH parameter int UVM_HDL_MAX_WIDTH = `UVM_HDL_MAX_WIDTH Sets the maximum size bit vector for backdoor access. This parameter will be looked up by the DPI-C code using: vpi_handle_by_name( “uvm_pkg::UVM_HDL_MAX_WIDTH”, 0);...
Automated Access Backdoor for UVM_REG LayerSeep SethiNeeraj Kr. Shukla
(1) uvm_reg::write (1.1) FRONTDOOR write操作最终会转换为uvm_reg_map的do_write任务; (1.2) uvm_reg_map的do_write任务会查看系统是否设置了adapter,如果没有设置,就直接启动sequence, 让sequencer发送uvm_reg_item类型的transaction;如果设置了,那就调用do_bus_write任务. ...
(1) uvm_reg::write (1.1) FRONTDOOR write操作最终会转换为uvm_reg_map的do_write任务; (1.2) uvm_reg_map的do_write任务会查看系统是否设置了adapter,如果没有设置,就直接启动sequence, 让sequencer发送uvm_reg_item类型的transaction;如果设置了,那就调用do_bus_write任务. ...