D
Davy
Guest
Hi,
I want to write SystemVerilog testbench for traditional Verilog module.
But I have no idea how to SystemVerilog interface to traditional
Verilog module? Can I both use modport and instance the module? Or is
there any walk around method? Thanks!
//----- Verilog Module-----
module dut(
CLK,
RESET,
DATA,
... ...
);
input CLK, RESET;
output DATA;
....
//-----------------------------------
and
//----- SystemVerilog Interface-----
interface dut_tb_if;
bit clk,reset,data;
modport... ...
//---------------------------------------------
Best regards,
Davy
I want to write SystemVerilog testbench for traditional Verilog module.
But I have no idea how to SystemVerilog interface to traditional
Verilog module? Can I both use modport and instance the module? Or is
there any walk around method? Thanks!
//----- Verilog Module-----
module dut(
CLK,
RESET,
DATA,
... ...
);
input CLK, RESET;
output DATA;
....
//-----------------------------------
and
//----- SystemVerilog Interface-----
interface dut_tb_if;
bit clk,reset,data;
modport... ...
//---------------------------------------------
Best regards,
Davy