我已经在定序器上启动了一个 seq 项目以生成具有随机约束的 seq 项目,但生成的项目有许多“X”值。这背后的原因可能是什么?
这是代码:
virtual task run_phase(uvm_phase phase);
begin
uvm_test_done.raise_objection(this,"started sequence");
`uvm_info(get_type_name(),"inside run_phase of base test:\n", UVM_LOW)
fork
#10;
spi_m_seq.start(spi_env_inst.spi_master.spi_sequencer);
#300;
join
uvm_test_done.drop_objection(this,"sequence finished");
end
endtask:run_phase