LVDS Spartan3 VHDL

Guest
Hi,

I have absolutely no experience using LVDS.
I am unsure how to go about using LVDS.
I have seen a few examples on the web, but I keep getting errors.

All I am looking for is a simple sample.

I don't know if I have to use components
U1: OBUFDS
port map (
I => data_out,
O => data_out_P,
OB => data_out_N
);


Do I have to add something to the UCF file?
NET "data_out_P" LOC = "D1" | IOSTANDARD = LVDSEXT_25;
#"ybus<51>"
NET "data_out_N" LOC = "D2" | IOSTANDARD = LVDSEXT_25;
#"ybus<52>"

Or just use it?
process(ti_clk)
begin
if(rising_edge(ti_clk)) then
data_out_P <= data_out;
data_out_N <= not data_out;
data_out <= not data_out;
end if;
end process;

TIA,
 
On Apr 18, 4:16 pm, HollandProje...@gmail.com wrote:
Hi,

I have absolutely no experience using LVDS.
I am unsure how to go about using LVDS.
I have seen a few examples on the web, but I keep getting errors.

All I am looking for is a simple sample.

I don't know if I have to use components
U1: OBUFDS
port map (
I => data_out,
O => data_out_P,
OB => data_out_N
);

Do I have to add something to the UCF file?
NET "data_out_P"      LOC = "D1"  | IOSTANDARD = LVDSEXT_25;
#"ybus<51>"
NET "data_out_N"      LOC = "D2" | IOSTANDARD = LVDSEXT_25;
#"ybus<52>"

Or just use it?
process(ti_clk)
begin
        if(rising_edge(ti_clk)) then
                data_out_P <= data_out;
                data_out_N <= not data_out;
                data_out <= not data_out;
        end if;
end process;

TIA,
Hi,

LVDS is an electric standard that carries on two distinct wires the
data you want and its opposite, to make the story short. You have to
tell ISE to use that IO Standard. Different ways are possible but the
ucf example you have put is good.
You do not have access to both signals (_P and _N). The OBUFDS creates
the differential pair for you. The OBUFDS you have instantiated is the
way to go. Therefore you just have to drive that data_out signal that
is feeding the OBUFDS. Never do what you have written below, you'll
always get error messages.

Thomas.
 

Welcome to EDABoard.com

Sponsor

Back
Top