blob: 7f1ff523599a17d5430bc0c425b563bc4c0a4bb2 [file] [log] [blame]
//
// -------------------------------------------------------------
// Copyright 2011 Synopsys, Inc.
// All Rights Reserved Worldwide
//
// 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.
// -------------------------------------------------------------
//
virtual class vip_sequence extends uvm_sequence#(vip_tr);
function new(string name);
super.new(name);
endfunction
virtual task pre_body();
if (starting_phase != null)
starting_phase.raise_objection(this, {"Running sequence '",
get_full_name(), "'"});
endtask
virtual task post_body();
if (starting_phase != null)
starting_phase.drop_objection(this, {"Completed sequence '",
get_full_name(), "'"});
endtask
endclass
class vip_one_char_seq extends vip_sequence;
`uvm_object_utils(vip_one_char_seq)
function new(string name="vip_one_char_seq");
super.new(name);
endfunction
virtual task body();
`uvm_do(req)
endtask
endclass
class vip_sentence_seq extends vip_sequence;
`uvm_object_utils(vip_sentence_seq)
function new(string name="vip_sentence_seq");
super.new(name);
endfunction
virtual task body();
repeat (128) begin
`uvm_do(req)
end
endtask
endclass
class vip_idle_esc_seq extends vip_sequence;
`uvm_object_utils(vip_idle_esc_seq)
function new(string name="vip_idle_esc_seq");
super.new(name);
endfunction
virtual task body();
repeat (128) begin
`uvm_do_with(req, {chr inside {8'hE7, 8'h81}; })
end
endtask
endclass