• Stars
    star
    315
  • Rank 132,951 (Top 3 %)
  • Language Verilog
  • Created almost 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

iCESugar FPGA Board (base on iCE40UP5k)

iCESugar

中文 English

iCESugar介绍

iCESugar 是MuseLab基于Lattice iCE40UP5k设计的开源FPGA开发板,开发板小巧精致,资源丰富,板载RGB LED,Switch,TYPE-C-USB, Micro-USB,大部分IO以标准PMOD接口引出,可与标准PMOD外设进行对接,方便日常的开发使用。
板载的调试器iCELink经过精心设计,支持拖拽烧录,用户只需将综合出的FPGA bitstream文件拖拽至虚拟U盘中,即可实现烧录。iCELink亦支持虚拟串口以和FPGA进行通信,同时引出JTAG接口,方便用户对FPGA上实现的SoC进行调试。
Lattice的iCE40系列芯片在国外的开源创客社区中拥有大量拥趸,其所有的开发软件环境亦均为开源。一般来说,假若您使用Xilinx或者Altera系列的开发板,您需要安装复杂臃肿的IDE开发环境(而且一般为盗版,使用存在一定法律风险), 在未开始开发前,首先还先需要学会如何操作其复杂的IDE。 iCE40则使用完全开源的工具链进行开发,包括FPGA综合(yosys),布线(arachne-pnr & nextpnr), 打包烧录(icestorm),编译(gcc),只需在Linux下输入数条命令,即可将整套工具链轻松安装,随后即可开始您的FPGA之旅,而且这一切都是开源的,您可仔细研究整个过程中任何一个细节的实现,非常适合个人研究学习,对于有丰富经验的开发者,亦可用来作为快速的逻辑验证平台。典型的基于iCE40系列的开源开发板有iCEBreaker、UPduino、BlackIce、iCEstick、TinyFPGA 等,社区中拥有丰富的demo可用于验证测试,或者作为自己开发学习的参考。
iCESugar是iCESugar系列的第一款开发板,iCESugar-nano(基于Lattice iCE40LP1k) 和 iCESugar-pro(基于Lattice ECP5)已经发布,以匹配不同的功能性能的需求。
icesugar_1

芯片规格

iCE40UP5K-SG48

  1. 5280 Logic Cells (4-LUT + Carry + FF)
  2. 128 KBit Dual-Port Block RAM
  3. 1 MBit (128 KB) Single-Port RAM
  4. PLL, Two SPI and two I2C hard IPs
  5. Two internal oscillators (10 kHz and 48 MHz)
  6. 8 DSPs (16x16 multiply + 32 bit accumulate)
  7. 3x 24mA drive and 3x hard PWM IP

硬件说明

iCE40UP5K

  1. SPI Flash使用W25Q64(8MB)
  2. 板载拨码开关和RGB LED可用于测试
  3. 所有IO以标准PMOD接口引出,可用于开发调试

iCELink

iCESugar实现了一个板载的调试器iCELink,您可仅用一根USB线便可实现FPGA的烧录和调试,具体功能说明如下:

  1. 拖拽烧录,将综合布线打包生成的bin文件(一般称之为配置或者逻辑)拖拽到iCELink的虚拟U盘中即可实现烧录
  2. 虚拟串口,可用于和FPGA直接数据的发送接收
  3. 支持JTAG, 可对FPGA上实现的SoC进行调试
  4. 通过MCO输出12Mhz时钟,作为FPGA的外部时钟

虚拟机镜像

链接:https://pan.baidu.com/s/1qVSdwM7DnFbaS0xdqsPNrA
提取码:6gn3
user: ubuntu
passwd: ubuntu
所有环境包括综合(yosys),布线(nextpnr),打包(icesorm),编译器(gcc) 已经预制好,启动即可开始使用。

开发环境搭建

推荐使用虚拟机镜像进行开发测试,简单方便。
FPGA工具链安装请参考icestorm
gcc工具链安装请参考 riscv-gnu-toolchain
也可直接下载xPack或者SiFive提供的预编译工具链

icesprog是为iCESugar开发的命令行烧写工具,仓库中已经提供,依赖libusb和hidapi,若自行搭建环境需要安装依赖的库
$sudo apt-get install libhidapi-dev
$sudo apt-get install libusb-1.0-0-dev

视频教程

FPGA教程

强烈推荐学习此教程,open-fpga-verilog-tutorial src/basic/open-fpga-verilog-tutorial目录中有对应的例程

产品链接

iCESugar FPGA Board

参考

RTL toolchain

http://www.clifford.at/icestorm/

Firmware toolchain

https://xpack.github.io/riscv-none-embed-gcc/install/ https://www.sifive.com/software

Examples

https://github.com/damdoy/ice40_ultraplus_examples
https://github.com/icebreaker-fpga/icebreaker-examples

SpinalHDL 教程

