SlideShare a Scribd company logo
RISC-V and
open source chip design
Drew Fustini
OSH Park
drew@oshpark.com
@oshpark / @pdp7
Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
NERP meetup at PS1 hackerspace (2020-01-27)
●
Open Source Hardware designer at OSH Park
●
PCB manufacturing service in the USA
●
drew@oshpark.com / Twitter: @oshpark
●
Volunteer Member of Board of Directors of
BeagleBoard.org Foundation
●
drew@beagleboard.org
●
Volunteer Member of the Board of Directors of
the Open Source Hardware Association
(OSHWA)
●
drew@pdp7.com
RISC-V and open source chip design
Section:
RISC-V
the instruction set for everything?
Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
●
My column in the latest Hackspace Magazine is
an introduction to RISC-V and how it is enabling
open source chip design:
– hackspace.raspberrypi.org/issues/27/
●
When you write a program in the Arduino IDE,
it is compiled into instructions for the
microcontroller to execute.
●
How does the compiler know what instructions
the chip understands?
– defined by the Instruction Set Architecture
– The ISA is a standard, a set of rules that define
the tasks the processor can perform.
– Examples: x86 (Intel/AMD) and ARM
●
Both are proprietary and need commercial licensing
●
RISC-V: Free and Open RISC Instruction Set
Arch
– “new instruction set architecture (ISA) that was
originally designed to support computer architecture
research and education and is now set to become a
standard open architecture for industry”
●
RISC-V: Free and Open RISC Instruction Set
Arch
●
Instruction Sets Want To Be Free: A Case for RISC-V
– David Patterson, UC Berekely – co-creator of the original RISC!
– https://www.youtube.com/watch?v=mD-njD2QKN0
●
RISC-V Summit 2019: State of the Union
– Krste Asanovic, UC Berkeley
– https://www.youtube.com/watch?v=jdkFi9_Hw-c
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and Industry
●
Created at UC Berkeley but useful beyond academia
●
Designed to be extensible
– Microcontroller to supercomputer
●
RISC-V Foundation now controls standard: riscv.org
– Over 400 members: companies, universities and more
– YouTube channel has hundreds of talks!
●
https://www.youtube.com/channel/UC5gLmcFuvdGbajs4VL-WU3g
●
Nvidia and Western Digital are now shipping millions of devices with
RISC-V processors
– freedom to leverage open source implementations
●
BOOM, Rocket, PULP, SweRV, and many more
– avoiding ARM licensing fees
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and the world
●
RISC-V Foundation moving from US to Switzerland
●
Nations such as India have RISC-V initiatives
– Desire for sovereign technology and avoid backdoors
from other nations
●
Strong interest from chipmakers in China
– U.S. companies have been banned from doing business
with Huawei… who’s next?
– ARM deemed UK-origin tech so ok to do business with
Huawei, but what will brexit-govt bring?
●
OnChip Open-V
“completely free (as in freedom) and open
source 32-bit microcontroller based on the
RISC-V architecture”
OnChip Open-V
●
lowRISC: “creating a fully open-sourced, Linux-
capable, RISC-V-based SoC, that can be used
either directly or as the basis for a custom design”
●
Video: Rob Mullins talking about lowRISC
– (RISC-V & Open Source Silicon Event in Munich on March 23, 2017
●
OpenTitan project with Google:
– Announcing OpenTitan, the First Transparent Silicon Root of Trust
●
The Future of Operating Systems on RISC-V
– Alex Bradbury gives an overview of the status and
development of RISC-V as it relates to modern
operating systems, highlighting major research
strands, controversies, and opportunities to get
involved.
– https://www.youtube.com/watch?v=emnN9p4vhzk
●
FOSSi Foundation
– The Free and Open Source Silicon Foundation
– “non-profit foundation with the mission to promote
and assist free and open digital hardware designs”
– Events: ORConf, Latch-up, Week of OSHW
– Open Source Silicon Design Ecosystem
●
Talk by FOSSi co-founder Julius Baxter
●
LibreCores
– Project of the FOSSi Foundation
– “gateway to free and open source digital
designs and other components that you can
use and re-use in your digital designs”
– “advances the idea of OpenCores.org”
SiFive
●
“founded by the creators of the free and open
RISC-V architecture as a reaction to the end of
conventional transistor scaling and escalating
chip design costs”
●
RISC-V Keynote at Embedded Linux Conf
– March 12th, 2018
– Yunsup Lee, Co-Founder and CTO, SiFive
– Designing the Next Billion Chips: How RISC-V is
Revolutionizing Hardware
●
HiFive1: Arduino-Compatible RISC-V Dev Kit
SiFive FE310 microcontroller
●
FOSDEM 2018 talk
– YouTube: “Igniting the Open Hardware Ecosystem
with RISC-V: SiFive's Freedom U500 is the World's
First Linux-capable Open Source SoC Platform”
– Interview with Palmer Dabbelt of SiFive
SiFive: Linux on RISC-V
●
HiFive Unleashed on Crowd Supply
SiFive: Linux on RISC-V
RISC-V and open source chip design
RISC-V and open source chip design
●
Experiment to get Linux on the low cost Kendryte
K210 RISC-V microcontroller
●
PDF: RISC-V NOMMU and M-mode Linux
●
https://www.youtube.com/watch?v=ycG592N9EMA
&t=10394
●
jump to 2h 53m
●
Many RISC-V Improvements Ready For Linux 5.5:
M-Mode, SECCOMP, Other Features
●
Great talk with overview of bootloader,
Linux kernel, distro support
– HOT CHIPS 2019: Linux RISC-V tutorial
– https://youtu.be/nPXdbm9lc3A?t=6139
– 1 hour 42 minutes
– “Overview of RISC-V SW Ecosystem”
●
Bunnaroath Sou, SiFive
RISC-V and open source chip design
RISC-V and open source chip design
RISC-V and open source chip design
●
Andes 27-series CPU
– “32-bit A27 and 64-bit AX27 and NX27V cores, which will
enter production in Q1 2020.”
– Andes’ RISC-V SoC debuts with AI-ready VPU as Microchip
opens access to its PolarFire SoC
●
Microchip PolarFire SoC FPGA
– Hard RISC-V with FPGA fabric… like the Xilinx Zync for ARM
●
NXP iMX with RISC-V instead of ARM!
– “OpenHW Group Unveils CORE-V Chassis SoC Project, Buil
ding on PULP Project IP”
Coming in 2020?
RISC-V and open source chip design
Coming in 2020?
●
Goal: Sub-$100 Open Source Hardware
board that can run Linux on RISC-V
●
Possible by 2021?
●
Interested in working together?
– drew@oshpark.com / Twitter: @pdp7
– create a mailing list?
OSHW RISC-V Linux board for
less than $100?
Section:
Open Source FPGA tools
Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
●
Hackspace Magazine column about how about
open source FPGA tools developed by
Claire Wolf (oe1cxw), David Shah and others
have made FPGAs more accessible than ever
before to makers and hackers:
– hackspace.raspberrypi.org/issues/26/
Open Source and FPGAs
●
Keynote at Hackday Supercon 2019 by
Dr. Megan Wachs of SiFive
●
“RISC-V and FPGAs: Open Source Hardware
Hacking”
– https://www.youtube.com/watch?v=vCG5_nxm2G4
RISC-V and open source chip design
●
Open Source toolchains for FPGAs!
– Project IceStorm for Lattice iCE40
●
“A Free and Open Source Verilog-to-Bitstream Flow for iC
E40 FPGAs”
by Claire Wolf (oe1cxw) at 32c3
Open Source and FPGAs
●
Open Source toolchains for FPGAs!
– Project Trellis for Lattice ECP5
– “Project Trellis and nextpnr FOSS FPGA flow for the
Lattice ECP5”
- David Shah (@fpga_dave)
●
youtube.com/watch?v=0se7kNes3EU
Open Source and FPGAs
●
Open Source toolchains for FPGAs!
– Project X-Ray and SymbiFlow for Xilinix Series 7
– Timothy ‘mithro’ Ansell: “Xilinx Series 7 FPGAs Now
Have a Fully Open Source Toolchain!” (almost)
●
youtube.com/watch?v=EHePto95qoE
Open Source and FPGAs
●
Open Source Hardware boards with Lattice
ECP5 FPGA with open RISC-V “soft” CPU:
– Orange Crab by Greg Davill
●
https://github.com/gregdavill/OrangeCrab
Open Source and FPGAs
RISC-V and open source chip design
●
Radiona.org ULX3S
●
https://www.crowdsupply.com/radiona/ulx3s
Open Source and FPGAs
●
Open Source Hardware boards with Lattice
ECP5 FPGA with open RISC-V “soft” CPU:
– David Shah's Trellis board (Ultimate ECP5 Board)
– https://github.com/daveshah1/TrellisBoard
Open Source and FPGAs
Hackaday 2019 Supercon badge
●
RISC-V “soft” core on ECP5 FPGA
●
Gigantic FPGA In A Game Boy Form Factor
RISC-V and open source chip design
●
LiteX is a FPGA design/SoC builder that can be used to
build cores, create SoCs and full FPGA designs.
●
LiteX is based on Migen and provides specific building/
debugging tools for a higher level of abstraction and
compatibily with the LiteX core ecosystem.
●
Think of Migen as a toolbox to create FPGA designs in
Python and LiteX as a SoC builder to
create/develop/debug FPGA SoCs in Python
●
https://github.com/enjoy-digital/litex
●
Bunnie:
LiteX vs. Vivado: First Impressions
https://www.bunniestudios.com/blog/?p=5018
RISC-V and open source chip design
Linux on LiteX-VexRiscv
●
Linux with VexRiscv CPU, a 32-bits Linux
Capable RISC-V CPU written in Spinal HDL
●
SoC around the VexRiscv CPU is created using
LiteX as the SoC builder and LiteX's cores
written in Migen Python DSL (LiteDRAM,
LiteEth, LiteSDCard)
●
github.com/litex-hub/linux-on-litex-vexriscv
Linux on LiteX-VexRiscv
Section:
Linux on the Hackaday Badge
Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
Hackaday 2019 Supercon badge
●
RISC-V “soft” core on ECP5 FPGA
●
Gigantic FPGA In A Game Boy Form Factor
“Team Linux on Badge”
“Team Linux on Badge”
●
Blog post: Hackaday Supercon badge boots Linux
using SDRAM cartridge
– https://blog.oshpark.com/2019/12/20/boot-linux-on-this-
hackaday-supercon-badge-with-this-sdram-cartridge/
●
Michael Welling (@QwertyEmedded), Tim Ansell
(@mithro), Sean Cross (@xobs), Jacob Creedon
(@jacobcreedon)
●
First attempt: use the built-in 16MB SRAM…
no luck :(
– (though xobs now might have a way to do it)
“Team Linux on Badge”
●
Second attempt:
– Jacob Creedon designed an a cartridge board that
adds 32MB of SDRAM to the Hackaday Supercon
badge… before the event!
“Team Linux on Badge”
●
Second attempt:
– Jacob Creedon designed an a cartridge board that
adds 32MB of SDRAM to the Hackaday Supercon
badge… before the event!
RISC-V and open source chip design
“Team Linux on Badge”
●
https://youtu.be/3se_L0tRZeg?t=1055
Linux on LiteX-VexRiscv
●
Linux with VexRiscv CPU, a 32-bits Linux
Capable RISC-V CPU written in Spinal HDL
– github.com/litex-hub/linux-on-litex-vexriscv
●
NOW with upstream support for the Hackaday
Supercon badge!
– https://github.com/litex-hub/litex-boards/pull/31
RISC-V and open source chip design
●
Opened GitHub issue:
– optimize performance on Hackaday Badge #35
●
https://github.com/litex-hub/litex-boards/issues/35
●
Now 10x faster!
– https://asciinema.org/a/Pcm3vd1BEdEKY9srYX6Ms
NfCE
– Thanks to enjoy-digital
RISC-V and open source chip design
Slides:
github.com/pdp7/talks/blob/master/lug-riscv.pdf
Drew Fustini
drew@oshpark.com
@pdp7 / @oshpark
This work is licensed under a Creative Commons
Attribution-ShareAlike 4.0 International License.
bonus section:
Open Source Hardware laptop from
Berlin
Slides: https://github.com/pdp7/talks/blob/master/lug-riscv.pdf
RISC-V and open source chip design
Ad

Recommended

How to run Linux on RISC-V
How to run Linux on RISC-V
Drew Fustini
 
Linux on RISC-V (ELC 2020)
Linux on RISC-V (ELC 2020)
Drew Fustini
 
How to run Linux on RISC-V (FOSS North 2020)
How to run Linux on RISC-V (FOSS North 2020)
Drew Fustini
 
Berlin Embedded Linux meetup: How to Linux on RISC-V
Berlin Embedded Linux meetup: How to Linux on RISC-V
Drew Fustini
 
Linux on Open Source Hardware with Open Source chip design (36c3)
Linux on Open Source Hardware with Open Source chip design (36c3)
Drew Fustini
 
Introduction to Open Source Hardware, OSHWA and Open Hardware Summit
Introduction to Open Source Hardware, OSHWA and Open Hardware Summit
Drew Fustini
 
Linux on RISC-V
Linux on RISC-V
Drew Fustini
 
Open Source Hardware and Libre Silicon
Open Source Hardware and Libre Silicon
Drew Fustini
 
Intro to Open Source Hardware (OSHW)
Intro to Open Source Hardware (OSHW)
Drew Fustini
 
Open Source Hardware for Good
Open Source Hardware for Good
Drew Fustini
 
For the Love of Tux: Linux on RISC-V
For the Love of Tux: Linux on RISC-V
Drew Fustini
 
Open Source Hardware, Linux and RISC-V
Open Source Hardware, Linux and RISC-V
Drew Fustini
 
Bringing Tizen to a Raspberry Pi 2 Near You
Bringing Tizen to a Raspberry Pi 2 Near You
Samsung Open Source Group
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
Samsung Open Source Group
 
IoTivity on Tizen: How to
IoTivity on Tizen: How to
Samsung Open Source Group
 
Connected Tizen: Bringing Tizen to Your Connected Devices Using the Yocto Pro...
Connected Tizen: Bringing Tizen to Your Connected Devices Using the Yocto Pro...
Samsung Open Source Group
 
Philosophy of Open Source - SFO17-TR01
Philosophy of Open Source - SFO17-TR01
Linaro
 
Embedded Android Workshop with Lollipop
Embedded Android Workshop with Lollipop
Opersys inc.
 
Toward "OCF Automotive" profile
Toward "OCF Automotive" profile
Samsung Open Source Group
 
Tizen architecture-solutionslinux-20130529
Tizen architecture-solutionslinux-20130529
Phil www.rzr.online.fr
 
Openoffice and Linux
Openoffice and Linux
Olivier Teytaud
 
Tizen contrib-fosdem-20140201
Tizen contrib-fosdem-20140201
Phil www.rzr.online.fr
 
tizen-upstream-coop-tdc2014-pcoval
tizen-upstream-coop-tdc2014-pcoval
Phil www.rzr.online.fr
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
Opersys inc.
 
LAS16-310: Introducing the first 96Boards TV Platform: Poplar by Hisilicon
LAS16-310: Introducing the first 96Boards TV Platform: Poplar by Hisilicon
Linaro
 
tizen-maintain-20150413rzr
tizen-maintain-20150413rzr
Phil www.rzr.online.fr
 
IoT Prototyping using BBB and Debian
IoT Prototyping using BBB and Debian
Mender.io
 
How to design your own chip?
How to design your own chip?
Philipp Wagner
 
Linux on RISC-V
Linux on RISC-V
Drew Fustini
 
Linux on RISC-V with Open Hardware (ELC-E 2020)
Linux on RISC-V with Open Hardware (ELC-E 2020)
Drew Fustini
 

More Related Content

What's hot (20)

Intro to Open Source Hardware (OSHW)
Intro to Open Source Hardware (OSHW)
Drew Fustini
 
Open Source Hardware for Good
Open Source Hardware for Good
Drew Fustini
 
For the Love of Tux: Linux on RISC-V
For the Love of Tux: Linux on RISC-V
Drew Fustini
 
Open Source Hardware, Linux and RISC-V
Open Source Hardware, Linux and RISC-V
Drew Fustini
 
Bringing Tizen to a Raspberry Pi 2 Near You
Bringing Tizen to a Raspberry Pi 2 Near You
Samsung Open Source Group
 
IoTivity: From Devices to the Cloud
IoTivity: From Devices to the Cloud
Samsung Open Source Group
 
IoTivity on Tizen: How to
IoTivity on Tizen: How to
Samsung Open Source Group
 
Connected Tizen: Bringing Tizen to Your Connected Devices Using the Yocto Pro...
Connected Tizen: Bringing Tizen to Your Connected Devices Using the Yocto Pro...
Samsung Open Source Group
 
Philosophy of Open Source - SFO17-TR01
Philosophy of Open Source - SFO17-TR01
Linaro
 
Embedded Android Workshop with Lollipop
Embedded Android Workshop with Lollipop
Opersys inc.
 
Toward "OCF Automotive" profile
Toward "OCF Automotive" profile
Samsung Open Source Group
 
Tizen architecture-solutionslinux-20130529
Tizen architecture-solutionslinux-20130529
Phil www.rzr.online.fr
 
Openoffice and Linux
Openoffice and Linux
Olivier Teytaud
 
Tizen contrib-fosdem-20140201
Tizen contrib-fosdem-20140201
Phil www.rzr.online.fr
 
tizen-upstream-coop-tdc2014-pcoval
tizen-upstream-coop-tdc2014-pcoval
Phil www.rzr.online.fr
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
Opersys inc.
 
LAS16-310: Introducing the first 96Boards TV Platform: Poplar by Hisilicon
LAS16-310: Introducing the first 96Boards TV Platform: Poplar by Hisilicon
Linaro
 
tizen-maintain-20150413rzr
tizen-maintain-20150413rzr
Phil www.rzr.online.fr
 
IoT Prototyping using BBB and Debian
IoT Prototyping using BBB and Debian
Mender.io
 
How to design your own chip?
How to design your own chip?
Philipp Wagner
 
Intro to Open Source Hardware (OSHW)
Intro to Open Source Hardware (OSHW)
Drew Fustini
 
Open Source Hardware for Good
Open Source Hardware for Good
Drew Fustini
 
For the Love of Tux: Linux on RISC-V
For the Love of Tux: Linux on RISC-V
Drew Fustini
 
Open Source Hardware, Linux and RISC-V
Open Source Hardware, Linux and RISC-V
Drew Fustini
 
Connected Tizen: Bringing Tizen to Your Connected Devices Using the Yocto Pro...
Connected Tizen: Bringing Tizen to Your Connected Devices Using the Yocto Pro...
Samsung Open Source Group
 
Philosophy of Open Source - SFO17-TR01
Philosophy of Open Source - SFO17-TR01
Linaro
 
Embedded Android Workshop with Lollipop
Embedded Android Workshop with Lollipop
Opersys inc.
 
Tizen architecture-solutionslinux-20130529
Tizen architecture-solutionslinux-20130529
Phil www.rzr.online.fr
 
Embedded Android Workshop with Marshmallow
Embedded Android Workshop with Marshmallow
Opersys inc.
 
LAS16-310: Introducing the first 96Boards TV Platform: Poplar by Hisilicon
LAS16-310: Introducing the first 96Boards TV Platform: Poplar by Hisilicon
Linaro
 
IoT Prototyping using BBB and Debian
IoT Prototyping using BBB and Debian
Mender.io
 
How to design your own chip?
How to design your own chip?
Philipp Wagner
 

Similar to RISC-V and open source chip design (20)

Linux on RISC-V
Linux on RISC-V
Drew Fustini
 
Linux on RISC-V with Open Hardware (ELC-E 2020)
Linux on RISC-V with Open Hardware (ELC-E 2020)
Drew Fustini
 
FPGA Badge Hack: Linux on RISC-V
FPGA Badge Hack: Linux on RISC-V
Drew Fustini
 
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
Drew Fustini
 
RISC-V software state of the union
RISC-V software state of the union
RISC-V International
 
Insights_on_Open_Hardware_And_RISC-V.pptx
Insights_on_Open_Hardware_And_RISC-V.pptx
jayarajevur
 
The Future of Operating Systems on RISC-V
The Future of Operating Systems on RISC-V
C4Media
 
Bsdtw17: arun thomas: risc v berkeley hardware for your berkeley software dis...
Bsdtw17: arun thomas: risc v berkeley hardware for your berkeley software dis...
Scott Tsai
 
RISC-V Online Tutor
RISC-V Online Tutor
RISC-V International
 
RISC-V-The Open New-Era of Computing-04-19-202.pptx
RISC-V-The Open New-Era of Computing-04-19-202.pptx
AzharZahid1
 
RISC-V-Introduction-_-Aug-2021.pptx
RISC-V-Introduction-_-Aug-2021.pptx
ssuser300b04
 
DRAC: Designing RISC-V-based Accelerators for next generation Computers
DRAC: Designing RISC-V-based Accelerators for next generation Computers
Facultad de Informática UCM
 
RISC-V Foundation Overview
RISC-V Foundation Overview
CatherineLockwood1
 
RISC-V Foundation Overview
RISC-V Foundation Overview
RISC-V International
 
RISC-V: The Open Era of Computing
RISC-V: The Open Era of Computing
RISC-V International
 
The new reality and tremendous opportunity of open source processing
The new reality and tremendous opportunity of open source processing
Mark Sinclair
 
RISC-V Introduction
RISC-V Introduction
Yi-Hsiu Hsu
 
RISC-V growth and successes in technology and industry - embedded world 2021
RISC-V growth and successes in technology and industry - embedded world 2021
RISC-V International
 
RISC-V Unconstrained
RISC-V Unconstrained
RISC-V International
 
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
EmbeddedFest
 
Linux on RISC-V with Open Hardware (ELC-E 2020)
Linux on RISC-V with Open Hardware (ELC-E 2020)
Drew Fustini
 
FPGA Badge Hack: Linux on RISC-V
FPGA Badge Hack: Linux on RISC-V
Drew Fustini
 
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
Linux on RISC-V with Open Source Hardware (Open Source Summit Japan 2020)
Drew Fustini
 
RISC-V software state of the union
RISC-V software state of the union
RISC-V International
 
Insights_on_Open_Hardware_And_RISC-V.pptx
Insights_on_Open_Hardware_And_RISC-V.pptx
jayarajevur
 
The Future of Operating Systems on RISC-V
The Future of Operating Systems on RISC-V
C4Media
 
Bsdtw17: arun thomas: risc v berkeley hardware for your berkeley software dis...
Bsdtw17: arun thomas: risc v berkeley hardware for your berkeley software dis...
Scott Tsai
 
RISC-V-The Open New-Era of Computing-04-19-202.pptx
RISC-V-The Open New-Era of Computing-04-19-202.pptx
AzharZahid1
 
RISC-V-Introduction-_-Aug-2021.pptx
RISC-V-Introduction-_-Aug-2021.pptx
ssuser300b04
 
DRAC: Designing RISC-V-based Accelerators for next generation Computers
DRAC: Designing RISC-V-based Accelerators for next generation Computers
Facultad de Informática UCM
 
The new reality and tremendous opportunity of open source processing
The new reality and tremendous opportunity of open source processing
Mark Sinclair
 
RISC-V Introduction
RISC-V Introduction
Yi-Hsiu Hsu
 
RISC-V growth and successes in technology and industry - embedded world 2021
RISC-V growth and successes in technology and industry - embedded world 2021
RISC-V International
 
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
Embedded Fest 2019. Wei Fu. Linux on RISC-V--Fedora and Firmware in practice
EmbeddedFest
 
Ad

More from Drew Fustini (14)

Autodesk EAGLE and OSH Park
Autodesk EAGLE and OSH Park
Drew Fustini
 
BeagleBone Blue at Maker Faire 2017
BeagleBone Blue at Maker Faire 2017
Drew Fustini
 
Portland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source Hardware
Drew Fustini
 
Google Summer of Code and BeagleBoard.org
Google Summer of Code and BeagleBoard.org
Drew Fustini
 
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Drew Fustini
 
Linux on Open Source Hardware
Linux on Open Source Hardware
Drew Fustini
 
Software Defined Radio (SDR)
Software Defined Radio (SDR)
Drew Fustini
 
Espruino - JavaScript for Microcontrollers
Espruino - JavaScript for Microcontrollers
Drew Fustini
 
Eudyptula Challenge
Eudyptula Challenge
Drew Fustini
 
Open Hardware Summit 2014
Open Hardware Summit 2014
Drew Fustini
 
fustini-resume-oshw
fustini-resume-oshw
Drew Fustini
 
chilug-bbone-20140118-151216015606
chilug-bbone-20140118-151216015606
Drew Fustini
 
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
Drew Fustini
 
Embedded Linux primer
Embedded Linux primer
Drew Fustini
 
Autodesk EAGLE and OSH Park
Autodesk EAGLE and OSH Park
Drew Fustini
 
BeagleBone Blue at Maker Faire 2017
BeagleBone Blue at Maker Faire 2017
Drew Fustini
 
Portland Science Hack Day: Open Source Hardware
Portland Science Hack Day: Open Source Hardware
Drew Fustini
 
Google Summer of Code and BeagleBoard.org
Google Summer of Code and BeagleBoard.org
Drew Fustini
 
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Taking the BeagleBone Cookbook recipes beyond BeagleBone Black
Drew Fustini
 
Linux on Open Source Hardware
Linux on Open Source Hardware
Drew Fustini
 
Software Defined Radio (SDR)
Software Defined Radio (SDR)
Drew Fustini
 
Espruino - JavaScript for Microcontrollers
Espruino - JavaScript for Microcontrollers
Drew Fustini
 
Eudyptula Challenge
Eudyptula Challenge
Drew Fustini
 
Open Hardware Summit 2014
Open Hardware Summit 2014
Drew Fustini
 
fustini-resume-oshw
fustini-resume-oshw
Drew Fustini
 
chilug-bbone-20140118-151216015606
chilug-bbone-20140118-151216015606
Drew Fustini
 
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
MinnowBoard MAX: Open Source Hardware 64-bit x86 Single Board Computer
Drew Fustini
 
Embedded Linux primer
Embedded Linux primer
Drew Fustini
 
Ad

Recently uploaded (20)

Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
 
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
special_edition_using_visual_foxpro_6.pdf
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
 
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
 
Cadastral Maps
Cadastral Maps
Google
 
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
 
machine learning is a advance technology
machine learning is a advance technology
ynancy893
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
Introduction to Natural Language Processing - Stages in NLP Pipeline, Challen...
resming1
 
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Rapid Prototyping for XR: Lecture 5 - Cross Platform Development
Mark Billinghurst
 
Introduction to Python Programming Language
Introduction to Python Programming Language
merlinjohnsy
 
special_edition_using_visual_foxpro_6.pdf
special_edition_using_visual_foxpro_6.pdf
Shabista Imam
 
AI_Presentation (1). Artificial intelligence
AI_Presentation (1). Artificial intelligence
RoselynKaur8thD34
 
Structured Programming with C++ :: Kjell Backman
Structured Programming with C++ :: Kjell Backman
Shabista Imam
 
retina_biometrics ruet rajshahi bangdesh.pptx
retina_biometrics ruet rajshahi bangdesh.pptx
MdRakibulIslam697135
 
Cadastral Maps
Cadastral Maps
Google
 
Proposal for folders structure division in projects.pdf
Proposal for folders structure division in projects.pdf
Mohamed Ahmed
 
machine learning is a advance technology
machine learning is a advance technology
ynancy893
 
Industry 4.o the fourth revolutionWeek-2.pptx
Industry 4.o the fourth revolutionWeek-2.pptx
KNaveenKumarECE
 
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
Deep Learning for Image Processing on 16 June 2025 MITS.pptx
resming1
 
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
CST413 KTU S7 CSE Machine Learning Clustering K Means Hierarchical Agglomerat...
resming1
 
Solar thermal – Flat plate and concentrating collectors .pptx
Solar thermal – Flat plate and concentrating collectors .pptx
jdaniabraham1
 
Unit III_One Dimensional Consolidation theory
Unit III_One Dimensional Consolidation theory
saravananr808639
 
Complete guidance book of Asp.Net Web API
Complete guidance book of Asp.Net Web API
Shabista Imam
 
60 Years and Beyond eBook 1234567891.pdf
60 Years and Beyond eBook 1234567891.pdf
waseemalazzeh
 
Microwatt: Open Tiny Core, Big Possibilities
Microwatt: Open Tiny Core, Big Possibilities
IBM
 
Structural Wonderers_new and ancient.pptx
Structural Wonderers_new and ancient.pptx
nikopapa113
 
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Tally.ERP 9 at a Glance.book - Tally Solutions .pdf
Shabista Imam
 

RISC-V and open source chip design

  • 1. RISC-V and open source chip design Drew Fustini OSH Park [email protected] @oshpark / @pdp7 Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf NERP meetup at PS1 hackerspace (2020-01-27)
  • 2. ● Open Source Hardware designer at OSH Park ● PCB manufacturing service in the USA ● [email protected] / Twitter: @oshpark ● Volunteer Member of Board of Directors of BeagleBoard.org Foundation ● [email protected] ● Volunteer Member of the Board of Directors of the Open Source Hardware Association (OSHWA) ● [email protected]
  • 4. Section: RISC-V the instruction set for everything? Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
  • 5. ● My column in the latest Hackspace Magazine is an introduction to RISC-V and how it is enabling open source chip design: – hackspace.raspberrypi.org/issues/27/
  • 6. ● When you write a program in the Arduino IDE, it is compiled into instructions for the microcontroller to execute. ● How does the compiler know what instructions the chip understands? – defined by the Instruction Set Architecture – The ISA is a standard, a set of rules that define the tasks the processor can perform. – Examples: x86 (Intel/AMD) and ARM ● Both are proprietary and need commercial licensing
  • 7. ● RISC-V: Free and Open RISC Instruction Set Arch – “new instruction set architecture (ISA) that was originally designed to support computer architecture research and education and is now set to become a standard open architecture for industry”
  • 8. ● RISC-V: Free and Open RISC Instruction Set Arch ● Instruction Sets Want To Be Free: A Case for RISC-V – David Patterson, UC Berekely – co-creator of the original RISC! – https://www.youtube.com/watch?v=mD-njD2QKN0 ● RISC-V Summit 2019: State of the Union – Krste Asanovic, UC Berkeley – https://www.youtube.com/watch?v=jdkFi9_Hw-c
  • 17. RISC-V and Industry ● Created at UC Berkeley but useful beyond academia ● Designed to be extensible – Microcontroller to supercomputer ● RISC-V Foundation now controls standard: riscv.org – Over 400 members: companies, universities and more – YouTube channel has hundreds of talks! ● https://www.youtube.com/channel/UC5gLmcFuvdGbajs4VL-WU3g ● Nvidia and Western Digital are now shipping millions of devices with RISC-V processors – freedom to leverage open source implementations ● BOOM, Rocket, PULP, SweRV, and many more – avoiding ARM licensing fees
  • 20. RISC-V and the world ● RISC-V Foundation moving from US to Switzerland ● Nations such as India have RISC-V initiatives – Desire for sovereign technology and avoid backdoors from other nations ● Strong interest from chipmakers in China – U.S. companies have been banned from doing business with Huawei… who’s next? – ARM deemed UK-origin tech so ok to do business with Huawei, but what will brexit-govt bring?
  • 21. ● OnChip Open-V “completely free (as in freedom) and open source 32-bit microcontroller based on the RISC-V architecture”
  • 23. ● lowRISC: “creating a fully open-sourced, Linux- capable, RISC-V-based SoC, that can be used either directly or as the basis for a custom design” ● Video: Rob Mullins talking about lowRISC – (RISC-V & Open Source Silicon Event in Munich on March 23, 2017 ● OpenTitan project with Google: – Announcing OpenTitan, the First Transparent Silicon Root of Trust
  • 24. ● The Future of Operating Systems on RISC-V – Alex Bradbury gives an overview of the status and development of RISC-V as it relates to modern operating systems, highlighting major research strands, controversies, and opportunities to get involved. – https://www.youtube.com/watch?v=emnN9p4vhzk
  • 25. ● FOSSi Foundation – The Free and Open Source Silicon Foundation – “non-profit foundation with the mission to promote and assist free and open digital hardware designs” – Events: ORConf, Latch-up, Week of OSHW – Open Source Silicon Design Ecosystem ● Talk by FOSSi co-founder Julius Baxter
  • 26. ● LibreCores – Project of the FOSSi Foundation – “gateway to free and open source digital designs and other components that you can use and re-use in your digital designs” – “advances the idea of OpenCores.org”
  • 27. SiFive ● “founded by the creators of the free and open RISC-V architecture as a reaction to the end of conventional transistor scaling and escalating chip design costs”
  • 28. ● RISC-V Keynote at Embedded Linux Conf – March 12th, 2018 – Yunsup Lee, Co-Founder and CTO, SiFive – Designing the Next Billion Chips: How RISC-V is Revolutionizing Hardware
  • 29. ● HiFive1: Arduino-Compatible RISC-V Dev Kit SiFive FE310 microcontroller
  • 30. ● FOSDEM 2018 talk – YouTube: “Igniting the Open Hardware Ecosystem with RISC-V: SiFive's Freedom U500 is the World's First Linux-capable Open Source SoC Platform” – Interview with Palmer Dabbelt of SiFive SiFive: Linux on RISC-V
  • 31. ● HiFive Unleashed on Crowd Supply SiFive: Linux on RISC-V
  • 34. ● Experiment to get Linux on the low cost Kendryte K210 RISC-V microcontroller ● PDF: RISC-V NOMMU and M-mode Linux ● https://www.youtube.com/watch?v=ycG592N9EMA &t=10394 ● jump to 2h 53m ● Many RISC-V Improvements Ready For Linux 5.5: M-Mode, SECCOMP, Other Features
  • 35. ● Great talk with overview of bootloader, Linux kernel, distro support – HOT CHIPS 2019: Linux RISC-V tutorial – https://youtu.be/nPXdbm9lc3A?t=6139 – 1 hour 42 minutes – “Overview of RISC-V SW Ecosystem” ● Bunnaroath Sou, SiFive
  • 39. ● Andes 27-series CPU – “32-bit A27 and 64-bit AX27 and NX27V cores, which will enter production in Q1 2020.” – Andes’ RISC-V SoC debuts with AI-ready VPU as Microchip opens access to its PolarFire SoC ● Microchip PolarFire SoC FPGA – Hard RISC-V with FPGA fabric… like the Xilinx Zync for ARM ● NXP iMX with RISC-V instead of ARM! – “OpenHW Group Unveils CORE-V Chassis SoC Project, Buil ding on PULP Project IP” Coming in 2020?
  • 42. ● Goal: Sub-$100 Open Source Hardware board that can run Linux on RISC-V ● Possible by 2021? ● Interested in working together? – [email protected] / Twitter: @pdp7 – create a mailing list? OSHW RISC-V Linux board for less than $100?
  • 43. Section: Open Source FPGA tools Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
  • 44. ● Hackspace Magazine column about how about open source FPGA tools developed by Claire Wolf (oe1cxw), David Shah and others have made FPGAs more accessible than ever before to makers and hackers: – hackspace.raspberrypi.org/issues/26/ Open Source and FPGAs
  • 45. ● Keynote at Hackday Supercon 2019 by Dr. Megan Wachs of SiFive ● “RISC-V and FPGAs: Open Source Hardware Hacking” – https://www.youtube.com/watch?v=vCG5_nxm2G4
  • 47. ● Open Source toolchains for FPGAs! – Project IceStorm for Lattice iCE40 ● “A Free and Open Source Verilog-to-Bitstream Flow for iC E40 FPGAs” by Claire Wolf (oe1cxw) at 32c3 Open Source and FPGAs
  • 48. ● Open Source toolchains for FPGAs! – Project Trellis for Lattice ECP5 – “Project Trellis and nextpnr FOSS FPGA flow for the Lattice ECP5” - David Shah (@fpga_dave) ● youtube.com/watch?v=0se7kNes3EU Open Source and FPGAs
  • 49. ● Open Source toolchains for FPGAs! – Project X-Ray and SymbiFlow for Xilinix Series 7 – Timothy ‘mithro’ Ansell: “Xilinx Series 7 FPGAs Now Have a Fully Open Source Toolchain!” (almost) ● youtube.com/watch?v=EHePto95qoE Open Source and FPGAs
  • 50. ● Open Source Hardware boards with Lattice ECP5 FPGA with open RISC-V “soft” CPU: – Orange Crab by Greg Davill ● https://github.com/gregdavill/OrangeCrab Open Source and FPGAs
  • 53. ● Open Source Hardware boards with Lattice ECP5 FPGA with open RISC-V “soft” CPU: – David Shah's Trellis board (Ultimate ECP5 Board) – https://github.com/daveshah1/TrellisBoard Open Source and FPGAs
  • 54. Hackaday 2019 Supercon badge ● RISC-V “soft” core on ECP5 FPGA ● Gigantic FPGA In A Game Boy Form Factor
  • 56. ● LiteX is a FPGA design/SoC builder that can be used to build cores, create SoCs and full FPGA designs. ● LiteX is based on Migen and provides specific building/ debugging tools for a higher level of abstraction and compatibily with the LiteX core ecosystem. ● Think of Migen as a toolbox to create FPGA designs in Python and LiteX as a SoC builder to create/develop/debug FPGA SoCs in Python ● https://github.com/enjoy-digital/litex
  • 57. ● Bunnie: LiteX vs. Vivado: First Impressions https://www.bunniestudios.com/blog/?p=5018
  • 59. Linux on LiteX-VexRiscv ● Linux with VexRiscv CPU, a 32-bits Linux Capable RISC-V CPU written in Spinal HDL ● SoC around the VexRiscv CPU is created using LiteX as the SoC builder and LiteX's cores written in Migen Python DSL (LiteDRAM, LiteEth, LiteSDCard) ● github.com/litex-hub/linux-on-litex-vexriscv
  • 61. Section: Linux on the Hackaday Badge Slides: https://github.com/pdp7/talks/blob/master/nerp-riscv.pdf
  • 62. Hackaday 2019 Supercon badge ● RISC-V “soft” core on ECP5 FPGA ● Gigantic FPGA In A Game Boy Form Factor
  • 63. “Team Linux on Badge”
  • 64. “Team Linux on Badge” ● Blog post: Hackaday Supercon badge boots Linux using SDRAM cartridge – https://blog.oshpark.com/2019/12/20/boot-linux-on-this- hackaday-supercon-badge-with-this-sdram-cartridge/ ● Michael Welling (@QwertyEmedded), Tim Ansell (@mithro), Sean Cross (@xobs), Jacob Creedon (@jacobcreedon) ● First attempt: use the built-in 16MB SRAM… no luck :( – (though xobs now might have a way to do it)
  • 65. “Team Linux on Badge” ● Second attempt: – Jacob Creedon designed an a cartridge board that adds 32MB of SDRAM to the Hackaday Supercon badge… before the event!
  • 66. “Team Linux on Badge” ● Second attempt: – Jacob Creedon designed an a cartridge board that adds 32MB of SDRAM to the Hackaday Supercon badge… before the event!
  • 68. “Team Linux on Badge” ● https://youtu.be/3se_L0tRZeg?t=1055
  • 69. Linux on LiteX-VexRiscv ● Linux with VexRiscv CPU, a 32-bits Linux Capable RISC-V CPU written in Spinal HDL – github.com/litex-hub/linux-on-litex-vexriscv ● NOW with upstream support for the Hackaday Supercon badge! – https://github.com/litex-hub/litex-boards/pull/31
  • 71. ● Opened GitHub issue: – optimize performance on Hackaday Badge #35 ● https://github.com/litex-hub/litex-boards/issues/35 ● Now 10x faster! – https://asciinema.org/a/Pcm3vd1BEdEKY9srYX6Ms NfCE – Thanks to enjoy-digital
  • 73. Slides: github.com/pdp7/talks/blob/master/lug-riscv.pdf Drew Fustini [email protected] @pdp7 / @oshpark This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
  • 74. bonus section: Open Source Hardware laptop from Berlin Slides: https://github.com/pdp7/talks/blob/master/lug-riscv.pdf