summaryrefslogtreecommitdiff
path: root/homework_2/SRC/tb.sv
diff options
context:
space:
mode:
Diffstat (limited to 'homework_2/SRC/tb.sv')
-rw-r--r--homework_2/SRC/tb.sv36
1 files changed, 36 insertions, 0 deletions
diff --git a/homework_2/SRC/tb.sv b/homework_2/SRC/tb.sv
new file mode 100644
index 0000000..fd98597
--- /dev/null
+++ b/homework_2/SRC/tb.sv
@@ -0,0 +1,36 @@
+`include "uvm_macros.svh"
+import uvm_pkg::*;
+
+`include "interface.sv"
+`include "item.sv"
+`include "gen_item_seq.sv"
+`include "monitor.sv"
+`include "scoreboard.sv"
+`include "driver.sv"
+`include "agent.sv"
+`include "env.sv"
+`include "base_test.sv"
+
+
+
+`define LENGTH 4
+
+module tb;
+ reg clk;
+
+ always #10 clk =~ clk;
+ des_if _if (clk);
+
+ duv u0 ( .clk(clk),
+ .rstn(_if.rstn),
+ .in(_if.in),
+ .out(_if.out));
+
+
+ initial begin
+ clk <= 0;
+ uvm_config_db#(virtual des_if)::set(null, "uvm_test_top", "des_vif", _if);
+ run_test("test_1011");
+ end
+ endmodule
+