URL
https://opencores.org/ocsvn/amber/amber/trunk
Subversion Repositories amber
Compare Revisions
- This comparison shows the changes necessary to convert path
/amber/trunk/hw/vlog/amber23
- from Rev 58 to Rev 63
- ↔ Reverse comparison
Rev 58 → Rev 63
/a23_functions.v
163,11 → 163,12
function [31:0] log2; |
input [31:0] num; |
integer i; |
|
integer out; |
begin |
log2 = 32'd0; |
out = 32'd0; |
for (i=0; i<30; i=i+1) |
if ((2**i > num) && (log2 == 0)) |
log2 = i-1; |
if ((2**i > num) && (out == 0)) |
out = i-1; |
log2 = out; |
end |
endfunction |
/a23_decompile.v
39,7 → 39,7
// from http://www.opencores.org/lgpl.shtml // |
// // |
////////////////////////////////////////////////////////////////// |
|
`include "global_defines.v" |
`include "a23_config_defines.v" |
|
module a23_decompile |
/a23_cache.v
42,7 → 42,7
// from http://www.opencores.org/lgpl.shtml // |
// // |
////////////////////////////////////////////////////////////////// |
|
`include "global_defines.v" |
`include "a23_config_defines.v" |
|
module a23_cache |
/a23_decode.v
39,8 → 39,8
// from http://www.opencores.org/lgpl.shtml // |
// // |
////////////////////////////////////////////////////////////////// |
`include "global_defines.v" |
|
|
module a23_decode |
( |
input i_clk, |