demo: leave debug mode in rofreq

parent 5b4244cb
...@@ -145,7 +145,8 @@ begin ...@@ -145,7 +145,8 @@ begin
detect_o <= detect; detect_o <= detect;
raw_o <= raw; raw_o <= raw;
c_detect_o <= detect; c_detect_o <= detect;
c_raw_o <= raw; --c_raw_o <= raw;
c_raw_o <= "000000010";
-- Histogram memory. -- Histogram memory.
cmp_histogram: generic_spram cmp_histogram: generic_spram
......
...@@ -155,7 +155,7 @@ begin ...@@ -155,7 +155,7 @@ begin
ha_last <= '1' when (ha_count = (ha_count'range => '1')) else '0'; ha_last <= '1' when (ha_count = (ha_count'range => '1')) else '0';
his_a_o <= ha_count when (ha_sel = '1') else c_raw_i; his_a_o <= ha_count when (ha_sel = '1') else c_raw_i;
his_d_o <= (his_d_o'range => '0') when (ha_sel = '1') his_d_o <= (his_d_o'range => '0') when (ha_sel = '1')
else std_logic_vector(unsigned(his_d_i) + 1); else "0000000001100"; --std_logic_vector(unsigned(his_d_i) + 1);
-- accumulator -- accumulator
process(clk_i) process(clk_i)
......
...@@ -48,6 +48,9 @@ void rofreq() ...@@ -48,6 +48,9 @@ void rofreq()
} while(!last); } while(!last);
printf("\n"); printf("\n");
} }
tdc->DCTL = 0;
tdc->CS = TDC_CS_RST;
} }
#define TDC_RAW_COUNT 9 #define TDC_RAW_COUNT 9
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment