Line 1... |
Line 1... |
-- This is a template for generate a grid row in the JART control.
|
-- Author : Julian Andres Guarin Reyes.
|
|
-- Project : JART, Just Another Ray Tracer.
|
|
-- email : jguarin2002 at gmail.com, j.guarin at javeriana.edu.co
|
|
|
-- The question is : ¿ Should I use all tiles of the row registered? Well for sure there are two possibilities :
|
-- This code was entirely written by Julian Andres Guarin Reyes.
|
-- 1 . Dont register them: But for there is going to be a maximun number of columns where porpagation times are going to be
|
-- The following code is licensed under GNU Public License
|
-- too high in order to substain a one clock upwards pipe. It depends upon the platform you are using how many columns you can implement in the row without registering them.
|
-- http://www.gnu.org/licenses/gpl-3.0.txt.
|
|
|
-- Ray Difussion Pipe Longitude (
|
-- This file is part of JART (Just Another Ray Tracer).
|
-- Row Ray Difussion Time ( RRDT ) in clks: 2 + log 2 (Number of Columns) clks.
|
|
-- An excellent difussion Time, but the max number of columns its limited by the platform specs.
|
|
-- Even it is an excellent time is not much of gain because this time is the same time of the pipe longitude, thus a result each clock is achieved anyway.
|
|
|
|
|
-- JART (Just Another Ray Tracer) is free software: you can redistribute it and/or modify
|
|
-- it under the terms of the GNU General Public License as published by
|
|
-- the Free Software Foundation, either version 3 of the License, or
|
|
-- (at your option) any later version.
|
|
|
|
-- JART (Just Another Ray Tracer) is distributed in the hope that it will be useful,
|
|
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
-- GNU General Public License for more details.
|
|
|
-- 2. Register them
|
-- 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/>.
|
|
|
|
|
|
-- This file is an instantiation of a dot cells row. The number of dot cells used is parameterizable.
|
library ieee;
|
library ieee;
|
use ieee.std_logic_1164.all;
|
use ieee.std_logic_1164.all;
|
use work.powerGrid.all;
|
use work.powerGrid.all;
|
|
|
|
|
Line 49... |
Line 59... |
oRayz: out std_logic_vector (viw - 1 downto 0);-- The ray output vector.
|
oRayz: out std_logic_vector (viw - 1 downto 0);-- The ray output vector.
|
vdOutput : out std_logic_vector (nlw*col - 1 downto 0) -- The dot product emerging from each dot prod cell.
|
vdOutput : out std_logic_vector (nlw*col - 1 downto 0) -- The dot product emerging from each dot prod cell.
|
);
|
);
|
end entity;
|
end entity;
|
|
|
|
|
|
|
architecture rtl of floor0Row is
|
architecture rtl of floor0Row is
|
|
|
signal sRayx : std_logic_vector ((col+1)*viw - 1 downto 0); -- The ray difussion nets.
|
signal sRayx : std_logic_vector ((col+1)*viw - 1 downto 0); -- The ray difussion nets.
|
signal sRayy : std_logic_vector ((col+1)*viw - 1 downto 0); -- The ray difussion nets.
|
signal sRayy : std_logic_vector ((col+1)*viw - 1 downto 0); -- The ray difussion nets.
|
signal sRayz : std_logic_vector ((col+1)*viw - 1 downto 0); -- The ray difussion nets.
|
signal sRayz : std_logic_vector ((col+1)*viw - 1 downto 0); -- The ray difussion nets.
|