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

Subversion Repositories raytrac

[/] [raytrac/] [branches/] [fp_sgdma/] [ap_n_dpc.vhd] - Blame information for rev 138

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 123 jguarin200
--! @file dpc.vhd
2 122 jguarin200
--! @brief Decodificador de operacion. 
3 128 jguarin200
--! @author Julián Andrés Guarín Reyes
4 122 jguarin200
--------------------------------------------------------------
5
-- RAYTRAC
6
-- Author Julian Andres Guarin
7 123 jguarin200
-- dpc.vhd
8 122 jguarin200
-- This file is part of raytrac.
9
-- 
10
--     raytrac is free software: you can redistribute it and/or modify
11
--     it under the terms of the GNU General Public License as published by
12
--     the Free Software Foundation, either version 3 of the License, or
13
--     (at your option) any later version.
14
-- 
15
--     raytrac is distributed in the hope that it will be useful,
16
--     but WITHOUT ANY WARRANTY; without even the implied warranty of
17
--     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
--     GNU General Public License for more details.
19
-- 
20
--     You should have received a copy of the GNU General Public License
21
--     along with raytrac.  If not, see <http://www.gnu.org/licenses/>.
22
 
23
library ieee;
24
use ieee.std_logic_1164.all;
25 134 jguarin200
 
26 123 jguarin200
entity dpc is
27 122 jguarin200
        generic (
28 132 jguarin200
                width : integer := 32
29
                --!external_readable_widthad    : integer := integer(ceil(log(real(external_readable_blocks),2.0))))                    
30 122 jguarin200
        );
31
        port (
32 138 jguarin200
                clk,ena                                 : in    std_logic;
33 127 jguarin200
                paraminput                              : in    std_logic_vector ((12*width)-1 downto 0);        --! Vectores A,B,C,D
34
                prd32blko                               : in    std_logic_vector ((06*width)-1 downto 0);        --! Salidas de los 6 multiplicadores.
35
                add32blko                               : in    std_logic_vector ((04*width)-1 downto 0);        --! Salidas de los 4 sumadores.
36 136 jguarin200
                sqr32blko,inv32blko             : in    std_logic_vector (width-1 downto 0);             --! Salidas de la raiz cuadradas y el inversor.
37 138 jguarin200
                fifo32x23_q                             : in    std_logic_vector (03*width-1 downto 0);          --! Salida de la cola intermedia.
38 127 jguarin200
                fifo32x09_q                             : in    std_logic_vector (02*width-1 downto 0);  --! Salida de las colas de producto punto. 
39
                unary,crossprod,addsub  : in    std_logic;                                                                      --! Bit con el identificador del bloque AB vs CD e identificador del sub bloque (A/B) o (C/D). 
40
                scalar                                  : in    std_logic;
41 136 jguarin200
                sqr32blki,inv32blki             : out   std_logic_vector (width-1 downto 0);             --! Salidas de las 2 raices cuadradas y los 2 inversores.
42 127 jguarin200
                fifo32x26_d                             : out   std_logic_vector (03*width-1 downto 0);          --! Entrada a la cola intermedia para la normalizaci&oacute;n.
43
                fifo32x09_d                             : out   std_logic_vector (02*width-1 downto 0);          --! Entrada a las colas intermedias del producto punto.         
44
                prd32blki                               : out   std_logic_vector ((12*width)-1 downto 0);        --! Entrada de los 12 factores en el bloque de multiplicaci&oacute;n respectivamente.
45
                add32blki                               : out   std_logic_vector ((08*width)-1 downto 0);        --! Entrada de los 8 sumandos del bloque de 4 sumadores.  
46
 
47
                resultoutput                    : out   std_logic_vector ((08*width)-1 downto 0)         --! 6 salidas de resultados, pues lo m&aacute;ximo que podr&aacute; calcularse por cada clock son 2 vectores. 
48 122 jguarin200
        );
49 123 jguarin200
end dpc;
50 122 jguarin200
 
51 123 jguarin200
architecture dpc_arch of dpc is
52 125 jguarin200
 
