Code Browser Pages:
| // by gopi@testbench.in constraint rx_packet::test_case { length == 70 ; FCS_t == FCS_GOOD;TAG_t == NOTAG; SFD_t == SFD_GOOD ; PREAM_t == PREAM_EQL7;} constraint packet::test_case { length > 70 ; length < 1000 ; TAG_t == NOTAG; } program main(host_intf h_if,phy_intf p_if,cfg_intf c_if); initial begin env e; bit status; e = new(h_if,p_if,c_if); e.set_rx_num_pkts(10); e.set_tx_num_pkts(1); e.Set_timeout(20000000); e.run(); end endprogram |