@@ -127,6 +127,7 ARCHITECTURE beh OF LFR_em IS | |||
|
127 | 127 | |
|
128 | 128 | -- AD Converter ADS7886 |
|
129 | 129 | SIGNAL sample : Samples14v(7 DOWNTO 0); |
|
130 | SIGNAL sample_s : Samples(7 DOWNTO 0); | |
|
130 | 131 | SIGNAL sample_val : STD_LOGIC; |
|
131 | 132 | SIGNAL ADC_nCS_sig : STD_LOGIC; |
|
132 | 133 | SIGNAL ADC_CLK_sig : STD_LOGIC; |
@@ -353,15 +354,15 BEGIN -- beh | |||
|
353 | 354 | pirq_ms => 6, |
|
354 | 355 | pirq_wfp => 14, |
|
355 | 356 | hindex => 2, |
|
356 |
top_lfr_version => X"00010 |
|
|
357 | top_lfr_version => X"00010B") -- aa.bb.cc version | |
|
357 | 358 | -- AA : BOARD NUMBER |
|
358 | 359 | -- 0 => MINI_LFR |
|
359 | 360 | -- 1 => EM |
|
360 | 361 | PORT MAP ( |
|
361 | 362 | clk => clk_25, |
|
362 | 363 | rstn => rstn, |
|
363 | sample_B => sample(2 DOWNTO 0), | |
|
364 | sample_E => sample(7 DOWNTO 3), | |
|
364 | sample_B => sample_s(2 DOWNTO 0), | |
|
365 | sample_E => sample_s(7 DOWNTO 3), | |
|
365 | 366 | sample_val => sample_val, |
|
366 | 367 | apbi => apbi_ext, |
|
367 | 368 | apbo => apbo_ext(15), |
@@ -372,6 +373,11 BEGIN -- beh | |||
|
372 | 373 | data_shaping_BW => bias_fail_sw, |
|
373 | 374 | observation_reg => observation_reg); |
|
374 | 375 | |
|
376 | ||
|
377 | all_sample: FOR I IN 7 DOWNTO 0 GENERATE | |
|
378 | sample_s(I) <= sample(I) & '0' & '0'; | |
|
379 | END GENERATE all_sample; | |
|
380 | ||
|
375 | 381 |
|
|
376 | 382 | -- |
|
377 | 383 | ----------------------------------------------------------------------------- |
@@ -163,6 +163,7 ARCHITECTURE beh OF MINI_LFR_top IS | |||
|
163 | 163 | |
|
164 | 164 | -- AD Converter ADS7886 |
|
165 | 165 | SIGNAL sample : Samples14v(7 DOWNTO 0); |
|
166 | SIGNAL sample_s : Samples(7 DOWNTO 0); | |
|
166 | 167 | SIGNAL sample_val : STD_LOGIC; |
|
167 | 168 | SIGNAL ADC_nCS_sig : STD_LOGIC; |
|
168 | 169 | SIGNAL ADC_CLK_sig : STD_LOGIC; |
@@ -429,8 +430,8 BEGIN -- beh | |||
|
429 | 430 | PORT MAP ( |
|
430 | 431 | clk => clk_25, |
|
431 | 432 | rstn => reset, |
|
432 | sample_B => sample(2 DOWNTO 0), | |
|
433 | sample_E => sample(7 DOWNTO 3), | |
|
433 | sample_B => sample_s(2 DOWNTO 0), | |
|
434 | sample_E => sample_s(7 DOWNTO 3), | |
|
434 | 435 | sample_val => sample_val, |
|
435 | 436 | apbi => apbi_ext, |
|
436 | 437 | apbo => apbo_ext(15), |
@@ -441,6 +442,12 BEGIN -- beh | |||
|
441 | 442 | data_shaping_BW => bias_fail_sw_sig, |
|
442 | 443 | observation_reg => observation_reg); |
|
443 | 444 | |
|
445 | all_sample: FOR I IN 7 DOWNTO 0 GENERATE | |
|
446 | sample_s(I) <= sample(I) & '0' & '0'; | |
|
447 | END GENERATE all_sample; | |
|
448 | ||
|
449 | ||
|
450 | ||
|
444 | 451 |
|
|
445 | 452 | GENERIC MAP( |
|
446 | 453 | ChannelCount => 8, |
@@ -46,8 +46,8 ENTITY lpp_lfr IS | |||
|
46 | 46 | clk : IN STD_LOGIC; |
|
47 | 47 | rstn : IN STD_LOGIC; |
|
48 | 48 | -- SAMPLE |
|
49 |
sample_B : IN Samples |
|
|
50 |
sample_E : IN Samples |
|
|
49 | sample_B : IN Samples(2 DOWNTO 0); | |
|
50 | sample_E : IN Samples(4 DOWNTO 0); | |
|
51 | 51 | sample_val : IN STD_LOGIC; |
|
52 | 52 | -- APB |
|
53 | 53 | apbi : IN apb_slv_in_type; |
@@ -106,7 +106,7 ENTITY lpp_lfr IS | |||
|
106 | 106 | END lpp_lfr; |
|
107 | 107 | |
|
108 | 108 | ARCHITECTURE beh OF lpp_lfr IS |
|
109 | SIGNAL sample : Samples14v(7 DOWNTO 0); | |
|
109 | --SIGNAL sample : Samples14v(7 DOWNTO 0); | |
|
110 | 110 | SIGNAL sample_s : Samples(7 DOWNTO 0); |
|
111 | 111 | -- |
|
112 | 112 | SIGNAL data_shaping_SP0 : STD_LOGIC; |
@@ -299,12 +299,12 ARCHITECTURE beh OF lpp_lfr IS | |||
|
299 | 299 | |
|
300 | 300 | BEGIN |
|
301 | 301 | |
|
302 | sample(4 DOWNTO 0) <= sample_E(4 DOWNTO 0); | |
|
303 | sample(7 DOWNTO 5) <= sample_B(2 DOWNTO 0); | |
|
302 | sample_s(4 DOWNTO 0) <= sample_E(4 DOWNTO 0); | |
|
303 | sample_s(7 DOWNTO 5) <= sample_B(2 DOWNTO 0); | |
|
304 | 304 | |
|
305 | all_channel : FOR i IN 7 DOWNTO 0 GENERATE | |
|
306 | sample_s(i) <= sample(i)(13) & sample(i)(13) & sample(i); | |
|
307 | END GENERATE all_channel; | |
|
305 | --all_channel : FOR i IN 7 DOWNTO 0 GENERATE | |
|
306 | -- sample_s(i) <= sample(i)(13) & sample(i)(13) & sample(i); | |
|
307 | --END GENERATE all_channel; | |
|
308 | 308 | |
|
309 | 309 | ----------------------------------------------------------------------------- |
|
310 | 310 | lpp_lfr_filter_1 : lpp_lfr_filter |
@@ -46,8 +46,8 ENTITY lpp_lfr_WFP_nMS IS | |||
|
46 | 46 | clk : IN STD_LOGIC; |
|
47 | 47 | rstn : IN STD_LOGIC; |
|
48 | 48 | -- SAMPLE |
|
49 |
sample_B : IN Samples |
|
|
50 |
sample_E : IN Samples |
|
|
49 | sample_B : IN Samples(2 DOWNTO 0); | |
|
50 | sample_E : IN Samples(4 DOWNTO 0); | |
|
51 | 51 | sample_val : IN STD_LOGIC; |
|
52 | 52 | -- APB |
|
53 | 53 | apbi : IN apb_slv_in_type; |
@@ -106,7 +106,7 ENTITY lpp_lfr_WFP_nMS IS | |||
|
106 | 106 | END lpp_lfr_WFP_nMS; |
|
107 | 107 | |
|
108 | 108 | ARCHITECTURE beh OF lpp_lfr_WFP_nMS IS |
|
109 | SIGNAL sample : Samples14v(7 DOWNTO 0); | |
|
109 | -- SIGNAL sample : Samples14v(7 DOWNTO 0); | |
|
110 | 110 | SIGNAL sample_s : Samples(7 DOWNTO 0); |
|
111 | 111 | -- |
|
112 | 112 | SIGNAL data_shaping_SP0 : STD_LOGIC; |
@@ -299,12 +299,13 ARCHITECTURE beh OF lpp_lfr_WFP_nMS IS | |||
|
299 | 299 | |
|
300 | 300 | BEGIN |
|
301 | 301 | |
|
302 | sample(4 DOWNTO 0) <= sample_E(4 DOWNTO 0); | |
|
303 | sample(7 DOWNTO 5) <= sample_B(2 DOWNTO 0); | |
|
302 | sample_s(4 DOWNTO 0) <= sample_E(4 DOWNTO 0); | |
|
303 | sample_s(7 DOWNTO 5) <= sample_B(2 DOWNTO 0); | |
|
304 | 304 | |
|
305 | all_channel : FOR i IN 7 DOWNTO 0 GENERATE | |
|
306 | sample_s(i) <= sample(i)(13) & sample(i)(13) & sample(i); | |
|
307 | END GENERATE all_channel; | |
|
305 | --all_channel : FOR i IN 7 DOWNTO 0 GENERATE | |
|
306 | -- --sample_s(i) <= sample(i)(13) & sample(i)(13) & sample(i); | |
|
307 | -- sample_s(i) <= sample(i) & '0' & '0'; | |
|
308 | --END GENERATE all_channel; | |
|
308 | 309 | |
|
309 | 310 | ----------------------------------------------------------------------------- |
|
310 | 311 | lpp_lfr_filter_1 : lpp_lfr_filter |
@@ -151,8 +151,8 PACKAGE lpp_lfr_pkg IS | |||
|
151 | 151 | PORT ( |
|
152 | 152 | clk : IN STD_LOGIC; |
|
153 | 153 | rstn : IN STD_LOGIC; |
|
154 |
sample_B : IN Samples |
|
|
155 |
sample_E : IN Samples |
|
|
154 | sample_B : IN Samples(2 DOWNTO 0); | |
|
155 | sample_E : IN Samples(4 DOWNTO 0); | |
|
156 | 156 | sample_val : IN STD_LOGIC; |
|
157 | 157 | apbi : IN apb_slv_in_type; |
|
158 | 158 | apbo : OUT apb_slv_out_type; |
@@ -186,8 +186,8 PACKAGE lpp_lfr_pkg IS | |||
|
186 | 186 | PORT ( |
|
187 | 187 | clk : IN STD_LOGIC; |
|
188 | 188 | rstn : IN STD_LOGIC; |
|
189 |
sample_B : IN Samples |
|
|
190 |
sample_E : IN Samples |
|
|
189 | sample_B : IN Samples(2 DOWNTO 0); | |
|
190 | sample_E : IN Samples(4 DOWNTO 0); | |
|
191 | 191 | sample_val : IN STD_LOGIC; |
|
192 | 192 | apbi : IN apb_slv_in_type; |
|
193 | 193 | apbo : OUT apb_slv_out_type; |
General Comments 0
You need to be logged in to leave comments.
Login now