53
        constant qz : integer := 00;constant qy : integer := 01;constant qx : integer := 02;
54 123 jguarin200
        constant az : integer := 00;constant ay : integer := 01;constant ax : integer := 02;constant bz : integer := 03;constant by : integer := 04;constant bx : integer := 05;
55
        constant cz : integer := 06;constant cy : integer := 07;constant cx : integer := 08;constant dz : integer := 09;constant dy : integer := 10;constant dx : integer := 11;
56
        constant f0     : integer := 00;constant f1 : integer := 01;constant f2 : integer := 02;constant f3 : integer := 03;constant f4 : integer := 04;constant f5 : integer := 05;
57
        constant f6     : integer := 06;constant f7 : integer := 07;constant f8 : integer := 08;constant f9 : integer := 09;constant f10: integer := 10;constant f11: integer := 11;
58
        constant s0     : integer := 00;constant s1 : integer := 01;constant s2 : integer := 02;constant s3 : integer := 03;constant s4 : integer := 04;constant s5 : integer := 05;
59 127 jguarin200
        constant s6     : integer := 06;constant s7 : integer := 07;
60
        constant a0     : integer := 00;constant a1 : integer := 01;constant a2 : integer := 02;constant aa : integer := 03;
61 123 jguarin200
        constant p0     : integer := 00;constant p1 : integer := 01;constant p2 : integer := 02;constant p3 : integer := 03;constant p4 : integer := 04;constant p5 : integer := 05;
62 127 jguarin200
 
63 124 jguarin200
        constant dpfifoab : integer := 00;
64
        constant dpfifocd : integer := 01;
65
 
66 122 jguarin200
 
67 123 jguarin200
        type    vectorblock12 is array (11 downto 0) of std_logic_vector(width-1 downto 0);
68 127 jguarin200
        type    vectorblock08 is array (07 downto 0) of std_logic_vector(width-1 downto 0);
69 123 jguarin200
        type    vectorblock06 is array (05 downto 0) of std_logic_vector(width-1 downto 0);
70 127 jguarin200
        type    vectorblock04 is array (03 downto 0) of std_logic_vector(width-1 downto 0);
71 124 jguarin200
        type    vectorblock03 is array (02 downto 0) of std_logic_vector(width-1 downto 0);
72 123 jguarin200
        type    vectorblock02 is array (01 downto 0) of std_logic_vector(width-1 downto 0);
73 122 jguarin200
 
74 127 jguarin200
 
75
        signal sparaminput,sfactor                      : vectorblock12;
76
        signal ssumando,sresult                         : vectorblock08;
77
        signal sprd32blk                                        : vectorblock06;
78
        signal sadd32blk                                        : vectorblock04;
79 125 jguarin200
        signal snormfifo_q,snormfifo_d          : vectorblock03;
80 127 jguarin200
        signal sdpfifo_q                                        : vectorblock02;
81
        signal ssqr32blk,sinv32blk                      : std_logic_vector(width-1 downto 0);
82 123 jguarin200
 
83
begin
84 122 jguarin200
 
85 127 jguarin200
 
86
 
87 123 jguarin200
        stuff12:
88
        for i in 11 downto 0 generate
89
                sparaminput(i) <= paraminput(i*width+width-1 downto i*width);
90
                prd32blki(i*width+width-1 downto i*width) <= sfactor(i);
91 127 jguarin200
        end generate stuff12;
92
 
93
        stuff08:
94
        for i in 07 downto 0 generate
95 123 jguarin200
                add32blki(i*width+width-1 downto i*width) <= ssumando(i);
96 127 jguarin200
                resultoutput(i*width+width-1 downto i*width) <= sresult(i);
97
        end generate stuff08;
98 136 jguarin200
 
99 138 jguarin200
        register_products_outputs:
100
        process (clk,ena)
101 136 jguarin200
        begin
102 138 jguarin200
                if clk'event and clk='1' and ena='1' then
103 136 jguarin200
                        for i 05 downto 0 loop
104 138 jguarin200
                                sprd32blk(i)  <= prd32blko(i*width+width-1 downto i*width);
