2.2、實例
bit [7:0] hp_chn_id;
bit [7:0] lp_chn_id;
bit [31:0] dsb_hp_src[$];
bit [23:0] dsb_lp_src[$];
virtual dfe_dsb_if.mon intf_mon;
task dfe_dsb_scoreboard::debug_interface();
forever begin
@(hp_chn_id or lp_chn_id or dsb_hp_src[0] or dsb_lp_src[0]);
intf_mon.monck.hp_chn_id <= hp_chn_id;
intf_mon.monck.lp_chn_id <= lp_chn_id;
intf_mon.monck.dsb_hp_src <= dsb_hp_src[0];
intf_mon.monck.dsb_lp_src <= dsb_lp_src[0];
end