blob: 267cf9e21376aaa35333467a5001946ea17b347f [file] [log] [blame]
// Copyright lowRISC contributors.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_i2c_tx_rx_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_i2c_tx_rx_vseq)
`uvm_object_new
int clock_period_nanos = 41;
int i2c_clock_period_nanos = 1000;
int rise_fall_nanos = 10;
int rise_cycles = ((rise_fall_nanos - 1) / clock_period_nanos) + 1;
int fall_cycles = ((rise_fall_nanos - 1) / clock_period_nanos) + 1;
int clock_period_cycles = ((i2c_clock_period_nanos - 1) / clock_period_nanos) + 1;
int half_period_cycles = ((i2c_clock_period_nanos/2 - 1) / clock_period_nanos) + 1;
endclass : chip_sw_i2c_tx_rx_vseq