105 136 jguarin200
                        end loop;
106
                end if;
107
        end process;
108
 
109 138 jguarin200
        register_adder0_and_inversor_output:
110
        process (clk,ena)
111 136 jguarin200
        begin
112 138 jguarin200
                if clk'event and clk='1' and ena='1' then
113 136 jguarin200
                        sadd32blk(a0)  <= add32blko(a0*width+width-1 downto a0*width);
114
                        sinv32blk <= inv32blko;
115
                end if;
116
        end process;
117 138 jguarin200
 
118
        stuff04:
119
        for i in 03 downto 1 generate
120
                sadd32blk(i)  <= add32blko(i*width+width-1 downto i*width);
121
        end generate stuff04;
122
 
123
 
124 124 jguarin200
        stuff03:
125
        for i in 02 downto 0 generate
126 138 jguarin200
                snormfifo_q(i) <= fifo32x23_q(i*width+width-1 downto i*width);
127 124 jguarin200
                fifo32x26_d(i*width+width-1 downto i*width) <= snormfifo_d(i);
128
        end generate stuff03;
129
 
130 123 jguarin200
        stuff02:
131 127 jguarin200
        for i in 01 downto 0 generate
132
                sdpfifo_q(i)  <= fifo32x09_q(i*width+width-1 downto i*width);
133 123 jguarin200
        end generate stuff02;
134 124 jguarin200
        fifo32x09_d <= sprd32blk(p3)&sprd32blk(p2);
135 122 jguarin200
 
136 127 jguarin200
 
137
 
138
        ssqr32blk <= sqr32blko;
139
 
140 136 jguarin200
        --! Colas de salida de los distintos resultados;
141 127 jguarin200
        sresult(0) <= ssqr32blk;
142
        sresult(1) <= sadd32blk(a0);
143
        sresult(2) <= sadd32blk(a1);
144
        sresult(3) <= sadd32blk(a2);
145
        sresult(4) <= sadd32blk(aa);
146
        sresult(5) <= sprd32blk(p3);
147
        sresult(6) <= sprd32blk(p4);
148
        sresult(7) <= sprd32blk(p5);
149
 
150
        --! Cola de normalizacion
151
        snormfifo_d(qx) <= sparaminput(ax);
152
        snormfifo_d(qy) <= sparaminput(ay);
153
        snormfifo_d(qz) <= sparaminput(az);
154
 
155
 
156
 
157 136 jguarin200
        --! La entrada al inversor SIEMPRE viene con la salida de la raiz cuadrada
158
        inv32blki <= sqr32blko;
159
        --! La entrada de la ra’z cuadrada SIEMPRE viene con la salida del sumador 1.
160
        sqr32blki <= sadd32blk(a1);
161 127 jguarin200
 
162
 
163 136 jguarin200
 
164
        --! Conectar las entradas del sumador a, a la salida 
165
        ssumando(s6) <= sadd32blk(a2);
166
        ssumando(s7) <= sdpfifo_q(dpfifocd);
167
 
168
 
169 132 jguarin200
        mul:process(unary,addsub,crossprod,scalar,sparaminput,sinv32blk,sprd32blk,sadd32blk,sdpfifo_q,snormfifo_q)
170 123 jguarin200
        begin
171 124 jguarin200
 
172
 
173 127 jguarin200
                if unary='1' then
174
                        --! Magnitud y normalizacion
175
                        sfactor(f0) <= sparaminput(ax);
176
                        sfactor(f1) <= sparaminput(ax);
177
                        sfactor(f2) <= sparaminput(ay);
178
                        sfactor(f3) <= sparaminput(ay);
179
                        sfactor(f4) <= sparaminput(az);
180
                        sfactor(f5) <= sparaminput(az);
181
                        sfactor(f6) <= snormfifo_q(ax);
182
                        sfactor(f7) <= sinv32blk;
183
                        sfactor(f8) <= snormfifo_q(ay);
184
                        sfactor(f9) <= sinv32blk;
185
                        sfactor(f10) <= snormfifo_q(az);
186
                        sfactor(f11) <= sinv32blk;
