跳转至

输入查询内容

    本页内容

    使用 bitstream 参数保留宽配置

    环境:VCS W-2024.09-SP2-8。1.2 使用 uvm-1.2,2.0 使用 uvm-ieee-2020-2.0

    实验检查观察值是否符合预期;成功复现问题不代表问题已修复。

    结果对比

    本组配置:+uvm_set_config_bitstream=uvm_test_top,wide_value,0x1234567801234567

    观察内容 UVM 2.0
    配置查询命中(1=是) config_found 1
    配置值低 64 位(十六进制) config_low64 1234567801234567

    运行命令

    目录与环境准备;从解包根目录执行:

    uv run tools/run_uvm_review.py --case command_probe --variants 20 --plusarg +uvm_set_config_bitstream=uvm_test_top,wide_value,0x1234567801234567 --check tests/uvm_review/command_bitstream.expected.json
    

    最小源码

    command_probe.sv

    command_probe.sv
    `timescale 1ns/1ps
    `include "uvm_macros.svh"
    import uvm_pkg::*;
    
    class command_test extends uvm_test;
      `uvm_component_utils(command_test)
      function new(string name, uvm_component parent); super.new(name, parent); endfunction
      function void check_phase(uvm_phase phase);
        uvm_bitstream_t value;
        bit found = uvm_config_db#(uvm_bitstream_t)::get(this, "", "wide_value", value);
        $display("REVIEW|config_found|%0d", found);
        $display("REVIEW|config_low64|%016h", value[63:0]);
        $display("REVIEW|done|1");
      endfunction
    endclass
    module command_probe;
      initial run_test("command_test");
    endmodule
    

    全部用例 · 证据摘要

    版本适用范围