-
Notifications
You must be signed in to change notification settings - Fork 33
/
axi_tb_top.sv
30 lines (22 loc) · 907 Bytes
/
axi_tb_top.sv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ******************** Global Parameters ******************
// Please change the A_WIDTH & D_WIDTH with the respective width
// of address and data bus
parameter A_WIDTH = 8; // Address bus width
parameter D_WIDTH = 128; // Data bus width
`include "axi_package.svh"
`include "axi_interface.sv"
module top;
bit clk, rstn;
always #5 clk = ~clk;
initial rstn = 1;
axi_intf#(.A_WIDTH(A_WIDTH), .D_WIDTH(D_WIDTH)) intf(clk, rstn);
env_config env_cfg;
initial begin
env_cfg = new();
env_cfg.intf = intf;
uvm_config_db#(env_config)::set(null, "uvm_test_top", "config", env_cfg);
uvm_config_db#(env_config)::set(null, "uvm_test_top.env.master", "config", env_cfg);
uvm_config_db#(env_config)::set(null, "uvm_test_top.env.slave", "config", env_cfg);
run_test("axi_base_test");
end
endmodule