在RISC-V软核上运行Linux的FPGA开发板 - OrangeCrab
这是一款基于Lattice的ECP5 FPGA设计的开发板,能够移植RISC-V软核,并可以运行Linux
标签
FPGA
开发板
ECP5
bullsear
更新2024-06-13
2202

来源:https://orangecrab-fpga.github.io/orangecrab-hardware/docs/r0.2.1/

Github资源:https://github.com/orangecrab-fpga/orangecrab-hardware


OrangeCrab是一款基于FPGA的轻量级电子开发板,采用了Lattice ECP5 FPGA。该板遵循Adafruit的轻量级板规格。FPGA兼容所有开源工具链,非常适合移植RISC-V内核实验。目前市面上支持ECP5的FPGA板不多,但这款板子有以下几个独特的特点:

  • 小巧紧凑的尺寸(随身携带!)
  • 直接连接FPGA的USB接口(作为DFU、MSC、CDC或复合设备运行!)
  • 板载DDR3内存(1Gbit!)
  • 预装DFU引导加载器(无需外部编程器!)
  • 它是橙色的!
  • 我们目前发货的硬件版本是V0.2.1。


这是一款基于Lattice的ECP5 FPGA设计的开发板,能够移植RISC-V软核,并可以运行Linux。硬件资源:

  • Lattice ECP5-25F FPGA in csfBGA285 package (-8 speed grade) (Part # LFE5U-25F-8MG285C)
    • 24 K - Look Up Tables
    • 1008 Kb - Embedded Block RAM
    • 194 Kb - Distributed RAM
    • 28 - 18x18 Multipliers
    • PLLs: 2
    • Internal oscillator
    • Flexible I/O for DDR3 Memory Support
  • DDR3L Memory
    • 128 Mbytes (1Gbit)
    • 64M x16
    • 1.35V low voltage operation
  • Micro USB connection
    • Full-speed (12Mbit) USB with a direct connection to the FPGA
  • Non-volatile Storage
    • 128Mbit QSPI FLASH Memory
    • Bootloader (First 4Mbits)
    • User Bitstream
    • User storage (Firmware/MSC backend/etc)
    • QSPI compatible
  • MicroSD socket
    • 4bit SD interface (CK, CMD, DAT0-3)
  • Power supply
    • High efficiency DCDC for main supplies
    • Battery charger (100mA), with a charge indicator LED
    • LiPo battery connector (PH type)
  • 48MHz onboard oscillator
  • Standard 0.05" JTAG connector
  • User I/O
    • 1x Button
    • 1x RGB LED
    • 20x I/O on 0.1" headers
  • Analog System
    • Analog Mux
    • SAR ADC, external RC / input comparator of FPGA
    • Digital bypass
    • Internal channels for supply monitor
    • Battery voltage sensing
  • Feather Format Board
    • Dimensions: 22.86mm x 50.8mm (0.9" x 2.0").


管脚定义:

DDR3 (IOVCC=1.35V) #

Name

Pad

ADDR[0]

C4

ADDR[1]

D2

ADDR[2]

D3

ADDR[3]

A3

ADDR[4]

A4

ADDR[5]

D4

ADDR[6]

C3

ADDR[7]

B2

ADDR[8]

B1

ADDR[9]

D1

ADDR[10]

A7

ADDR[11]

C2

ADDR[12]

B6

ADDR[13]

C1

ADDR[14]

A2

ADDR[15]

C7

ODT

C13

RESETn

L18

Name

Pad

BA[0]

D6

BA[1]

B7

BA[2]

A6

RAS

C12

CAS

D13

WEn

B12

CSn

A12

DM[0]

D16

DM[1]

G16

DQ[0]

C17

DQ[1]

D15

DQ[2]

B17

DQ[3]

C16

DQ[4]

A15

DQ[5]

B13

DQ[6]

A17

DQ[7]

A13

DQ[8]

F17

Name

Pad

DQ[9]

F16

DQ[10]

G15

DQ[11]

F15

DQ[12]

J16

DQ[13]

C18

DQ[14]

H16

DQ[15]

F18

DQS_n[0]

B15

DQS_p[1]

G18

CLK_p

J18

CKE

D18

*virtual_vccio[0]

K16

*virtual_vccio[1]

D17

*virtual_vccio[2]

K15

*virtual_vccio[3]

K17

*virtual_vccio[4]

B18

*virtual_vccio[5]

C6

*virtual_gnd[0]

L15

*virtual_gnd[1]

L16

  • Virtual VCCIO and GND are connected to VCCIO and GND on the PCB. They should be driven HIGH and LOW respectively to reduce SSO noise on the DDR3 I/O bank.

General (IOVCC=3.3V) #

Name

Pad

GPIO0

N17

GPIO1

M18

GPIO5

B10

GPIO6

B9

GPIO9

C8

GPIO10

B8

GPIO11

A8

GPIO12

H2

GPIO13

J2

GPIOA0

L4

GPIOA1

N3

GPIOA2

N4

GPIOA3

H4

Name

Pad

clk48

A9

rgb_led0_r

K4

rgb_led0_g

M3

rgb_led0_b

J3

BTN

J17

RSTn

V17

USB_p

N1

USB_n

M2

USB_pu

N2

QSPI_CSn

U17

QSPI_CLK

U16

QSPI_DQ[0]

U18

QSPI_DQ[1]

T18

QSPI_DQ[2]

R18

QSPI_DQ[3]

N18

Name

Pad

SD_DAT[0]

J1

SD_DAT[1]

K3

SD_DAT[2]

L3

SD_DAT[3]

M1

SD_CMD

K2

SD_CLK

K1

SD_CD

L1

ANA_MUX[0]

F4

ANA_MUX[0]

F3

ANA_MUX[0]

F2

ANA_MUX[0]

H1

ANA_SENSE_L

G3

ANA_SENSE_H

H3

ANA_CTRL[0]

G1

ANA_CTRL[1]

F1

huQ5bem8qEWS6jOqEZT13YNms1w1jYCuTvsmDYvE.jpeg

CVDGnzTZxgJDPQsGS2pfS1qyOsc8GyJnXYZxtTdF.jpeg

2Q==

OmblRsqDaZESwC92wrnKqH8UZCCuRcabdgBiyrej.jpeg

lZzlRclihhcAjztjFpqCWR6ELvq2bvqcusqFqjgE.jpeg

参考代码

Example code for Verilog, Litex, And RiscV can be found here:

交流社区

We have an OrangeCrab group on the 1BitSquared Discord

Licence

  • Hardware in this repository is licensed under CERN OHL v1.2
  • Gateware/Software/Firmware in this repository is licensed under MIT unless otherwise indicated

开源硬件

This board is an OSHWA approved design: AU000006

物料清单
KiCad文件
使用说明
全屏
附件下载
OrangeCrab.pdf
PDF格式的原理图
orangecrab_r0.2.1.zip
可以解压使用的工程文件
团队介绍
1Bit Squared
评论
0 / 100
查看更多
目录
硬禾服务号
关注最新动态
0512-67862536
info@eetree.cn
江苏省苏州市苏州工业园区新平街388号腾飞创新园A2幢815室
苏州硬禾信息科技有限公司
Copyright © 2024 苏州硬禾信息科技有限公司 All Rights Reserved 苏ICP备19040198号