-- email : jguarin2002 at gmail.com, j.guarin at javeriana.edu.co
-- This code was entirely written by Julian Andres Guarin Reyes.
-- This code was entirely written by Julian Andres Guarin Reyes.
-- The following code is licensed under GNU Public License
-- The following code is licensed under GNU Public License
-- http://www.gnu.org/licenses/gpl-3.0.txt.
-- http://www.gnu.org/licenses/gpl-3.0.txt.
Line 19...
Line 20...
-- You should have received a copy of the GNU General Public License
-- You should have received a copy of the GNU General Public License
-- along with JART (Just Another Ray Tracer). If not, see <http://www.gnu.org/licenses/>.
-- along with JART (Just Another Ray Tracer). If not, see <http://www.gnu.org/licenses/>.
-- The following HDL is compares 2 32 bit numbers instantiating a comparator.
-- The following HDL compares 2 32 bit numbers instantiating a comparator.
-- vd is one operand and k the other.
-- vd is one operand and k the other.
-- i is the result 1 if vd is grater or equal than k.
-- i is the result 1 if vd is grater or equal than k.
-- The comparator instantiation is called intersection, cause this block function is to decide wheter or not a ray intersects a sphere making the vd and k,
-- The comparator instantiation is called intersection, cause this block function is to decide wheter or not a ray intersects a sphere making the vd and k,