URL
https://opencores.org/ocsvn/raytrac/raytrac/trunk
[/] [raytrac/] [trunk/] [sqrtdiv/] [RLshifter.vhd] - Diff between revs 78 and 81
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 78 |
Rev 81 |
Line 54... |
Line 54... |
|
|
inverse:
|
inverse:
|
process (mantis,exp)
|
process (mantis,exp)
|
variable expi : integer ;
|
variable expi : integer ;
|
begin
|
begin
|
if shiftFunction="INVERSION" then
|
|
expi:= conv_integer(exp);
|
|
else
|
|
expi:= conv_integer(exp(exp'high downto 1)); --! Por qu'e hasta 1 y no hasta 0!? Porque el corrimiento de la raiz cuadrada es 2^(N/2)
|
expi:= conv_integer(exp(exp'high downto 1)); --! Por qu'e hasta 1 y no hasta 0!? Porque el corrimiento de la raiz cuadrada es 2^(N/2)
|
end if;
|
|
|
|
for i in owidth-1 downto 0 loop
|
for i in owidth-1 downto 0 loop
|
|
|
result(i)<='0';
|
result(i)<='0';
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.