EmbDev.net

Forum: FPGA, VHDL & Verilog How to interact with Lattice FPGA


Author: Banane (Guest)
Posted on:

Rate this post
0 useful
not useful
Hello,

I've bought a lattice icestick (http://www.latticesemi.com/icestick) and 
programmed it with iceprog (http://www.clifford.at/icestorm/) with the 
following verilog code:

example.v:

module top (input a, b, output y);
  assign y = a & b;
endmodule



example.pcf:

set_io a 1
set_io b 10
set_io y 11


All works great, but I don't know how to interact with this small 
circiut on my FPGA. How can I (for example) send a 1 for the a-input and 
another 1 to the b-input and then getting a 1 from the FPGA back. Do I 
need a special program for this or something like that?

Thank you for your support.
Sincerely,
Banane

: Locked by Moderator
Author: Sebastian (Guest)
Posted on:

Rate this post
0 useful
not useful
It seems that a connector can be soldered to the stick, the pin numbers 
probably correspond to pin numbers on the FPGA. This way, signals can be 
routed to external circuitry.

Author: Banane (Guest)
Posted on:

Rate this post
0 useful
not useful
First of all, thank you for your fast response.

I am searching for a software solution for this problem.
Do you know anything?

Author: Lattice User (Guest)
Posted on:

Rate this post
0 useful
not useful
Banane wrote:
> First of all, thank you for your fast response.
>
> I am searching for a software solution for this problem.
> Do you know anything?

There isn't a software solution to interact with your circuit.

The board has 5 LEDs, try to get one of them flashing, the "Hello World" 
for FPGAs.

Author: Bello (Guest)
Posted on:

Rate this post
0 useful
not useful

Author: Antti Lukats (xilant)
Posted on:

Rate this post
0 useful
not useful
there is no jtag on icestick

Author: Banane (Guest)
Posted on:

Rate this post
0 useful
not useful
Do you know a solution for my problem?

To go into detail: I would like to set a and b manually ( 1 or 0 ) and 
then see the result on y (in terminal/ on a program or something).

First, I only need one Logic Tile, only one LUT4 of the FPGA but it is 
hard to understand the documentation of the icestorm project because I 
only want to work with digital IN and OUT puts and not with LEDs/clock 
or something.

Author: P. K. (pek)
Posted on:

Rate this post
0 useful
not useful
Banane wrote:
> I only want to work with digital IN and OUT puts and not with LEDs/clock
> or something.

Lattice User wrote:
> The board has 5 LEDs, try to get one of them flashing, the "Hello World"
> for FPGAs.

@Banane:
The "Hello world" is the easiest way to get started with the system (you 
don't need to drive any inputs, and you can observe the result without 
need of scope or multimeter). If you mastered the tool chain, flash 
programming etc., there is still plenty of time to start with external 
inputs and not-so-easy-to-observe outputs and later make your results 
visible on a PC (that's still somewhat further away...).

Divide (into simple steps) and conquer is the way to do it.

: Edited by User
Author: Lothar Miller (lkmiller) (Moderator)
Posted on:

Rate this post
0 useful
not useful
P. K. wrote:
> If you mastered the tool chain
Seems he did that up to some level.
As Banane wrote:
> boutght a lattice icestick ... and programmed it ...
> All works great

Banane wrote:
> I am searching for a software solution for this problem.
But one thread is enough.
Go further on tere: https://embdev.net/topic/375560

: Edited by Moderator
This topic is locked and can not be replied to.