https://spinalhdl.github.io/SpinalDoc-RTD/SpinalHDL/Getting%20Started/index.html

开源FPGA单板iCESugar介绍

https://www.muselab-tech.com/wan-quan-shi-yong-kai-yuan-gong-ju-lian-de-fpgadan-ban/

More Repositories

1

nanoDAP

建议大家star此仓库,仓库会持续更新。由于部分淘宝卖家“借鉴”实验室出品的nanoDAP详情描述和资料,请大家认准实验室官方链接
C
1,010
star
2

nanoDLA

24MHz sampling rate Logic Analyzer based on fx2lafw
C
507
star
3

TD4-4BIT-CPU

simple 4-BIT CPU with 74-serials chip,origin by Kaoru Tonami in his book “How to build a CPU”
HTML
220
star
4

Colorlight-FPGA-Projects

current focus on Colorlight i5 and i9 & i9plus module
Verilog
208
star
5

icesugar-pro

iCESugar series FPGA dev board
Verilog
141
star
6

nanoDAP-wireless

nanoDAP-wireless无线仿真器用户手册
126
star
7

openocd-toolbox

OpenOCD工具箱 (温馨提示:请点击本页面右侧绿色按钮处下载zip压缩包)
Tcl
122
star
8

AntRunner

a DIY Antenna Rotator by BG5DIW
C
108
star
9

nanoDAP-HS

DAPLink High Speed
C
102
star
10

icesugar-nano

iCESugar-nano FPGA board (base on iCE40LP1K)
AGS Script
83
star
11

ESPLink

designed for debug Espressif's ESP series chips, include ESP8266/ESP32/ESP32-S2/ESP32-C3/ESP32-S3...
C
63
star
12

USB-HS-Bridge

61
star
13

nanoCH32V003

Shell
57
star
14

nanoCH32V203

45
star
15

nanoESP32-S2

Shell
44
star
16

nanoESP32-S3

ESP32-S3 dev board
C
42
star
17

smachine

Simple Machine, include simulator、ccompiler、assembler
C
40
star
18

nanoCH55x

Shell
39
star
19

8086sos

simple os for 8086 on a MBR
Assembly
34
star
20

RPI-HAT-Programmer

树莓派多功能编程器
C
33
star
21

nanoESP32-C3

ESP32-C3 dev board by muselab
Shell
26
star
22

PDTricker

C
25
star
23

f1c100s-gpio-tools

Command-line access to F1C100s GPIO
C
23
star
24

HC6502

home computer 6502
C
22
star
25

CVE-2020-8004

Python
20
star
26

sigrok-firmware-fx2lafw

C
19
star
27

nrf24-ble

C
15
star
28

nanoCH32V305

15
star
29

sos

Simple OS for raspberry pi 2 model B
C
14
star
30

dslogic

C
13
star
31

pico-lab

C
12
star
32

nanoESP32-C6

11
star
33

ART-of-PCB

HTML
10
star
34

nanoUART

a mini Serial Tool based on CH343P, support up to 6Mbps baudrate.
10
star
35

nanoDAP-HS-wireless

10
star
36

nanoSTM32F0

C
8
star
37

CH32V203-makefile-example

C
7
star
38

DIY-UDISK

6
star
39

RPI-HAT-CoolingFan

树莓派扩展板-散热风扇
C
6
star
40

pyocd-toolbox

Python
6
star
41

linux-wild-tutorial

Shell
6
star
42

RPI-HAT-Pico-BreakoutBoard

RPI-HAT-Pico-BreakoutBoard
Shell
5
star
43

nanoUART-wl

4
star
44

smart_switch_hack

https://www.muselab-tech.com/zhi-neng-kai-guan-ni-xiang-bing-shua-ru-tasmotagu-jian/
Shell
4
star
45

snowflake-light

3
star
46

CH32V003-makefile-example

C
3
star
47

naooUART-wl

2
star
48

wch-riscv-openocd

C
2
star
49

Look4Sat-AntRunner-Controller

Use Look4Sat to control my AntRunner rotator
C
2
star
50

esp32-key

2
star
51

rpi_monitor

自己动手做视频监控
C
2
star
52

nes

C
2
star
53

ml-esp-link

2
star
54

dot

some dot scripts.
Makefile
1
star
55

nanoUART-wl-lr

long range wirelss UART Tool
1
star
56

u-things

iot project with USB interface
C
1
star
57

python

some python application, games.
Python
1
star
58

blues_200_licks

1
star
59

opencv

1
star
60

gnuplot

some gnuplot script
Gnuplot
1
star
61

caculator

caculator written in C, for myself to learn the decline recursive analysis
C
1
star
62

Converter

C++
1
star
63

RPI-HAT-Lora-SX1278

C
1
star
64

pyqt5

Python
1
star
65

tools

C
1
star
66

RPI-HAT-Color-Matrix

1
star