Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use set LVDS mode on Lattice ICE40 pins using ICESTORM tools

I have a Lattice ICE40_8K breakout board and would like to know how to setup a pin pair as LVDS mode inputs.

If setting up as normal single pins is done thus:

SB_IO #(.PIN_TYPE(6'b0000_00)) _io (
        .PACKAGE_PIN(pin),
        .INPUT_CLK(clk),
        .D_IN_0(rd));

How do I modify that to be LVDS input pin, and how is the additional pin allocated.

Thanks

EDIT:

Would it be something like?:

  SB_IO #(.PIN_TYPE(6'b0000_00), .IO_STANDARD("SB_LVDS_INPUT")) _io (
        .PACKAGE_PIN(pin),
        .INPUT_CLK(clk),
        .D_IN_0(rd));

I understand the LVDS inputs are only in Bank 3, can anyone point me to what the pin list is for bank 3, so I can choose one ...

Thanks

like image 765
Bernard Mentink Avatar asked Oct 19 '22 00:10

Bernard Mentink


1 Answers

Lattice TN1253 explains how to use LVDS inputs. There are Verilog code examples starting at page 15. The same Verilog code should also work with Project IceStorm.

like image 106
CliffordVienna Avatar answered Nov 15 '22 07:11

CliffordVienna