##// END OF EJS Templates
remove HK debug
pellion -
r537:b8a6dccabf94 JC
parent child
Show More
@@ -151,9 +151,6 ARCHITECTURE Behavioral OF apb_lfr_manag
151 SIGNAL DAC_CFG : STD_LOGIC_VECTOR(3 DOWNTO 0);
151 SIGNAL DAC_CFG : STD_LOGIC_VECTOR(3 DOWNTO 0);
152 SIGNAL DAC_CAL_EN_s : STD_LOGIC;
152 SIGNAL DAC_CAL_EN_s : STD_LOGIC;
153
153
154 SIGNAL HK_debug_mode : STD_LOGIC;
155 SIGNAL HK_sel_debug : STD_LOGIC_VECTOR(1 DOWNTO 0);
156
157 BEGIN
154 BEGIN
158
155
159 LFR_soft_rstn <= NOT r.LFR_soft_reset;
156 LFR_soft_rstn <= NOT r.LFR_soft_reset;
@@ -219,9 +216,7 BEGIN
219 Rdata(0) <= r.ctrl;
216 Rdata(0) <= r.ctrl;
220 Rdata(1) <= r.soft_reset;
217 Rdata(1) <= r.soft_reset;
221 Rdata(2) <= r.LFR_soft_reset;
218 Rdata(2) <= r.LFR_soft_reset;
222 Rdata(3) <= HK_debug_mode;
219 Rdata(31 DOWNTO 3) <= (OTHERS => '0');
223 Rdata(5 DOWNTO 4) <= HK_sel_debug;
224 Rdata(31 DOWNTO 6) <= (OTHERS => '0');
225 WHEN ADDR_LFR_MANAGMENT_TIME_LOAD =>
220 WHEN ADDR_LFR_MANAGMENT_TIME_LOAD =>
226 Rdata(30 DOWNTO 0) <= r.coarse_time_load(30 DOWNTO 0);
221 Rdata(30 DOWNTO 0) <= r.coarse_time_load(30 DOWNTO 0);
227 WHEN ADDR_LFR_MANAGMENT_TIME_COARSE =>
222 WHEN ADDR_LFR_MANAGMENT_TIME_COARSE =>
@@ -267,8 +262,6 BEGIN
267 r.ctrl <= apbi.pwdata(0);
262 r.ctrl <= apbi.pwdata(0);
268 r.soft_reset <= apbi.pwdata(1);
263 r.soft_reset <= apbi.pwdata(1);
269 r.LFR_soft_reset <= apbi.pwdata(2);
264 r.LFR_soft_reset <= apbi.pwdata(2);
270 HK_debug_mode <= apbi.pwdata(3);
271 HK_sel_debug <= apbi.pwdata(5 DOWNTO 4);
272 WHEN ADDR_LFR_MANAGMENT_TIME_LOAD =>
265 WHEN ADDR_LFR_MANAGMENT_TIME_LOAD =>
273 r.coarse_time_load <= apbi.pwdata(30 DOWNTO 0);
266 r.coarse_time_load <= apbi.pwdata(30 DOWNTO 0);
274 coarsetime_reg_updated <= '1';
267 coarsetime_reg_updated <= '1';
@@ -466,25 +459,13 BEGIN
466 CASE HK_sel_s IS
459 CASE HK_sel_s IS
467 WHEN "00" =>
460 WHEN "00" =>
468 r.HK_temp_0 <= HK_sample;
461 r.HK_temp_0 <= HK_sample;
469 IF HK_debug_mode = '1' THEN
462 HK_sel_s <= "01";
470 HK_sel_s <= HK_sel_debug;
471 ELSE
472 HK_sel_s <= "01";
473 END IF;
474 WHEN "01" =>
463 WHEN "01" =>
475 r.HK_temp_1 <= HK_sample;
464 r.HK_temp_1 <= HK_sample;
476 IF HK_debug_mode = '1' THEN
465 HK_sel_s <= "10";
477 HK_sel_s <= HK_sel_debug;
478 ELSE
479 HK_sel_s <= "10";
480 END IF;
481 WHEN "10" =>
466 WHEN "10" =>
482 r.HK_temp_2 <= HK_sample;
467 r.HK_temp_2 <= HK_sample;
483 IF HK_debug_mode = '1' THEN
468 HK_sel_s <= "00";
484 HK_sel_s <= HK_sel_debug;
485 ELSE
486 HK_sel_s <= "00";
487 END IF;
488 WHEN OTHERS => NULL;
469 WHEN OTHERS => NULL;
489 END CASE;
470 END CASE;
490 END IF;
471 END IF;
General Comments 0
You need to be logged in to leave comments. Login now