process
begin
- --position is obtained on rising edge -> we should write it on falling edge
- wait until (gpio_clk'event and gpio_clk='0');
+ --position is obtained on rising edge -> we should write it on next cycle
+ wait until (gpio_clk'event and gpio_clk='1');
--SCLK edge detection
spiclk_old(0)<=gpio11;
end if;
- --sestupna hrana SS, pripravime data pro prenos-prenos zacina nebo zacatek dalsiho ramce
+ --sestupna hrana SS, pripravime data pro prenos
if ((ce0_old = "10") ) then
dat_reg(95 downto 64) <= position(31 downto 0); --pozice
dat_reg(63 downto 61) <= hal_in(1 to 3); --halovy sondy