[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pci] do_reset task



Why is reset asserted with blocking (reset = 1'b1 ;) and de-asserted with non blocking (reset <= 1'b0 ;).

I suggest using non blocking for both.
task do_reset;
begin
    next_test_name[79:0] <= "Reset.....";

    reset = 1'b1 ;
    #100 ;
    `ifdef HOST
        @(posedge wb_clock) ;
    `else
    `ifdef GUEST
        @(posedge pci_clock) ;
    `endif
    `endif

    //by PK RV why is it a non-blocking
    //reset <= 1'b0 ;
    reset = 1'b0 ;

end
endtask


--
Best Regards,

Pinhas Krengel
Sr. ASIC / FPGA Engineer
Formalized Design Alliance Partner
011 972-9-894-7865 Home Office
011 972-54-679-119 Portable
480-545-4555 Jim McHood, VP Engineering
www.formalized.com

--


--
To unsubscribe from pci mailing list please visit http://www.opencores.org/mailinglists.shtml