mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-20 12:17:19 -04:00
💚 Fix missing source files
This commit is contained in:
parent
b2d97aee90
commit
11692996e1
3 changed files with 71 additions and 0 deletions
42
tb/common/driver.svh
Executable file
42
tb/common/driver.svh
Executable file
|
@ -0,0 +1,42 @@
|
|||
// Author: Florian Zaruba, ETH Zurich, Robert Schilling, TU Graz
|
||||
// Date: 27.04.2017
|
||||
// Description: Abstract Driver Class, similar to a UVM Driver
|
||||
//
|
||||
// Copyright (C) 2017 ETH Zurich, University of Bologna
|
||||
// All rights reserved.
|
||||
//
|
||||
// This code is under development and not yet released to the public.
|
||||
// Until it is released, the code is under the copyright of ETH Zurich and
|
||||
// the University of Bologna, and may contain confidential and/or unpublished
|
||||
// work. Any reuse/redistribution is strictly forbidden without written
|
||||
// permission from ETH Zurich.
|
||||
//
|
||||
// Bug fixes and contributions will eventually be released under the
|
||||
// SolderPad open hardware license in the context of the PULP platform
|
||||
// (http://www.pulp-platform.org), under the copyright of ETH Zurich and the
|
||||
// University of Bologna.
|
||||
//
|
||||
class driver #(type dut_t);
|
||||
|
||||
// Virtual interface to the design under verification (DUT).
|
||||
virtual dut_t dut_if;
|
||||
|
||||
// The mailbox for providing stimuli data to the monitor.
|
||||
mailbox #(sequence_item) mbx;
|
||||
|
||||
// run task which drives the stimuli
|
||||
virtual task run(mailbox mbx);
|
||||
|
||||
endtask : run
|
||||
|
||||
// --------------
|
||||
// Constructors
|
||||
// --------------
|
||||
function new ( virtual dut_t dut_if, mailbox mbx);
|
||||
// Connect the DUV interface.
|
||||
this.dut_if = dut_if;
|
||||
this.mbx = mbx;
|
||||
endfunction
|
||||
|
||||
|
||||
endclass : driver
|
6
tb/common/eth_tb_pkg.sv
Executable file
6
tb/common/eth_tb_pkg.sv
Executable file
|
@ -0,0 +1,6 @@
|
|||
package eth_tb_pkg;
|
||||
|
||||
`include "sequence_item.svh"
|
||||
`include "driver.svh"
|
||||
|
||||
endpackage
|
23
tb/common/sequence_item.svh
Executable file
23
tb/common/sequence_item.svh
Executable file
|
@ -0,0 +1,23 @@
|
|||
// Author: Florian Zaruba, ETH Zurich, Robert Schilling, TU Graz
|
||||
// Date: 27.04.2017
|
||||
// Description: Abstract Sequence Item Class, similar to a UVM Sequence Item
|
||||
// Used as a common base class
|
||||
//
|
||||
// Copyright (C) 2017 ETH Zurich, University of Bologna
|
||||
// All rights reserved.
|
||||
//
|
||||
// This code is under development and not yet released to the public.
|
||||
// Until it is released, the code is under the copyright of ETH Zurich and
|
||||
// the University of Bologna, and may contain confidential and/or unpublished
|
||||
// work. Any reuse/redistribution is strictly forbidden without written
|
||||
// permission from ETH Zurich.
|
||||
//
|
||||
// Bug fixes and contributions will eventually be released under the
|
||||
// SolderPad open hardware license in the context of the PULP platform
|
||||
// (http://www.pulp-platform.org), under the copyright of ETH Zurich and the
|
||||
// University of Bologna.
|
||||
//
|
||||
class sequence_item;
|
||||
|
||||
|
||||
endclass : sequence_item
|
Loading…
Add table
Add a link
Reference in a new issue