Passa ai contenuti

Dettagli

Vi leker med, og deler kunnskap om, feltprogrammerbare portmatriser.
Ta gjerne med egne prosjeker for å vise fram.
Alle som er interesserte i FPGA er velkomne.
De som er nye på Bitraf får en introduksjon og omvisning av stedet vårt.

Jon Nordby vil forklare kort hvordan man:

  • Definerer en RISC-V-mikrokontroller med LiteX,
  • definerer egne FPGA-periferer laget med Verilog+migen, og
  • får tilgang til periferene gjennom minnet fra frittstående C-programmer.

Kode og notater finnes i dette arkivet:
https://github.com/jonnor/embeddedml/tree/master/handson/fpga-riscv

English:

We play with, and share knowledge on, field-programmable gate arrays.
You're welcome to bring any projects to show off.
Everyone interested in FPGA is welcome.
Those who are new to Bitraf are offered an introduction to, and tour of, our space.

Jon Nordby will briefly cover how to:

  • Define a RISC-V microcontroller SoC with LiteX,
  • define custom FPGA peripherals made with Verilog+migen, and
  • access the memory mapped peripheral from bare-metal C programs.

We will use the Lattice ICE40UP5k FPGA with the fully open source yosys+nextpnr
workflows. But the approach should be applicable to any FPGA supported by
LiteX.

Code and notes in this repository:
https://github.com/jonnor/embeddedml/tree/master/handson/fpga-riscv

Image License:

BSD 2-Clause License

The LiteX framework provides a convenient and efficient infrastructure to create
FPGA Cores/SoCs, to explore various digital design architectures and create full
FPGA based systems.

Unless otherwise noted, LiteX is copyright (C) 2012-2025 Enjoy-Digital & LiteX developers.
Unless otherwise noted, MiSoC is copyright (C) 2012-2015 Enjoy-Digital.
Unless otherwise noted, MiSoC is copyright (C) 2007-2015 M-Labs Ltd.
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Other authors retain ownership of their contributions. If a submission can
reasonably be considered independently copyrightable, it's yours and we
encourage you to claim it with appropriate copyright notices. This submission
then falls under the "otherwise noted" category. All submissions are strongly
encouraged to use the two-clause BSD license reproduced above.

Argomenti correlati

C & C++
Python
Open Source
FPGA
Verilog

Potresti anche apprezzare