187 129 jguarin200
                elsif crossprod='1' then
188 127 jguarin200
                        --! Solo productos punto
189
                        sfactor(f0) <= sparaminput(ay);
190
                        sfactor(f1) <= sparaminput(bz);
191
                        sfactor(f2) <= sparaminput(az);
192
                        sfactor(f3) <= sparaminput(by);
193
                        sfactor(f4) <= sparaminput(az);
194
                        sfactor(f5) <= sparaminput(bx);
195
                        sfactor(f6) <= sparaminput(ax);
196
                        sfactor(f7) <= sparaminput(bz);
197
                        sfactor(f8) <= sparaminput(ax);
198
                        sfactor(f9) <= sparaminput(by);
199
                        sfactor(f10) <= sparaminput(ay);
200
                        sfactor(f11) <= sparaminput(bx);
201 129 jguarin200
                elsif scalar='0' then --! Producto punto 
202 127 jguarin200
                        sfactor(f0) <=  sparaminput(ax) ;
203
                        sfactor(f1) <=  sparaminput(bx) ;
204
                        sfactor(f2) <=  sparaminput(ay) ;
205
                        sfactor(f3) <=  sparaminput(by) ;
206
                        sfactor(f4) <=  sparaminput(az) ;
207
                        sfactor(f5) <=  sparaminput(bz) ;
208
                        sfactor(f6) <=  sparaminput(cx) ;
209
                        sfactor(f7) <=  sparaminput(dx) ;
210
                        sfactor(f8) <=  sparaminput(cy) ;
211
                        sfactor(f9) <=  sparaminput(dy) ;
212
                        sfactor(f10) <= sparaminput(cz) ;
213
                        sfactor(f11) <= sparaminput(dz) ;
214
                else
215
                        sfactor(f0) <=  sparaminput(ax) ;
216
                        sfactor(f1) <=  sparaminput(bx) ;
217
                        sfactor(f2) <=  sparaminput(ay) ;
218
                        sfactor(f3) <=  sparaminput(by) ;
219
                        sfactor(f4) <=  sparaminput(az) ;
220
                        sfactor(f5) <=  sparaminput(bz) ;
221
                        sfactor(f6) <=  sparaminput(cx) ;
222
                        sfactor(f7) <=  sparaminput(dx) ;
223
                        sfactor(f8) <=  sparaminput(cy) ;
224
                        sfactor(f9) <=  sparaminput(dx) ;
225
                        sfactor(f10) <= sparaminput(cz) ;
226
                        sfactor(f11) <= sparaminput(dx) ;
227 126 jguarin200
 
228 125 jguarin200
                end if;
229 127 jguarin200
 
230 136 jguarin200
 
231 127 jguarin200
                if addsub='1' then
232
                        ssumando(s0) <= sparaminput(ax);
233
                        ssumando(s1) <= sparaminput(bx);
234
                        ssumando(s2) <= sparaminput(ay);
235
                        ssumando(s3) <= sparaminput(by);
236
                        ssumando(s4) <= sparaminput(az);
237
                        ssumando(s5) <= sparaminput(bz);
238
                else
239
                        ssumando(s0) <= sprd32blk(p0);
240
                        ssumando(s1) <= sprd32blk(p1);
241 132 jguarin200
                        if crossprod='0' then
242
                                ssumando(s2) <= sadd32blk(a0);
243
                                ssumando(s3) <= sdpfifo_q(dpfifoab);
244
                        else
245
                                ssumando(s2) <= sprd32blk(p2);
246
                                ssumando(s3) <= sprd32blk(p3);
247
                        end if;
248 127 jguarin200
                        ssumando(s4) <= sprd32blk(p4);
249
                        ssumando(s5) <= sprd32blk(p5);
250
                end if;
251 123 jguarin200
        end process;
252
 
253
 
254 127 jguarin200
 
255
 
256
--      interconnection:process(instr3,hblockslab,abblockslab,cdblockslab,sparaminput,sprd32blk,sadd32blk,sdpfifo_q)
257
--      begin
258
--              --! La cola para la normalizacion de los vectores.
259
--              snormfifo_d(qx) <= (hblockslab and ((cdblockslab and sparaminput(dx))or(not(cdblockslab) and sparaminput(cx)))) or (not(hblockslab) and ((abblockslab and sparaminput(bx))or(not(abblockslab) and sparaminput(ax))));
260
--              snormfifo_d(qy) <= (hblockslab and ((cdblockslab and sparaminput(dy))or(not(cdblockslab) and sparaminput(cy)))) or (not(hblockslab) and ((abblockslab and sparaminput(by))or(not(abblockslab) and sparaminput(ay))));
261
--              snormfifo_d(qz) <= (hblockslab and ((cdblockslab and sparaminput(dz))or(not(cdblockslab) and sparaminput(cz)))) or (not(hblockslab) and ((abblockslab and sparaminput(bz))or(not(abblockslab) and sparaminput(az))));
262
--      
263
--              --! Combinatorio para decidir que operaciones realizan los sumadores / restadores.
264
--              add32blks <= (instr3(0) xor (instr3(1) xor instr3(0)))&(instr3(0) xor (instr3(1) xor instr3(0))) ;
265
--              
266
--              --! Por defecto conectar los sumandos en producto punto/cruz
267
--              ssumando(s0) <= sprd32blk(p0);ssumando(s1) <= sprd32blk(p1);
268
--              ssumando(s6) <= sadd32blk(a0);ssumando(s7) <= sdpfifo_q(dpfifoab);
269
--              ssumando(s10) <= sdpfifo_q(dpfifocd);ssumando(s11) <= sadd32blk(a2);
270
--              ssumando(s4) <= sprd32blk(p4);ssumando(s5) <= sprd32blk(p5);
271
--              ssumando(s2) <= sprd32blk(p2);ssumando(s3) <= sprd32blk(p3);
272
--              
273
--              --! El segundo sumador del segundo bloque siempre sera suma o resta independiente de la operacion
274
--              ssumando(s8) <= sparaminput(cy);ssumando(s9) <= sparaminput(dy);        
275
--
276
--              --! Por defecto conectar los factores en producto punto
277
--              sfactor(f0) <= sparaminput(ax);sfactor(f1) <= sparaminput(bx);
278
--              sfactor(f2) <= sparaminput(ay);sfactor(f3) <= sparaminput(by);
279
--              sfactor(f4) <= sparaminput(az);sfactor(f5) <= sparaminput(bz);
280
--              sfactor(f6) <= sparaminput(bx);sfactor(f7) <= sparaminput(dx);
281
--              sfactor(f8) <= sparaminput(by);sfactor(f9) <= sparaminput(dy);
282
--              sfactor(f10) <= sparaminput(bz);sfactor(f11) <= sparaminput(dz);
283
--              
284
--              --!Los resultados por defecto se acomodan al producto punto y parcialmente a los productos simple y escalar.
285
--              sresult(ax) <= sadd32blk(aa);
286
--              sresult(ay) <= sprd32blk(p1);
287
--              sresult(az) <= sprd32blk(p2);
288
--              sresult(bx) <= sadd32blk(ac);
289
--              sresult(by) <= sprd32blk(p4);
290
--              sresult(bz) <= sprd32blk(p5);
291
--              
292
--              if (instr3(2 downto 1)="11" or instr3="100") then
293
--                      sresult(ax) <= sprd32blk(p0);
294
--                      sresult(bx) <= sprd32blk(p3);
295
--              elsif instr3(0)='1' then
296
--                      sresult(ax) <= sprd32blk(a0);
297
--                      sresult(ay) <= sprd32blk(a1);
298
--                      sresult(az) <= sprd32blk(a2);
299
--                      sresult(bx) <= sadd32blk(aa);
300
--                      sresult(by) <= sprd32blk(ab);
301
--                      sresult(bz) <= sadd32blk(ac);
302
--              elsif instr3(1)='1' then
303
--                      sresult(ax) <= ssqr32blk(sqrt320);
304
--                      sresult(bx) <= ssqr32blk(sqrt321);
305
--              end if;
306
--                      
307
--
308
--              if instr3(0)='1' then   --! Producto Cruz, suma, resta, multiplicacion simple
309
--
310
--                      if (instr3(2) or instr3(1))='1' then --! Suma, Resta, Multiplicacion simple
311
--                              
312
--                              --! Conectar las entradas de los sumadores en suma o resta de vectores 
313
--                              ssumando(s0) <= sparaminput(ax);ssumando(s1) <= sparaminput(bx);
314
--                              ssumando(s2) <= sparaminput(ay);ssumando(s3) <= sparaminput(by);
315
--                              ssumando(s4) <= sparaminput(az);ssumando(s5) <= sparaminput(bz);
316
--                              ssumando(s6) <= sparaminput(cx);ssumando(s7) <= sparaminput(dx);                                
317
--                              ssumando(s10) <= sparaminput(cz);ssumando(s11) <= sparaminput(dz);
318
--                      
319
--                      else --! Producto Cruz!
320
--                              
321
--                              if hblock='1' then      --! Producto crux CxD 
322
--                                      --!Multiplicadores: 
323
--                                      sfactor(f0) <= sparaminput(cy);sfactor(f1) <= sparaminput(dz);sfactor(f2) <= sparaminput(cz);sfactor(f3) <= sparaminput(dy);
324
--                                      sfactor(f4) <= sparaminput(cx);sfactor(f5) <= sparaminput(dz);sfactor(f6) <= sparaminput(cz);sfactor(f7) <= sparaminput(dx);
325
--                                      sfactor(f8) <= sparaminput(cx);sfactor(f9) <= sparaminput(dy);sfactor(f10) <= sparaminput(cy);sfactor(f11) <= sparaminput(dx);
326
--                              else                            --! Producto crux AxD
327
--                                      --!Multiplicadores:                                     
328
--                                      sfactor(f0) <= sparaminput(ay);sfactor(f1) <= sparaminput(bz);sfactor(f2) <= sparaminput(az);sfactor(f3) <= sparaminput(by);
329
--                                      sfactor(f4) <= sparaminput(ax);sfactor(f5) <= sparaminput(bz);sfactor(f6) <= sparaminput(az);sfactor(f7) <= sparaminput(bx);
330
--                                      sfactor(f8) <= sparaminput(ax);sfactor(f9) <= sparaminput(by);sfactor(f10) <= sparaminput(ay);sfactor(f11) <= sparaminput(bx);
331
--                              end if;
332
--
333
--                      end if;
334
--
335
--              else                                    --! Producto Punto, magnitud, producto escalar y normalizacion  
336
--                      if instr3(2)='1' then           --!Producto Escalar (INSTR3(1)=0) o Normalizacion (INSTR3(1)=1) 
337
--                              
338
--                              sfactor(f0) <= (not instr31slab and sparaminput(ax)) or (instr31slab and ((not(hblockslab) and ((not(abblockslab) and sparaminput(ax)) or(abblockslab and sparaminput(bx))))or( hblockslab and snormfifo_q(qx)) ) );
339
--                              sfactor(f1) <= (not instr31slab and sparaminput(bx)) or (instr31slab and ((not(hblockslab) and ((not(abblockslab) and sparaminput(ax)) or(abblockslab and sparaminput(bx))))or( hblockslab and sinv32blk(invr321)) ) );
340
--                              sfactor(f2) <= (not instr31slab and sparaminput(ay)) or (instr31slab and ((not(hblockslab) and ((not(abblockslab) and sparaminput(ay)) or(abblockslab and sparaminput(by))))or( hblockslab and snormfifo_q(qy)) ) );
341
--                              sfactor(f3) <= (not instr31slab and sparaminput(bx)) or (instr31slab and ((not(hblockslab) and ((not(abblockslab) and sparaminput(ay)) or(abblockslab and sparaminput(by))))or( hblockslab and sinv32blk(invr321)) ) );
342
--                              sfactor(f4) <= (not instr31slab and sparaminput(az)) or (instr31slab and ((not(hblockslab) and ((not(abblockslab) and sparaminput(az)) or(abblockslab and sparaminput(bz))))or( hblockslab and snormfifo_q(qz)) ) );
343
--                              sfactor(f5) <= (not instr31slab and sparaminput(bx)) or (instr31slab and ((not(hblockslab) and ((not(abblockslab) and sparaminput(az)) or(abblockslab and sparaminput(bz))))or( hblockslab and sinv32blk(invr321)) ) );
344
--                              sfactor(f6) <= (not instr31slab and sparaminput(cx)) or (instr31slab and ((hblockslab and ((not(cdblockslab) and sparaminput(cx)) or(cdblockslab and sparaminput(dx))))or( not(hblockslab) and snormfifo_q(qx)) ) );
345
--                              sfactor(f7) <= (not instr31slab and sparaminput(dx)) or (instr31slab and ((hblockslab and ((not(cdblockslab) and sparaminput(cx)) or(cdblockslab and sparaminput(dx))))or( not(hblockslab) and sinv32blk(invr320)) ) );
346
--                              sfactor(f8) <= (not instr31slab and sparaminput(cy)) or (instr31slab and ((hblockslab and ((not(cdblockslab) and sparaminput(cy)) or(cdblockslab and sparaminput(dy))))or( not(hblockslab) and snormfifo_q(qy)) ) );
347
--                              sfactor(f9) <= (not instr31slab and sparaminput(dx)) or (instr31slab and ((hblockslab and ((not(cdblockslab) and sparaminput(cy)) or(cdblockslab and sparaminput(dy))))or( not(hblockslab) and sinv32blk(invr320)) ) );
348
--                              sfactor(f10) <= (not instr31slab and sparaminput(cz)) or (instr31slab and ((hblockslab and ((not(cdblockslab) and sparaminput(cz)) or(cdblockslab and sparaminput(dz))))or( not(hblockslab) and snormfifo_q(qz)) ) );
349
--                              sfactor(f11) <= (not instr31slab and sparaminput(dx)) or (instr31slab and ((hblockslab and ((not(cdblockslab) and sparaminput(cz)) or(cdblockslab and sparaminput(dz))))or( not(hblockslab) and sinv32blk(invr320)) ) );
350
--                      elsif instr3(1)='1' then        --!Magnitud. El producto punto no se computa porque los factores estan por defecto configurados en producto punto.                              
351
--                              sfactor(f0) <= (not(abblockslab) and sparaminput(ax))or(abblockslab and sparaminput(bx));
352
--                              sfactor(f1) <= (not(abblockslab) and sparaminput(ax))or(abblockslab and sparaminput(bx));
353
--                              sfactor(f2) <= (not(abblockslab) and sparaminput(ay))or(abblockslab and sparaminput(by));
354
--                              sfactor(f3) <= (not(abblockslab) and sparaminput(ay))or(abblockslab and sparaminput(by));
355
--                              sfactor(f4) <= (not(abblockslab) and sparaminput(az))or(abblockslab and sparaminput(bz));
356
--                              sfactor(f5) <= (not(abblockslab) and sparaminput(az))or(abblockslab and sparaminput(bz));
357
--                              sfactor(f6) <= (not(cdblockslab) and sparaminput(cx))or(cdblockslab and sparaminput(dx));
358
--                              sfactor(f7) <= (not(cdblockslab) and sparaminput(cx))or(cdblockslab and sparaminput(dx));
359
--                              sfactor(f8) <= (not(cdblockslab) and sparaminput(cy))or(cdblockslab and sparaminput(dy));
360
--                              sfactor(f9) <= (not(cdblockslab) and sparaminput(cy))or(cdblockslab and sparaminput(dy));
361
--                              sfactor(f10) <= (not(cdblockslab) and sparaminput(cz))or(cdblockslab and sparaminput(dz));
362
--                              sfactor(f11) <= (not(cdblockslab) and sparaminput(cz))or(cdblockslab and sparaminput(dz));
363
--                                      
364
--                      end if;
365
--              end if;
366
--                              
367
--      end process;
368
--      
369
 
370 123 jguarin200
end dpc_arch;

powered by: WebSVN 2.1.0

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