Docsity

Workshop on Open Source Hardware Development Tools and RISC-V, Lecture notes of Programming Languages

Toggle sidebar
bg1
Workshop on Open Source Hardware Development Tools
and RISC-V
MohammadHossein AskariHemmat
Shahid Bahonar University of Kerman
August 24, 2017
MohammadHossein AskariHemmat Workshop on RISC-V August 24, 2017 1 / 71
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47

Partial preview of the text

Download Workshop on Open Source Hardware Development Tools and RISC-V and more Lecture notes Programming Languages in PDF only on Docsity!

Workshop on Open Source Hardware Development Tools

and RISC-V

MohammadHossein AskariHemmat

Shahid Bahonar University of Kerman

August 24, 2017

Agenda

(^1) Open Source Tools History of Free and Open Source Software Open Source Softwares Open Source Softwares for Hardware Development Demo: Open-Source Tools for Lattice FPGA Development Lab1: Working with Open Source Hardware Development Tools 2 Working with Chisel and RISC-V Why we need new hardware description language? What is functional programming? Scala and Chisel short intro Chisel Demo: Full Adder Lab2: Working with Chisel RISC-V Intro RISC-V Standard Base ISA Details RISC-V Demo Lab3: RISC-V Lab

History of Open Source Tools

In 1984 Richard Stallmans Free Software Foundation (FSF) began the GNU project

The objective was to create a free version of UNIX operating system namely GNU operating system

History of Open Source Tools

In 1984 Richard Stallmans Free Software Foundation (FSF) began the GNU project

The objective was to create a free version of UNIX operating system namely GNU operating system By free, he meant a software that can be freely used, read, modified, and redistributed

History of Open Source Tools

By 1991, the only missing part for GNU Project to be a full operating system was the kernel In 1991, Linus Torvalds, began working on an operating system kernel

His Kernel was able to be combined with FSF components to produce a usable operating system He named this combination Linux

History of Open Source Tools

The name Linux is confused by many to be an operating system

Yet, Linux is only the kernel Many use the term Gnu/Linux to point out that Linux is only the kernel and it needs GNU tool chain to be a fully usable

History of Open Source Tools

As an example, currently, Google has 1055 repositories on Github some of which you use everyday!

Open Source Softwares

Free Software was defined by FSF and it is often confused with programs whose executables are given away at no charge The other miss understanding is that the term ”Open Source” is often replaced with ”Free Software” and vice-versa Any Free Software, by definition, is an Open Source where the opposite may not be valid Distributing a program under the name of Free Software adds more moral aspects to your program

Open Source Softwares

According to OpenSource.org, an Open Source software has the following criteria: The user must be free to redistribute it The source code must be available The license must allow modifications and derived works, and must allow them to be distributed under the same terms as the license of the original software The full list of criteria can be found here: https://opensource.org/osd.html

Open Source Softwares

Benefits of using Open Source tools: Customizability Auditability Cost Security Hidden costs of using Open Source tools: Long learning curve Semi-restrictive Licenses

Open Source Softwares for Hardware Development

Unfortunately, there is not much interest in Open Source tools for Hardware Development: CAD companies like Cadence and Synopsys do not promote using open source tools for hardware development Almost all CAD tools used by silicon vendors are proprietary and requires expensive license agreement Researches around the world use proprietary tools which require expensive license agreement Sharing source code and releasing tools as open source is not a common practice at all

Open Source Softwares for Hardware Development

BUT, there is hope!

Open Source Softwares for Hardware Development

Icarus Verilog: Icarus Verilog is a Verilog simulation and synthesis tool It is developed and maintained by Stephen Williams Aimed to generate code by back-end tools (for example chisel) It does not fully support Systemverilog It is an open source tool under GPL Project page: http://iverilog.icarus.com/

Open Source Softwares for Hardware Development

Veripool: Veripool was established in 1998 as a repository of the authors’ ASIC and electrical engineering tools A collection of open source tools for ASIC development for example: Verilator is the fast Verilog to C/C++/SystemC compiler Full list: https://www.veripool.org/projects It is an open source project licensed under GPL Project page: https://www.veripool.org/