blob: 1465329dc594a8e5029c44553fce66419ed36028 [file] [log] [blame]
// Copyright 2023 Google LLC
// Copyright lowRISC contributors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
class dma_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(dma_env_cfg),
.COV_T(dma_env_cov)
);
`uvm_component_utils(dma_virtual_sequencer)
tl_sequencer reader_tl_sequencer_h;
tl_sequencer writer_tl_sequencer_h;
// Grab packets from reader_tl_if
uvm_tlm_analysis_fifo #(tl_seq_item) reader_tl_rx_fifo;
// Grab packets from writer_tl_if
uvm_tlm_analysis_fifo #(tl_seq_item) writer_tl_rx_fifo;
`uvm_component_new
function void build_phase(uvm_phase phase);
super.build_phase(phase);
reader_tl_rx_fifo = new("reader_tl_rx_fifo", this);
writer_tl_rx_fifo = new("writer_tl_rx_fifo", this);
endfunction
endclass