Commit c577eac2 authored by Maciej Lipinski's avatar Maciej Lipinski

periph_adc_v2: swapped channel 0 and 3, so that gas cell is at CH0

parent 9307489c
......@@ -262,7 +262,13 @@ begin
fifo_rd <= not fifo_empty;
gen_fifo_fmt_out: for i in 7 downto 0 generate
data_o(i) <= fifo_dout(i * 12 + 11 downto i * 12);
end generate;
-- tweak mapping of channels so that gas cell (ch3) is seen on ch0
data_o(0) <= fifo_dout(3 * 12 + 11 downto 3 * 12);
data_o(1) <= fifo_dout(1 * 12 + 11 downto 1 * 12);
data_o(2) <= fifo_dout(2 * 12 + 11 downto 2 * 12);
data_o(3) <= fifo_dout(0 * 12 + 11 downto 0 * 12);
data_o(4) <= fifo_dout(4 * 12 + 11 downto 4 * 12);
data_o(5) <= fifo_dout(5 * 12 + 11 downto 5 * 12);
data_o(6) <= fifo_dout(6 * 12 + 11 downto 6 * 12);
data_o(7) <= fifo_dout(7 * 12 + 11 downto 7 * 12);
end arch;
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