|
@@
-19,26
+19,28
|
|
19
|
-- Author : Jean-christophe Pellion
|
|
19
|
-- Author : Jean-christophe Pellion
|
|
20
|
-- Mail : jean-christophe.pellion@lpp.polytechnique.fr
|
|
20
|
-- Mail : jean-christophe.pellion@lpp.polytechnique.fr
|
|
21
|
-- jean-christophe.pellion@easii-ic.com
|
|
21
|
-- jean-christophe.pellion@easii-ic.com
|
|
22
|
----------------------------------------------------------------------------
|
|
22
|
-------------------------------------------------------------------------------
|
|
23
|
LIBRARY ieee;
|
|
23
|
LIBRARY ieee;
|
|
24
|
USE ieee.std_logic_1164.ALL;
|
|
24
|
USE ieee.std_logic_1164.ALL;
|
|
25
|
USE ieee.numeric_std.ALL;
|
|
25
|
USE ieee.numeric_std.ALL;
|
|
|
|
|
26
|
|
|
26
|
LIBRARY grlib;
|
|
27
|
LIBRARY grlib;
|
|
27
|
USE grlib.amba.ALL;
|
|
28
|
USE grlib.amba.ALL;
|
|
28
|
USE grlib.stdlib.ALL;
|
|
29
|
USE grlib.stdlib.ALL;
|
|
29
|
USE grlib.devices.ALL;
|
|
30
|
USE grlib.devices.ALL;
|
|
|
|
|
31
|
|
|
30
|
LIBRARY lpp;
|
|
32
|
LIBRARY lpp;
|
|
31
|
USE lpp.lpp_lfr_pkg.ALL;
|
|
33
|
USE lpp.lpp_lfr_pkg.ALL;
|
|
32
|
--USE lpp.lpp_amba.ALL;
|
|
|
|
|
33
|
USE lpp.apb_devices_list.ALL;
|
|
34
|
USE lpp.apb_devices_list.ALL;
|
|
34
|
USE lpp.lpp_memory.ALL;
|
|
35
|
USE lpp.lpp_memory.ALL;
|
|
|
|
|
36
|
USE lpp.lpp_lfr_apbreg_pkg.ALL;
|
|
|
|
|
37
|
|
|
35
|
LIBRARY techmap;
|
|
38
|
LIBRARY techmap;
|
|
36
|
USE techmap.gencomp.ALL;
|
|
39
|
USE techmap.gencomp.ALL;
|
|
37
|
|
|
40
|
|
|
38
|
ENTITY lpp_lfr_apbreg IS
|
|
41
|
ENTITY lpp_lfr_apbreg IS
|
|
39
|
GENERIC (
|
|
42
|
GENERIC (
|
|
40
|
nb_data_by_buffer_size : INTEGER := 11;
|
|
43
|
nb_data_by_buffer_size : INTEGER := 11;
|
|
41
|
-- nb_word_by_buffer_size : INTEGER := 11;
|
|
|
|
|
42
|
nb_snapshot_param_size : INTEGER := 11;
|
|
44
|
nb_snapshot_param_size : INTEGER := 11;
|
|
43
|
delta_vector_size : INTEGER := 20;
|
|
45
|
delta_vector_size : INTEGER := 20;
|
|
44
|
delta_vector_size_f0_2 : INTEGER := 3;
|
|
46
|
delta_vector_size_f0_2 : INTEGER := 3;
|
|
@@
-146,9
+148,13
ARCHITECTURE beh OF lpp_lfr_apbreg IS
|
|
146
|
CONSTANT REVISION : INTEGER := 1;
|
|
148
|
CONSTANT REVISION : INTEGER := 1;
|
|
147
|
|
|
149
|
|
|
148
|
CONSTANT pconfig : apb_config_type := (
|
|
150
|
CONSTANT pconfig : apb_config_type := (
|
|
149
|
0 => ahb_device_reg (VENDOR_LPP, LPP_LFR, 0, REVISION, pirq_wfp),
|
|
151
|
0 => ahb_device_reg (lpp.apb_devices_list.VENDOR_LPP, lpp.apb_devices_list.LPP_LFR, 0, REVISION, pirq_wfp),
|
|
150
|
1 => apb_iobar(paddr, pmask));
|
|
152
|
1 => apb_iobar(paddr, pmask));
|
|
151
|
|
|
153
|
|
|
|
|
|
154
|
--CONSTANT pconfig : apb_config_type := (
|
|
|
|
|
155
|
-- 0 => ahb_device_reg (16#19#, 16#19#, 0, REVISION, pirq_wfp),
|
|
|
|
|
156
|
-- 1 => apb_iobar(paddr, pmask));
|
|
|
|
|
157
|
|
|
152
|
TYPE lpp_SpectralMatrix_regs IS RECORD
|
|
158
|
TYPE lpp_SpectralMatrix_regs IS RECORD
|
|
153
|
config_active_interruption_onNewMatrix : STD_LOGIC;
|
|
159
|
config_active_interruption_onNewMatrix : STD_LOGIC;
|
|
154
|
config_active_interruption_onError : STD_LOGIC;
|
|
160
|
config_active_interruption_onError : STD_LOGIC;
|
|
@@
-259,6
+265,8
ARCHITECTURE beh OF lpp_lfr_apbreg IS
|
|
259
|
-----------------------------------------------------------------------------
|
|
265
|
-----------------------------------------------------------------------------
|
|
260
|
SIGNAL reg_ready_buffer_f : STD_LOGIC_VECTOR( 2*4-1 DOWNTO 0);
|
|
266
|
SIGNAL reg_ready_buffer_f : STD_LOGIC_VECTOR( 2*4-1 DOWNTO 0);
|
|
261
|
|
|
267
|
|
|
|
|
|
268
|
SIGNAL pirq_temp : STD_LOGIC_VECTOR(31 DOWNTO 0);
|
|
|
|
|
269
|
|
|
262
|
BEGIN -- beh
|
|
270
|
BEGIN -- beh
|
|
263
|
|
|
271
|
|
|
264
|
-- status_ready_matrix_f0 <= reg_sp.status_ready_matrix_f0;
|
|
272
|
-- status_ready_matrix_f0 <= reg_sp.status_ready_matrix_f0;
|
|
@@
-385,6
+393,11
BEGIN -- beh
|
|
385
|
|
|
393
|
|
|
386
|
reg_wp.status_ready_buffer_f <= (OTHERS => '0');
|
|
394
|
reg_wp.status_ready_buffer_f <= (OTHERS => '0');
|
|
387
|
reg_wp.length_buffer <= (OTHERS => '0');
|
|
395
|
reg_wp.length_buffer <= (OTHERS => '0');
|
|
|
|
|
396
|
|
|
|
|
|
397
|
pirq_temp <= (OTHERS => '0');
|
|
|
|
|
398
|
|
|
|
|
|
399
|
reg_wp.addr_buffer_f <= (OTHERS => '0');
|
|
|
|
|
400
|
|
|
388
|
ELSIF HCLK'EVENT AND HCLK = '1' THEN -- rising clock edge
|
|
401
|
ELSIF HCLK'EVENT AND HCLK = '1' THEN -- rising clock edge
|
|
389
|
|
|
402
|
|
|
390
|
-- status_full_ack <= (OTHERS => '0');
|
|
403
|
-- status_full_ack <= (OTHERS => '0');
|
|
@@
-420,12
+433,14
BEGIN -- beh
|
|
420
|
IF apbi.psel(pindex) = '1' THEN
|
|
433
|
IF apbi.psel(pindex) = '1' THEN
|
|
421
|
-- APB DMA READ --
|
|
434
|
-- APB DMA READ --
|
|
422
|
CASE paddr(7 DOWNTO 2) IS
|
|
435
|
CASE paddr(7 DOWNTO 2) IS
|
|
423
|
--0
|
|
436
|
|
|
424
|
WHEN "000000" => prdata(0) <= reg_sp.config_active_interruption_onNewMatrix;
|
|
437
|
WHEN ADDR_LFR_SM_CONFIG =>
|
|
|
|
|
438
|
prdata(0) <= reg_sp.config_active_interruption_onNewMatrix;
|
|
425
|
prdata(1) <= reg_sp.config_active_interruption_onError;
|
|
439
|
prdata(1) <= reg_sp.config_active_interruption_onError;
|
|
426
|
prdata(2) <= reg_sp.config_ms_run;
|
|
440
|
prdata(2) <= reg_sp.config_ms_run;
|
|
427
|
--1
|
|
441
|
|
|
428
|
WHEN "000001" => prdata(0) <= reg_sp.status_ready_matrix_f0_0;
|
|
442
|
WHEN ADDR_LFR_SM_STATUS =>
|
|
|
|
|
443
|
prdata(0) <= reg_sp.status_ready_matrix_f0_0;
|
|
429
|
prdata(1) <= reg_sp.status_ready_matrix_f0_1;
|
|
444
|
prdata(1) <= reg_sp.status_ready_matrix_f0_1;
|
|
430
|
prdata(2) <= reg_sp.status_ready_matrix_f1_0;
|
|
445
|
prdata(2) <= reg_sp.status_ready_matrix_f1_0;
|
|
431
|
prdata(3) <= reg_sp.status_ready_matrix_f1_1;
|
|
446
|
prdata(3) <= reg_sp.status_ready_matrix_f1_1;
|
|
@@
-436,54
+451,36
BEGIN -- beh
|
|
436
|
prdata(8) <= reg_sp.status_error_input_fifo_write(0);
|
|
451
|
prdata(8) <= reg_sp.status_error_input_fifo_write(0);
|
|
437
|
prdata(9) <= reg_sp.status_error_input_fifo_write(1);
|
|
452
|
prdata(9) <= reg_sp.status_error_input_fifo_write(1);
|
|
438
|
prdata(10) <= reg_sp.status_error_input_fifo_write(2);
|
|
453
|
prdata(10) <= reg_sp.status_error_input_fifo_write(2);
|
|
439
|
--2
|
|
454
|
|
|
440
|
WHEN "000010" => prdata <= reg_sp.addr_matrix_f0_0;
|
|
455
|
WHEN ADDR_LFR_SM_F0_0_ADDR => prdata <= reg_sp.addr_matrix_f0_0;
|
|
441
|
--3
|
|
456
|
WHEN ADDR_LFR_SM_F0_1_ADDR => prdata <= reg_sp.addr_matrix_f0_1;
|
|
442
|
WHEN "000011" => prdata <= reg_sp.addr_matrix_f0_1;
|
|
457
|
WHEN ADDR_LFR_SM_F1_0_ADDR => prdata <= reg_sp.addr_matrix_f1_0;
|
|
443
|
--4
|
|
458
|
WHEN ADDR_LFR_SM_F1_1_ADDR => prdata <= reg_sp.addr_matrix_f1_1;
|
|
444
|
WHEN "000100" => prdata <= reg_sp.addr_matrix_f1_0;
|
|
459
|
WHEN ADDR_LFR_SM_F2_0_ADDR => prdata <= reg_sp.addr_matrix_f2_0;
|
|
445
|
--5
|
|
460
|
WHEN ADDR_LFR_SM_F2_1_ADDR => prdata <= reg_sp.addr_matrix_f2_1;
|
|
446
|
WHEN "000101" => prdata <= reg_sp.addr_matrix_f1_1;
|
|
461
|
WHEN ADDR_LFR_SM_F0_0_TIME_COARSE => prdata <= reg_sp.time_matrix_f0_0(47 DOWNTO 16);
|
|
447
|
--6
|
|
462
|
WHEN ADDR_LFR_SM_F0_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f0_0(15 DOWNTO 0);
|
|
448
|
WHEN "000110" => prdata <= reg_sp.addr_matrix_f2_0;
|
|
463
|
WHEN ADDR_LFR_SM_F0_1_TIME_COARSE => prdata <= reg_sp.time_matrix_f0_1(47 DOWNTO 16);
|
|
449
|
--7
|
|
464
|
WHEN ADDR_LFR_SM_F0_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f0_1(15 DOWNTO 0);
|
|
450
|
WHEN "000111" => prdata <= reg_sp.addr_matrix_f2_1;
|
|
465
|
WHEN ADDR_LFR_SM_F1_0_TIME_COARSE => prdata <= reg_sp.time_matrix_f1_0(47 DOWNTO 16);
|
|
451
|
--8
|
|
466
|
WHEN ADDR_LFR_SM_F1_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f1_0(15 DOWNTO 0);
|
|
452
|
WHEN "001000" => prdata <= reg_sp.time_matrix_f0_0(47 DOWNTO 16);
|
|
467
|
WHEN ADDR_LFR_SM_F1_1_TIME_COARSE => prdata <= reg_sp.time_matrix_f1_1(47 DOWNTO 16);
|
|
453
|
--9
|
|
468
|
WHEN ADDR_LFR_SM_F1_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f1_1(15 DOWNTO 0);
|
|
454
|
WHEN "001001" => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f0_0(15 DOWNTO 0);
|
|
469
|
WHEN ADDR_LFR_SM_F2_0_TIME_COARSE => prdata <= reg_sp.time_matrix_f2_0(47 DOWNTO 16);
|
|
455
|
--10
|
|
470
|
WHEN ADDR_LFR_SM_F2_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f2_0(15 DOWNTO 0);
|
|
456
|
WHEN "001010" => prdata <= reg_sp.time_matrix_f0_1(47 DOWNTO 16);
|
|
471
|
WHEN ADDR_LFR_SM_F2_1_TIME_COARSE => prdata <= reg_sp.time_matrix_f2_1(47 DOWNTO 16);
|
|
457
|
--11
|
|
472
|
WHEN ADDR_LFR_SM_F2_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f2_1(15 DOWNTO 0);
|
|
458
|
WHEN "001011" => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f0_1(15 DOWNTO 0);
|
|
473
|
WHEN ADDR_LFR_SM_LENGTH => prdata(25 DOWNTO 0) <= reg_sp.length_matrix;
|
|
459
|
--12
|
|
|
|
|
460
|
WHEN "001100" => prdata <= reg_sp.time_matrix_f1_0(47 DOWNTO 16);
|
|
|
|
|
461
|
--13
|
|
|
|
|
462
|
WHEN "001101" => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f1_0(15 DOWNTO 0);
|
|
|
|
|
463
|
--14
|
|
|
|
|
464
|
WHEN "001110" => prdata <= reg_sp.time_matrix_f1_1(47 DOWNTO 16);
|
|
|
|
|
465
|
--15
|
|
|
|
|
466
|
WHEN "001111" => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f1_1(15 DOWNTO 0);
|
|
|
|
|
467
|
--16
|
|
|
|
|
468
|
WHEN "010000" => prdata <= reg_sp.time_matrix_f2_0(47 DOWNTO 16);
|
|
|
|
|
469
|
--17
|
|
|
|
|
470
|
WHEN "010001" => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f2_0(15 DOWNTO 0);
|
|
|
|
|
471
|
--18
|
|
|
|
|
472
|
WHEN "010010" => prdata <= reg_sp.time_matrix_f2_1(47 DOWNTO 16);
|
|
|
|
|
473
|
--19
|
|
|
|
|
474
|
WHEN "010011" => prdata(15 DOWNTO 0) <= reg_sp.time_matrix_f2_1(15 DOWNTO 0);
|
|
|
|
|
475
|
--20
|
|
|
|
|
476
|
WHEN "010100" => prdata(25 DOWNTO 0) <= reg_sp.length_matrix;
|
|
|
|
|
477
|
---------------------------------------------------------------------
|
|
474
|
---------------------------------------------------------------------
|
|
478
|
--20
|
|
475
|
WHEN ADDR_LFR_WP_DATASHAPING =>
|
|
479
|
WHEN "010101" => prdata(0) <= reg_wp.data_shaping_BW;
|
|
476
|
prdata(0) <= reg_wp.data_shaping_BW;
|
|
480
|
prdata(1) <= reg_wp.data_shaping_SP0;
|
|
477
|
prdata(1) <= reg_wp.data_shaping_SP0;
|
|
481
|
prdata(2) <= reg_wp.data_shaping_SP1;
|
|
478
|
prdata(2) <= reg_wp.data_shaping_SP1;
|
|
482
|
prdata(3) <= reg_wp.data_shaping_R0;
|
|
479
|
prdata(3) <= reg_wp.data_shaping_R0;
|
|
483
|
prdata(4) <= reg_wp.data_shaping_R1;
|
|
480
|
prdata(4) <= reg_wp.data_shaping_R1;
|
|
484
|
prdata(5) <= reg_wp.data_shaping_R2;
|
|
481
|
prdata(5) <= reg_wp.data_shaping_R2;
|
|
485
|
--21
|
|
482
|
WHEN ADDR_LFR_WP_CONTROL =>
|
|
486
|
WHEN "010110" => prdata(0) <= reg_wp.enable_f0;
|
|
483
|
prdata(0) <= reg_wp.enable_f0;
|
|
487
|
prdata(1) <= reg_wp.enable_f1;
|
|
484
|
prdata(1) <= reg_wp.enable_f1;
|
|
488
|
prdata(2) <= reg_wp.enable_f2;
|
|
485
|
prdata(2) <= reg_wp.enable_f2;
|
|
489
|
prdata(3) <= reg_wp.enable_f3;
|
|
486
|
prdata(3) <= reg_wp.enable_f3;
|
|
@@
-491,64
+488,52
BEGIN -- beh
|
|
491
|
prdata(5) <= reg_wp.burst_f1;
|
|
488
|
prdata(5) <= reg_wp.burst_f1;
|
|
492
|
prdata(6) <= reg_wp.burst_f2;
|
|
489
|
prdata(6) <= reg_wp.burst_f2;
|
|
493
|
prdata(7) <= reg_wp.run;
|
|
490
|
prdata(7) <= reg_wp.run;
|
|
494
|
--22
|
|
491
|
WHEN ADDR_LFR_WP_F0_0_ADDR => prdata <= reg_wp.addr_buffer_f(32*1-1 DOWNTO 32*0);--0
|
|
495
|
--ON GOING \/
|
|
492
|
WHEN ADDR_LFR_WP_F0_1_ADDR => prdata <= reg_wp.addr_buffer_f(32*2-1 DOWNTO 32*1);
|
|
496
|
WHEN "010111" => prdata <= reg_wp.addr_buffer_f(32*1-1 DOWNTO 32*0);--0
|
|
493
|
WHEN ADDR_LFR_WP_F1_0_ADDR => prdata <= reg_wp.addr_buffer_f(32*3-1 DOWNTO 32*2);--1
|
|
497
|
WHEN "011000" => prdata <= reg_wp.addr_buffer_f(32*2-1 DOWNTO 32*1);
|
|
494
|
WHEN ADDR_LFR_WP_F1_1_ADDR => prdata <= reg_wp.addr_buffer_f(32*4-1 DOWNTO 32*3);
|
|
498
|
WHEN "011001" => prdata <= reg_wp.addr_buffer_f(32*3-1 DOWNTO 32*2);--1
|
|
495
|
WHEN ADDR_LFR_WP_F2_0_ADDR => prdata <= reg_wp.addr_buffer_f(32*5-1 DOWNTO 32*4);--2
|
|
499
|
WHEN "011010" => prdata <= reg_wp.addr_buffer_f(32*4-1 DOWNTO 32*3);
|
|
496
|
WHEN ADDR_LFR_WP_F2_1_ADDR => prdata <= reg_wp.addr_buffer_f(32*6-1 DOWNTO 32*5);
|
|
500
|
WHEN "011011" => prdata <= reg_wp.addr_buffer_f(32*5-1 DOWNTO 32*4);--2
|
|
497
|
WHEN ADDR_LFR_WP_F3_0_ADDR => prdata <= reg_wp.addr_buffer_f(32*7-1 DOWNTO 32*6);--3
|
|
501
|
WHEN "011100" => prdata <= reg_wp.addr_buffer_f(32*6-1 DOWNTO 32*5);
|
|
498
|
WHEN ADDR_LFR_WP_F3_1_ADDR => prdata <= reg_wp.addr_buffer_f(32*8-1 DOWNTO 32*7);
|
|
502
|
WHEN "011101" => prdata <= reg_wp.addr_buffer_f(32*7-1 DOWNTO 32*6);--3
|
|
499
|
|
|
503
|
WHEN "011110" => prdata <= reg_wp.addr_buffer_f(32*8-1 DOWNTO 32*7);
|
|
500
|
WHEN ADDR_LFR_WP_STATUS =>
|
|
504
|
--ON GOING /\
|
|
501
|
prdata(7 DOWNTO 0) <= reg_wp.status_ready_buffer_f;
|
|
505
|
WHEN "011111" => prdata(7 DOWNTO 0) <= reg_wp.status_ready_buffer_f;
|
|
|
|
|
506
|
prdata(11 DOWNTO 8) <= reg_wp.error_buffer_full;
|
|
502
|
prdata(11 DOWNTO 8) <= reg_wp.error_buffer_full;
|
|
507
|
prdata(15 DOWNTO 12) <= reg_wp.status_new_err;
|
|
503
|
prdata(15 DOWNTO 12) <= reg_wp.status_new_err;
|
|
508
|
--prdata(3 DOWNTO 0) <= reg_wp.status_full;
|
|
504
|
|
|
509
|
-- prdata(7 DOWNTO 4) <= reg_wp.status_full_err;
|
|
505
|
WHEN ADDR_LFR_WP_DELTASNAPSHOT => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_snapshot;
|
|
510
|
--27
|
|
506
|
WHEN ADDR_LFR_WP_DELTA_F0 => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_f0;
|
|
511
|
WHEN "100000" => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_snapshot;
|
|
507
|
WHEN ADDR_LFR_WP_DELTA_F0_2 => prdata(delta_vector_size_f0_2-1 DOWNTO 0) <= reg_wp.delta_f0_2;
|
|
512
|
--28
|
|
508
|
WHEN ADDR_LFR_WP_DELTA_F1 => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_f1;
|
|
513
|
WHEN "100001" => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_f0;
|
|
509
|
WHEN ADDR_LFR_WP_DELTA_F2 => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_f2;
|
|
514
|
--29
|
|
510
|
WHEN ADDR_LFR_WP_DATA_IN_BUFFER => prdata(nb_data_by_buffer_size-1 DOWNTO 0) <= reg_wp.nb_data_by_buffer;
|
|
515
|
WHEN "100010" => prdata(delta_vector_size_f0_2-1 DOWNTO 0) <= reg_wp.delta_f0_2;
|
|
511
|
WHEN ADDR_LFR_WP_NBSNAPSHOT => prdata(nb_snapshot_param_size-1 DOWNTO 0) <= reg_wp.nb_snapshot_param;
|
|
516
|
--30
|
|
512
|
WHEN ADDR_LFR_WP_START_DATE => prdata(30 DOWNTO 0) <= reg_wp.start_date;
|
|
517
|
WHEN "100011" => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_f1;
|
|
513
|
|
|
518
|
--31
|
|
514
|
WHEN ADDR_LFR_WP_F0_0_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*0 + 31 DOWNTO 48*0);
|
|
519
|
WHEN "100100" => prdata(delta_vector_size-1 DOWNTO 0) <= reg_wp.delta_f2;
|
|
515
|
WHEN ADDR_LFR_WP_F0_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*0 + 47 DOWNTO 48*0 + 32);
|
|
520
|
--32
|
|
516
|
WHEN ADDR_LFR_WP_F0_1_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*1 + 31 DOWNTO 48*1);
|
|
521
|
WHEN "100101" => prdata(nb_data_by_buffer_size-1 DOWNTO 0) <= reg_wp.nb_data_by_buffer;
|
|
517
|
WHEN ADDR_LFR_WP_F0_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*1 + 47 DOWNTO 48*1 + 32);
|
|
522
|
--33
|
|
|
|
|
523
|
WHEN "100110" => prdata(nb_snapshot_param_size-1 DOWNTO 0) <= reg_wp.nb_snapshot_param;
|
|
|
|
|
524
|
--34
|
|
|
|
|
525
|
WHEN "100111" => prdata(30 DOWNTO 0) <= reg_wp.start_date;
|
|
|
|
|
526
|
--35
|
|
|
|
|
527
|
WHEN "101000" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*0 + 31 DOWNTO 48*0); --reg_wp.time_buffer_f(48*0+15 DOWNTO 48*0);
|
|
|
|
|
528
|
WHEN "101001" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*0 + 47 DOWNTO 48*0 + 32); --reg_wp.time_buffer_f(48*0+47 DOWNTO 48*0+16);
|
|
|
|
|
529
|
WHEN "101010" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*1 + 31 DOWNTO 48*1);
|
|
|
|
|
530
|
WHEN "101011" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*1 + 47 DOWNTO 48*1 + 32);
|
|
|
|
|
531
|
|
|
518
|
|
|
532
|
WHEN "101100" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*2 + 31 DOWNTO 48*2);
|
|
519
|
WHEN ADDR_LFR_WP_F1_0_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*2 + 31 DOWNTO 48*2);
|
|
533
|
WHEN "101101" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*2 + 47 DOWNTO 48*2 + 32);
|
|
520
|
WHEN ADDR_LFR_WP_F1_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*2 + 47 DOWNTO 48*2 + 32);
|
|
534
|
WHEN "101110" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*3 + 31 DOWNTO 48*3);
|
|
521
|
WHEN ADDR_LFR_WP_F1_1_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*3 + 31 DOWNTO 48*3);
|
|
535
|
WHEN "101111" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*3 + 47 DOWNTO 48*3 + 32);
|
|
522
|
WHEN ADDR_LFR_WP_F1_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*3 + 47 DOWNTO 48*3 + 32);
|
|
536
|
|
|
|
|
|
537
|
WHEN "110000" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*4 + 31 DOWNTO 48*4);
|
|
|
|
|
538
|
WHEN "110001" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*4 + 47 DOWNTO 48*4 + 32);
|
|
|
|
|
539
|
WHEN "110010" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*5 + 31 DOWNTO 48*5);
|
|
|
|
|
540
|
WHEN "110011" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*5 + 47 DOWNTO 48*5 + 32);
|
|
|
|
|
541
|
|
|
523
|
|
|
542
|
WHEN "110100" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*6 + 31 DOWNTO 48*6);
|
|
524
|
WHEN ADDR_LFR_WP_F2_0_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*4 + 31 DOWNTO 48*4);
|
|
543
|
WHEN "110101" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*6 + 47 DOWNTO 48*6 + 32);
|
|
525
|
WHEN ADDR_LFR_WP_F2_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*4 + 47 DOWNTO 48*4 + 32);
|
|
544
|
WHEN "110110" => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*7 + 31 DOWNTO 48*7);
|
|
526
|
WHEN ADDR_LFR_WP_F2_1_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*5 + 31 DOWNTO 48*5);
|
|
545
|
WHEN "110111" => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*7 + 47 DOWNTO 48*7 + 32);
|
|
527
|
WHEN ADDR_LFR_WP_F2_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*5 + 47 DOWNTO 48*5 + 32);
|
|
546
|
|
|
528
|
|
|
547
|
WHEN "111000" => prdata(25 DOWNTO 0) <= reg_wp.length_buffer;
|
|
529
|
WHEN ADDR_LFR_WP_F3_0_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*6 + 31 DOWNTO 48*6);
|
|
|
|
|
530
|
WHEN ADDR_LFR_WP_F3_0_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*6 + 47 DOWNTO 48*6 + 32);
|
|
|
|
|
531
|
WHEN ADDR_LFR_WP_F3_1_TIME_COARSE => prdata(31 DOWNTO 0) <= reg_wp.time_buffer_f(48*7 + 31 DOWNTO 48*7);
|
|
|
|
|
532
|
WHEN ADDR_LFR_WP_F3_1_TIME_FINE => prdata(15 DOWNTO 0) <= reg_wp.time_buffer_f(48*7 + 47 DOWNTO 48*7 + 32);
|
|
548
|
|
|
533
|
|
|
549
|
-- WHEN "100100" => prdata(nb_word_by_buffer_size-1 DOWNTO 0) <= reg_wp.nb_word_by_buffer;
|
|
534
|
WHEN ADDR_LFR_WP_LENGTH => prdata(25 DOWNTO 0) <= reg_wp.length_buffer;
|
|
550
|
----------------------------------------------------
|
|
535
|
---------------------------------------------------------------------
|
|
551
|
WHEN "111100" => prdata(23 DOWNTO 0) <= top_lfr_version(23 DOWNTO 0);
|
|
536
|
WHEN ADDR_LFR_VERSION => prdata(23 DOWNTO 0) <= top_lfr_version(23 DOWNTO 0);
|
|
552
|
WHEN OTHERS => NULL;
|
|
537
|
WHEN OTHERS => NULL;
|
|
553
|
|
|
538
|
|
|
554
|
END CASE;
|
|
539
|
END CASE;
|
|
@@
-556,11
+541,12
BEGIN -- beh
|
|
556
|
-- APB DMA WRITE --
|
|
541
|
-- APB DMA WRITE --
|
|
557
|
CASE paddr(7 DOWNTO 2) IS
|
|
542
|
CASE paddr(7 DOWNTO 2) IS
|
|
558
|
--
|
|
543
|
--
|
|
559
|
WHEN "000000" => reg_sp.config_active_interruption_onNewMatrix <= apbi.pwdata(0);
|
|
544
|
WHEN ADDR_LFR_SM_CONFIG =>
|
|
|
|
|
545
|
reg_sp.config_active_interruption_onNewMatrix <= apbi.pwdata(0);
|
|
560
|
reg_sp.config_active_interruption_onError <= apbi.pwdata(1);
|
|
546
|
reg_sp.config_active_interruption_onError <= apbi.pwdata(1);
|
|
561
|
reg_sp.config_ms_run <= apbi.pwdata(2);
|
|
547
|
reg_sp.config_ms_run <= apbi.pwdata(2);
|
|
562
|
|
|
548
|
|
|
563
|
WHEN "000001" =>
|
|
549
|
WHEN ADDR_LFR_SM_STATUS =>
|
|
564
|
reg_sp.status_ready_matrix_f0_0 <= ((NOT apbi.pwdata(0) ) AND reg_sp.status_ready_matrix_f0_0 ) OR reg0_ready_matrix_f0;
|
|
550
|
reg_sp.status_ready_matrix_f0_0 <= ((NOT apbi.pwdata(0) ) AND reg_sp.status_ready_matrix_f0_0 ) OR reg0_ready_matrix_f0;
|
|
565
|
reg_sp.status_ready_matrix_f0_1 <= ((NOT apbi.pwdata(1) ) AND reg_sp.status_ready_matrix_f0_1 ) OR reg1_ready_matrix_f0;
|
|
551
|
reg_sp.status_ready_matrix_f0_1 <= ((NOT apbi.pwdata(1) ) AND reg_sp.status_ready_matrix_f0_1 ) OR reg1_ready_matrix_f0;
|
|
566
|
reg_sp.status_ready_matrix_f1_0 <= ((NOT apbi.pwdata(2) ) AND reg_sp.status_ready_matrix_f1_0 ) OR reg0_ready_matrix_f1;
|
|
552
|
reg_sp.status_ready_matrix_f1_0 <= ((NOT apbi.pwdata(2) ) AND reg_sp.status_ready_matrix_f1_0 ) OR reg0_ready_matrix_f1;
|
|
@@
-571,24
+557,24
BEGIN -- beh
|
|
571
|
reg_sp.status_error_input_fifo_write(0) <= ((NOT apbi.pwdata(8) ) AND reg_sp.status_error_input_fifo_write(0)) OR error_input_fifo_write(0);
|
|
557
|
reg_sp.status_error_input_fifo_write(0) <= ((NOT apbi.pwdata(8) ) AND reg_sp.status_error_input_fifo_write(0)) OR error_input_fifo_write(0);
|
|
572
|
reg_sp.status_error_input_fifo_write(1) <= ((NOT apbi.pwdata(9) ) AND reg_sp.status_error_input_fifo_write(1)) OR error_input_fifo_write(1);
|
|
558
|
reg_sp.status_error_input_fifo_write(1) <= ((NOT apbi.pwdata(9) ) AND reg_sp.status_error_input_fifo_write(1)) OR error_input_fifo_write(1);
|
|
573
|
reg_sp.status_error_input_fifo_write(2) <= ((NOT apbi.pwdata(10)) AND reg_sp.status_error_input_fifo_write(2)) OR error_input_fifo_write(2);
|
|
559
|
reg_sp.status_error_input_fifo_write(2) <= ((NOT apbi.pwdata(10)) AND reg_sp.status_error_input_fifo_write(2)) OR error_input_fifo_write(2);
|
|
574
|
--2
|
|
560
|
WHEN ADDR_LFR_SM_F0_0_ADDR => reg_sp.addr_matrix_f0_0 <= apbi.pwdata;
|
|
575
|
WHEN "000010" => reg_sp.addr_matrix_f0_0 <= apbi.pwdata;
|
|
561
|
WHEN ADDR_LFR_SM_F0_1_ADDR => reg_sp.addr_matrix_f0_1 <= apbi.pwdata;
|
|
576
|
WHEN "000011" => reg_sp.addr_matrix_f0_1 <= apbi.pwdata;
|
|
562
|
WHEN ADDR_LFR_SM_F1_0_ADDR => reg_sp.addr_matrix_f1_0 <= apbi.pwdata;
|
|
577
|
WHEN "000100" => reg_sp.addr_matrix_f1_0 <= apbi.pwdata;
|
|
563
|
WHEN ADDR_LFR_SM_F1_1_ADDR => reg_sp.addr_matrix_f1_1 <= apbi.pwdata;
|
|
578
|
WHEN "000101" => reg_sp.addr_matrix_f1_1 <= apbi.pwdata;
|
|
564
|
WHEN ADDR_LFR_SM_F2_0_ADDR => reg_sp.addr_matrix_f2_0 <= apbi.pwdata;
|
|
579
|
WHEN "000110" => reg_sp.addr_matrix_f2_0 <= apbi.pwdata;
|
|
565
|
WHEN ADDR_LFR_SM_F2_1_ADDR => reg_sp.addr_matrix_f2_1 <= apbi.pwdata;
|
|
580
|
WHEN "000111" => reg_sp.addr_matrix_f2_1 <= apbi.pwdata;
|
|
566
|
|
|
581
|
--8 to 19
|
|
567
|
WHEN ADDR_LFR_SM_LENGTH => reg_sp.length_matrix <= apbi.pwdata(25 DOWNTO 0);
|
|
582
|
--20
|
|
568
|
---------------------------------------------------------------------
|
|
583
|
WHEN "010100" => reg_sp.length_matrix <= apbi.pwdata(25 DOWNTO 0);
|
|
569
|
WHEN ADDR_LFR_WP_DATASHAPING =>
|
|
584
|
--20
|
|
570
|
reg_wp.data_shaping_BW <= apbi.pwdata(0);
|
|
585
|
WHEN "010101" => reg_wp.data_shaping_BW <= apbi.pwdata(0);
|
|
|
|
|
586
|
reg_wp.data_shaping_SP0 <= apbi.pwdata(1);
|
|
571
|
reg_wp.data_shaping_SP0 <= apbi.pwdata(1);
|
|
587
|
reg_wp.data_shaping_SP1 <= apbi.pwdata(2);
|
|
572
|
reg_wp.data_shaping_SP1 <= apbi.pwdata(2);
|
|
588
|
reg_wp.data_shaping_R0 <= apbi.pwdata(3);
|
|
573
|
reg_wp.data_shaping_R0 <= apbi.pwdata(3);
|
|
589
|
reg_wp.data_shaping_R1 <= apbi.pwdata(4);
|
|
574
|
reg_wp.data_shaping_R1 <= apbi.pwdata(4);
|
|
590
|
reg_wp.data_shaping_R2 <= apbi.pwdata(5);
|
|
575
|
reg_wp.data_shaping_R2 <= apbi.pwdata(5);
|
|
591
|
WHEN "010110" => reg_wp.enable_f0 <= apbi.pwdata(0);
|
|
576
|
WHEN ADDR_LFR_WP_CONTROL =>
|
|
|
|
|
577
|
reg_wp.enable_f0 <= apbi.pwdata(0);
|
|
592
|
reg_wp.enable_f1 <= apbi.pwdata(1);
|
|
578
|
reg_wp.enable_f1 <= apbi.pwdata(1);
|
|
593
|
reg_wp.enable_f2 <= apbi.pwdata(2);
|
|
579
|
reg_wp.enable_f2 <= apbi.pwdata(2);
|
|
594
|
reg_wp.enable_f3 <= apbi.pwdata(3);
|
|
580
|
reg_wp.enable_f3 <= apbi.pwdata(3);
|
|
@@
-596,17
+582,15
BEGIN -- beh
|
|
596
|
reg_wp.burst_f1 <= apbi.pwdata(5);
|
|
582
|
reg_wp.burst_f1 <= apbi.pwdata(5);
|
|
597
|
reg_wp.burst_f2 <= apbi.pwdata(6);
|
|
583
|
reg_wp.burst_f2 <= apbi.pwdata(6);
|
|
598
|
reg_wp.run <= apbi.pwdata(7);
|
|
584
|
reg_wp.run <= apbi.pwdata(7);
|
|
599
|
--22
|
|
585
|
WHEN ADDR_LFR_WP_F0_0_ADDR => reg_wp.addr_buffer_f(32*1-1 DOWNTO 32*0) <= apbi.pwdata;
|
|
600
|
WHEN "010111" => reg_wp.addr_buffer_f(32*1-1 DOWNTO 32*0) <= apbi.pwdata;
|
|
586
|
WHEN ADDR_LFR_WP_F0_1_ADDR => reg_wp.addr_buffer_f(32*2-1 DOWNTO 32*1) <= apbi.pwdata;
|
|
601
|
WHEN "011000" => reg_wp.addr_buffer_f(32*2-1 DOWNTO 32*1) <= apbi.pwdata;
|
|
587
|
WHEN ADDR_LFR_WP_F1_0_ADDR => reg_wp.addr_buffer_f(32*3-1 DOWNTO 32*2) <= apbi.pwdata;
|
|
602
|
WHEN "011001" => reg_wp.addr_buffer_f(32*3-1 DOWNTO 32*2) <= apbi.pwdata;
|
|
588
|
WHEN ADDR_LFR_WP_F1_1_ADDR => reg_wp.addr_buffer_f(32*4-1 DOWNTO 32*3) <= apbi.pwdata;
|
|
603
|
WHEN "011010" => reg_wp.addr_buffer_f(32*4-1 DOWNTO 32*3) <= apbi.pwdata;
|
|
589
|
WHEN ADDR_LFR_WP_F2_0_ADDR => reg_wp.addr_buffer_f(32*5-1 DOWNTO 32*4) <= apbi.pwdata;
|
|
604
|
WHEN "011011" => reg_wp.addr_buffer_f(32*5-1 DOWNTO 32*4) <= apbi.pwdata;
|
|
590
|
WHEN ADDR_LFR_WP_F2_1_ADDR => reg_wp.addr_buffer_f(32*6-1 DOWNTO 32*5) <= apbi.pwdata;
|
|
605
|
WHEN "011100" => reg_wp.addr_buffer_f(32*6-1 DOWNTO 32*5) <= apbi.pwdata;
|
|
591
|
WHEN ADDR_LFR_WP_F3_0_ADDR => reg_wp.addr_buffer_f(32*7-1 DOWNTO 32*6) <= apbi.pwdata;
|
|
606
|
WHEN "011101" => reg_wp.addr_buffer_f(32*7-1 DOWNTO 32*6) <= apbi.pwdata;
|
|
592
|
WHEN ADDR_LFR_WP_F3_1_ADDR => reg_wp.addr_buffer_f(32*8-1 DOWNTO 32*7) <= apbi.pwdata;
|
|
607
|
WHEN "011110" => reg_wp.addr_buffer_f(32*8-1 DOWNTO 32*7) <= apbi.pwdata;
|
|
593
|
WHEN ADDR_LFR_WP_STATUS =>
|
|
608
|
--26
|
|
|
|
|
609
|
WHEN "011111" =>
|
|
|
|
|
610
|
all_reg_wp_status_bit: FOR I IN 3 DOWNTO 0 LOOP
|
|
594
|
all_reg_wp_status_bit: FOR I IN 3 DOWNTO 0 LOOP
|
|
611
|
reg_wp.status_ready_buffer_f(I*2) <= ((NOT apbi.pwdata(I*2) ) AND reg_wp.status_ready_buffer_f(I*2) ) OR reg_ready_buffer_f(I*2);
|
|
595
|
reg_wp.status_ready_buffer_f(I*2) <= ((NOT apbi.pwdata(I*2) ) AND reg_wp.status_ready_buffer_f(I*2) ) OR reg_ready_buffer_f(I*2);
|
|
612
|
reg_wp.status_ready_buffer_f(I*2+1) <= ((NOT apbi.pwdata(I*2+1)) AND reg_wp.status_ready_buffer_f(I*2+1)) OR reg_ready_buffer_f(I*2+1);
|
|
596
|
reg_wp.status_ready_buffer_f(I*2+1) <= ((NOT apbi.pwdata(I*2+1)) AND reg_wp.status_ready_buffer_f(I*2+1)) OR reg_ready_buffer_f(I*2+1);
|
|
@@
-614,28
+598,24
BEGIN -- beh
|
|
614
|
reg_wp.status_new_err(I) <= ((NOT apbi.pwdata(I+12) ) AND reg_wp.status_new_err(I) ) OR status_new_err(I);
|
|
598
|
reg_wp.status_new_err(I) <= ((NOT apbi.pwdata(I+12) ) AND reg_wp.status_new_err(I) ) OR status_new_err(I);
|
|
615
|
END LOOP all_reg_wp_status_bit;
|
|
599
|
END LOOP all_reg_wp_status_bit;
|
|
616
|
|
|
600
|
|
|
617
|
WHEN "100000" => reg_wp.delta_snapshot <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
601
|
WHEN ADDR_LFR_WP_DELTASNAPSHOT => reg_wp.delta_snapshot <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
618
|
WHEN "100001" => reg_wp.delta_f0 <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
602
|
WHEN ADDR_LFR_WP_DELTA_F0 => reg_wp.delta_f0 <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
619
|
WHEN "100010" => reg_wp.delta_f0_2 <= apbi.pwdata(delta_vector_size_f0_2-1 DOWNTO 0);
|
|
603
|
WHEN ADDR_LFR_WP_DELTA_F0_2 => reg_wp.delta_f0_2 <= apbi.pwdata(delta_vector_size_f0_2-1 DOWNTO 0);
|
|
620
|
WHEN "100011" => reg_wp.delta_f1 <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
604
|
WHEN ADDR_LFR_WP_DELTA_F1 => reg_wp.delta_f1 <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
621
|
WHEN "100100" => reg_wp.delta_f2 <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
605
|
WHEN ADDR_LFR_WP_DELTA_F2 => reg_wp.delta_f2 <= apbi.pwdata(delta_vector_size-1 DOWNTO 0);
|
|
622
|
WHEN "100101" => reg_wp.nb_data_by_buffer <= apbi.pwdata(nb_data_by_buffer_size-1 DOWNTO 0);
|
|
606
|
WHEN ADDR_LFR_WP_DATA_IN_BUFFER => reg_wp.nb_data_by_buffer <= apbi.pwdata(nb_data_by_buffer_size-1 DOWNTO 0);
|
|
623
|
WHEN "100110" => reg_wp.nb_snapshot_param <= apbi.pwdata(nb_snapshot_param_size-1 DOWNTO 0);
|
|
607
|
WHEN ADDR_LFR_WP_NBSNAPSHOT => reg_wp.nb_snapshot_param <= apbi.pwdata(nb_snapshot_param_size-1 DOWNTO 0);
|
|
624
|
WHEN "100111" => reg_wp.start_date <= apbi.pwdata(30 DOWNTO 0);
|
|
608
|
WHEN ADDR_LFR_WP_START_DATE => reg_wp.start_date <= apbi.pwdata(30 DOWNTO 0);
|
|
625
|
|
|
609
|
|
|
626
|
WHEN "111000" => reg_wp.length_buffer <= apbi.pwdata(25 DOWNTO 0);
|
|
610
|
WHEN ADDR_LFR_WP_LENGTH => reg_wp.length_buffer <= apbi.pwdata(25 DOWNTO 0);
|
|
627
|
|
|
|
|
|
628
|
|
|
|
|
|
629
|
|
|
611
|
|
|
630
|
|
|
|
|
|
631
|
|
|
|
|
|
632
|
-- WHEN "100100" => reg_wp.nb_word_by_buffer <= apbi.pwdata(nb_word_by_buffer_size-1 DOWNTO 0);
|
|
|
|
|
633
|
--
|
|
|
|
|
634
|
WHEN OTHERS => NULL;
|
|
612
|
WHEN OTHERS => NULL;
|
|
635
|
END CASE;
|
|
613
|
END CASE;
|
|
636
|
END IF;
|
|
614
|
END IF;
|
|
637
|
END IF;
|
|
615
|
END IF;
|
|
638
|
--apbo.pirq(pirq_ms) <=
|
|
616
|
--apbo.pirq(pirq_ms) <=
|
|
|
|
|
617
|
pirq_temp( pirq_ms) <= apbo_irq_ms;
|
|
|
|
|
618
|
pirq_temp(pirq_wfp) <= apbo_irq_wfp;
|
|
639
|
apbo_irq_ms <= ((reg_sp.config_active_interruption_onNewMatrix AND (ready_matrix_f0 OR
|
|
619
|
apbo_irq_ms <= ((reg_sp.config_active_interruption_onNewMatrix AND (ready_matrix_f0 OR
|
|
640
|
ready_matrix_f1 OR
|
|
620
|
ready_matrix_f1 OR
|
|
641
|
ready_matrix_f2)
|
|
621
|
ready_matrix_f2)
|
|
@@
-654,8
+634,23
BEGIN -- beh
|
|
654
|
END IF;
|
|
634
|
END IF;
|
|
655
|
END PROCESS lpp_lfr_apbreg;
|
|
635
|
END PROCESS lpp_lfr_apbreg;
|
|
656
|
|
|
636
|
|
|
657
|
apbo.pirq(pirq_ms) <= apbo_irq_ms;
|
|
637
|
apbo.pirq <= pirq_temp;
|
|
658
|
apbo.pirq(pirq_wfp) <= apbo_irq_wfp;
|
|
638
|
|
|
|
|
|
639
|
|
|
|
|
|
640
|
--all_irq: FOR I IN 31 DOWNTO 0 GENERATE
|
|
|
|
|
641
|
-- IRQ_is_PIRQ_MS: IF I = pirq_ms GENERATE
|
|
|
|
|
642
|
-- apbo.pirq(I) <= apbo_irq_ms;
|
|
|
|
|
643
|
-- END GENERATE IRQ_is_PIRQ_MS;
|
|
|
|
|
644
|
-- IRQ_is_PIRQ_WFP: IF I = pirq_wfp GENERATE
|
|
|
|
|
645
|
-- apbo.pirq(I) <= apbo_irq_wfp;
|
|
|
|
|
646
|
-- END GENERATE IRQ_is_PIRQ_WFP;
|
|
|
|
|
647
|
-- IRQ_OTHERS: IF I /= pirq_ms AND pirq_wfp /= pirq_wfp GENERATE
|
|
|
|
|
648
|
-- apbo.pirq(I) <= '0';
|
|
|
|
|
649
|
-- END GENERATE IRQ_OTHERS;
|
|
|
|
|
650
|
|
|
|
|
|
651
|
--END GENERATE all_irq;
|
|
|
|
|
652
|
|
|
|
|
|
653
|
|
|
659
|
|
|
654
|
|
|
660
|
apbo.pindex <= pindex;
|
|
655
|
apbo.pindex <= pindex;
|
|
661
|
apbo.pconfig <= pconfig;
|
|
656
|
apbo.pconfig <= pconfig;
|
|
@@
-782,3
+777,5
BEGIN -- beh
|
|
782
|
-----------------------------------------------------------------------------
|
|
777
|
-----------------------------------------------------------------------------
|
|
783
|
|
|
778
|
|
|
784
|
END beh;
|
|
779
|
END beh;
|
|
|
|
|
780
|
|
|
|
|
|
781
|
-------------------------------------------------------------------------------
|