Skip to content

Commit

Permalink
[i2c,dv] Map the 'i2c_host_may_nack' vseq to the TP:host_mode_halt_on…
Browse files Browse the repository at this point in the history
…_nak

Signed-off-by: Harry Callahan <[email protected]>
  • Loading branch information
hcallahan-lowrisc committed Jul 5, 2024
1 parent 6c39ade commit 79cecdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ip/i2c/data/i2c_testplan.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@
reached.
'''
stage: V2
tests: []
tests: ["i2c_host_may_nack"]
}
{
name: target_mode_n_byte_ack_control
Expand Down
4 changes: 4 additions & 0 deletions hw/ip/i2c/dv/env/seq_lib/i2c_host_may_nack_vseq.sv
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0

// This vseq generates normal DUT-Controller transactions using the base class routines
// (from the rx_tx_vseq), except we substitute in an agent sequence which may randomly
// NACK any bytes transmitted to it.
//
class i2c_host_may_nack_vseq extends i2c_rx_tx_vseq;
`uvm_object_utils(i2c_host_may_nack_vseq)
`uvm_object_new
Expand Down

0 comments on commit 79cecdc

Please sign in to comment.