OpenCores
URL https://opencores.org/ocsvn/zap/zap/trunk

Subversion Repositories zap

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /zap/trunk
    from Rev 11 to Rev 12
    Reverse comparison

Rev 11 → Rev 12

/ZAP/hw/rtl/inc/zap_functions.vh
27,7 → 27,10
// Function to generate clog2. $clog2 used instead in most places.
//
function [31:0] zap_clog2 ( input [31:0] x );
for(zap_clog2 = 0 ; 2**zap_clog2 < x ; zap_clog2 = zap_clog2 + 1);
for(zap_clog2 = 0 ; 2**zap_clog2 < x ; zap_clog2 = zap_clog2 + 1)
begin
// Some compilers do not support empty loops.
end
endfunction
 
// ----------------------------------------------------------------------------

powered by: WebSVN 2.1.0

© copyright 1999-2022 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.