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

[pci] // fill write memories with random data



Hi

I would like to know why are the delays there needed. I have commented them, since I beleive the memories should be initialized right at time 0.

task fill_memory ;
    integer temp_index ;
begin
    // fill write memories with random data
    for( temp_index = 0; temp_index <=1023; temp_index = temp_index + 1 )
    begin
        wmem_data[temp_index[9:0]] = $random ;
        //by PK
        /*
        # 1;
        */
        wio_data[temp_index[9:0]]  = $random ;
        //by PK
        /*
        # 1;
        */
    end
    // fill WB slave behavioral MEMORY
    for( temp_index = 0; temp_index <=65535; temp_index = temp_index + 1 )
    begin
        wishbone_slave.wb_memory[temp_index[15:0]] = $random ;
        //by PK
        /*
        # 1;
        */
    end
end
endtask // fill_memory

--
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