Skip to content

Testing the Examples

Juan Gonzalez-Gomez edited this page May 27, 2021 · 117 revisions

Contents

Introduction

The iceK collection includes some examples for testing the blocks with different boards. These examples can also be used for testing the boards with icestudio, as the examples are very simple. Therefore, if it is the first time you are using icestudio with you board these examples could be a good starting point

Constant are very important! Specially the bit constant! With them we can create our first "hello world" circuit for turning on LEDs!

Turning on LEDs

Examples on how to use constants for turning LEDs on and off

Alhambra II

Examples for the Alhambra II Board

Example: 01-One-LED

The LED 0 is turned on

  • Result:

Example: 02-Two-LEDs

The LEDs 0 and 1 are turned on

  • Result:

IceStick

Examples for the iceStick Board

Example: 01-One-LED

  • Result: The LED D1 (red) is turned on

Example: 02-Two-LEDs

  • Result: The LEDs D1 and D2 are turned on

TinyFPGA

Example: 01-One-LED

  • Result: The LED is turned on

IceBreaker

Example: 01-One-LED

The LEDs G and R of the iceBreaker board work with negative logic. The constant 0 is used for turning the LED on and the constant 1 por turning it off

  • Result: The LED is turned on

Example: 02-Two-LEDs

  • Result: The LEDs G and R are turned on

NandLand Go Board

Example: 01-One-LED

  • Result: The LED D1 (green) is turned on

Example: 02-Two-LEDs

  • Result: The LEDs D1 and D2 are turned on

Icezum Alhambra

Example: 01-One-LED

  • Result: The LED0 is turned on

Example: 02-Two-LEDs

  • Result: The LEDs 0 and 1 are turned on

Mystorm BlackIce

Example: 01-One-LED

  • Result: The LED1 (blue) is turned on

Example: 02-Two-LEDs

  • Result: The LED1 (blue) and LED2 (green) are turned on

Lattice iCE40-HX8K Breakout Board

Example: 01-One-LED

  • Result: The LED0 (D9) is turned on

Example: 02-Two-LEDs

  • Result: The LED0 (D9) and LED1 (D8) are turned on

Lattice iCE40UP Breakout Board

Example: 01-One-LED

For turning the RGB LED the red component should be activated and the green and blue components deactivated. As the RGB led works with negative logic, a 0 bit should be placed on the Red output, and a 1 bit on the Green and Blue outputs

  • Result: The RGB LED is turned red

Example: 02-Two-LEDs

  • Result: The RGB LED is turned yellow because the red and green components are activated

Radiona ULX3S-12F

Example: 01-One-LED

  • Result:

Example: 02-Two-LEDs

  • Result:

Fomu

Example: 01-One-LED

  • Result:

Example: 02-Two-LEDs

  • Result:

iCESugar

Example: 01-One-LED

  • Result:

Example: 02-Two-LEDs

  • Result:


iceK Collection

Collections

Clone this wiki locally