slirenem
Newbie level 6
Hi,
I would like to do that I start transmit via RS232 when I press button. It is part of my code:
but it causes that sending is repeated many times because button is presses -> DBLoad keeps '0'.
I tried to add into the if condition
but then cannot synthesize. Error messages:
Could you give me some suggestion how to deal with it?
EDIT:
I made delay counter before FSM_Load state and it helps. But still would like to know what was wrong in previous solution to avoid such a situations in the future. So please clarify it for me
I would like to do that I start transmit via RS232 when I press button. It is part of my code:
Code:
if DBLoad = '0' then --
Uart_Rdy <= '0'; -- Make sure handshake is immediately busy
UartFSM <= FSM_Load;
else
Uart_Rdy <= '1';
UartFSM <= FSM_Idle;
end if;
I tried to add into the if condition
Code:
and DBLoad'event
ERROR:Xst:2108 - Logic for signal <Uart_Rdy> is controlled by a clock but does not appear to be a valid sequential description.
ERROR:Xst:1431 - Failed to synthesize unit <uart_transmit>.
Could you give me some suggestion how to deal with it?
EDIT:
I made delay counter before FSM_Load state and it helps. But still would like to know what was wrong in previous solution to avoid such a situations in the future. So please clarify it for me
Last edited: