Commit 5180895a authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

dsp/gc_iq_demodulator: sine should be 90 degrees after cosine

parent 77dd0bd3
...@@ -68,7 +68,7 @@ begin ...@@ -68,7 +68,7 @@ begin
when S_PI2 => when S_PI2 =>
state <= S_PI; state <= S_PI;
iacc <= (others => '0'); iacc <= (others => '0');
qacc <= resize(signed(adc_data_i), g_N + 1); qacc <= resize(-signed(adc_data_i), g_N + 1);
when S_PI => when S_PI =>
state <= S_3PI2; state <= S_3PI2;
iacc <= resize(-signed(adc_data_i), g_N + 1); iacc <= resize(-signed(adc_data_i), g_N + 1);
...@@ -76,7 +76,7 @@ begin ...@@ -76,7 +76,7 @@ begin
when S_3PI2 => when S_3PI2 =>
state <= S_0; state <= S_0;
iacc <= (others => '0'); iacc <= (others => '0');
qacc <= resize(-signed(adc_data_i), g_N + 1); qacc <= resize(signed(adc_data_i), g_N + 1);
end case; end case;
end if; end if;
end if; end if;
......
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