In reply to cgales:
Hi,
After adding `include “uvm_macros.svh” in package file there are couple of other errors as below :
-
In sequence1.sv file,
you need to add “;” instead of “,” inuvm_do_with macros while applying constraint. ex:uvm_do_with(item,{item.data==8’b10011011[b]; item.admr==3’d3;}) -
In driver.sv file,
Use wbm_intf.wb_ack_o instead of wb_ack_o. Remove bm_intf.wb_dat_i = dat; line as it is repeating and also not referring pkt.dat variable. -
In scoreboard file,
use write_rcvd_pkt and write_sent_pkt instead of using simple write function as there are multiple write function. Use begin-end while using the macros (in if-else loop ). -
In receiver.sv file,
Define any local variable declaration just after task.
ex:
virtual task run_phase(uvm_phase phase);
bit [7:0] byts;
phase.raise_objection(this);
Also add “packet pkt” before using pkt.
There might be couple of other errors.