Skip to content

Commit

Permalink
logger: Update SPI VIP reporting function calls
Browse files Browse the repository at this point in the history
Signed-off-by: Istvan-Zsolt Szekely <[email protected]>
  • Loading branch information
IstvanZsSzekely committed Oct 31, 2024
1 parent ed4db92 commit 4c74290
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions library/vip/adi/spi_vip/adi_spi_vip_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ package adi_spi_vip_pkg;
if (!vif.cs_active) begin
// if i!=0, we got !cs_active in the middle of a transaction
if (i != 0) begin
`FATAL(("tx_miso: early exit due to unexpected CS inactive!"));
this.fatal($sformatf("tx_miso: early exit due to unexpected CS inactive!"));
end
break;
end else if (pending_mbx) begin
Expand All @@ -179,7 +179,7 @@ package adi_spi_vip_pkg;
miso_reg = {miso_reg[SPI_VIP_DATA_DLENGTH-2:0], 1'b0};
end
if (i == SPI_VIP_DATA_DLENGTH-1) begin
`INFO(("[SPI VIP] MISO Tx end of transfer."), ADI_VERBOSITY_FULL);
this.info($sformatf("[SPI VIP] MISO Tx end of transfer."), ADI_VERBOSITY_FULL);
if (!using_default) begin
// finally pop an item from the mailbox after a complete transfer
miso_mbx.get(miso_reg);
Expand Down Expand Up @@ -252,7 +252,7 @@ package adi_spi_vip_pkg;
fork
begin
@(posedge this.stop_flag);
`INFO(("[SPI VIP] Stop event triggered."), ADI_VERBOSITY_FULL);
this.info($sformatf("[SPI VIP] Stop event triggered."), ADI_VERBOSITY_FULL);
this.stop_flag = 0;
end
begin
Expand All @@ -264,15 +264,15 @@ package adi_spi_vip_pkg;
join
this.clear_active();
end else begin
`ERROR(("Already running!"));
this.error($sformatf("Already running!"));
end
endtask

task stop();
if (this.get_active()) begin
this.stop_flag = 1;
end else begin
`ERROR(("Already inactive!"));
this.error($sformatf("Already inactive!"));
end
endtask

Expand Down
2 changes: 1 addition & 1 deletion library/vip/adi/spi_vip/s_spi_sequencer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ package s_spi_sequencer_pkg;
int unsigned received;
this.agent.receive_data(received);
if (received !== expected) begin
`ERROR(("Data mismatch. Received : %h; expected %h", received, expected));
this.error($sformatf("Data mismatch. Received : %h; expected %h", received, expected));
end
endtask : receive_data_verify

Expand Down

0 comments on commit 4c74290

Please sign in to comment.