rs232 test VHDL

OP #2758167
Rate this post
• ▲ useful
▼ not useful
Using Digilent Nexys 2 board which has a rs232 port (uses the Spartan 3E 
fpga).

Trying to test the rs232, i have a usb to rs232 cable and i use Putty 
which all seems to  be working ok. So i wrote this for the FPGA to loop 
back RX and TX so the fpga would just echo back what ever data it got.
1
library IEEE;
2
use IEEE.STD_LOGIC_1164.ALL;
3

4
entity top is
5
    Port ( rxd : in  STD_LOGIC;
6
           txd : out  STD_LOGIC);
7
end top;
8

9
architecture Behavioral of top is
10

11
begin
12

13
  txd <= rxd;
14

15
end Behavioral;

Unfortunately once put on the fpga i can't write anything in the 
terminal which i think is because the fpga is not echoing back the data.

Can anyone see the problem here? Or have a better way to test the rs232?

Thanks.
Moderator (Company: Titel) #2758197
Rate this post
• ▲ useful
▼ not useful
Start as close as possible to the computer!
Do you get the characters echoed, when you bridge Pins 2 and 3 on the 
RS232 cable at the computer (without any FPGA or other hardware)?

Your code is fine. Do you also have assinged the ports to pins in a 
constraints file?

Reply

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [vhdl]VHDL-Code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.