A
Amir
Guest
Hi,
I'm writing a verification envir in SV, the envir contains 4 masters,
(same module with 4 instantiation) and one slave, since the masters
have the same interface, I created one interface, but I should use a
parameter to define which interface is which, I mean a generic
interface to all 4 masters.
interface mstr_if;
logic [63:0] a_r_addr_<i>;
logic [1:0] a_r_burst_<i>;
logic [3:0] a_r_id_<i>;
logic [3:0] a_r_len_<i>;
logic [2:0] a_r_size_<i>;
endinterface : mstr_if
so when I initialize the interface in the top level , I define the <i>
for each master
mstr_if bus0 #(0);
mstr_if bus0 #(1);
mstr_if bus0 #(2);
mstr_if bus0 #(3);
do you have any idea how can I do in SV?!
thanks in advance
-Amir
I'm writing a verification envir in SV, the envir contains 4 masters,
(same module with 4 instantiation) and one slave, since the masters
have the same interface, I created one interface, but I should use a
parameter to define which interface is which, I mean a generic
interface to all 4 masters.
interface mstr_if;
logic [63:0] a_r_addr_<i>;
logic [1:0] a_r_burst_<i>;
logic [3:0] a_r_id_<i>;
logic [3:0] a_r_len_<i>;
logic [2:0] a_r_size_<i>;
endinterface : mstr_if
so when I initialize the interface in the top level , I define the <i>
for each master
mstr_if bus0 #(0);
mstr_if bus0 #(1);
mstr_if bus0 #(2);
mstr_if bus0 #(3);
do you have any idea how can I do in SV?!
thanks in advance
-Amir