- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hello !!!
I have written code for UART receiver for the baud rate of 9600bps. The problem I am facing is that, once i program my device, for the first time everything works fine but after reset it is not working. Could not able to find out the bug in the code. I'll be very thankful if anyone helps me to overcome this problem. "if( data_check == 8'h00) begin send_data <= received_data[8:1]; send_wire <= 1'b1; send_alaram <= 4'b1111; state <= wait_H1S1; end" This part of code only executes once. I have attached the code to this thread.- Balises:
- Intel® Quartus® Prime Software
Lien copié
1 Répondre
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
That chunk of code is entirely dependent on what 'uart_rx' receives. If it's not executing, that's because you're not driving it with '0x00' (8'h00) - a null character. Anything but a null character, as the first (an only) received character, will cause your state machine to stall in the 'H1S1' state.
Cheers, Alex
Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable