@hackage lion0.4.0.1
RISC-V Core
Categories
License
BSD-3-Clause
Maintainer
dopamane <standard.semiconductor@gmail.com>
Links
Versions
Installation
Dependencies (9)
- base >=4.13 && <4.21
- clash-prelude >=1.2.5 && <1.9
- generic-monoid >=0.1 && <0.2
- ghc-typelits-extra
- ghc-typelits-knownnat
- ghc-typelits-natnormalise Show all…
Dependents (0)
Where Lions Roam: RISC-V on the VELDT
Lion is a formally verified, 5-stage pipeline RISC-V core. Lion targets the VELDT FPGA development board and is written in Haskell using Clash.
This repository contains four parts:
- The Lion library: a pipelined RISC-V core.
- lion-formal: formally verify the core using riscv-formal.
- lion-soc: a System-on-Chip demonstrating usage of the Lion core on the VELDT.
- lion-metric: Observe Yosys synthesis metrics on the Lion Core.
Lion library
Usage:
- Add
lionto build depends section of Cabal file - import module in source files
import Lion.Core
When connecting the core to memory and peripherals, ensure single cycle latency.
Clone the repository
git clone https://github.com/standardsemiconductor/lion.gitcd liongit submodule update --init
Features
Current Support
- Architecture: RV32I (no FENCE, ECALL, EBREAK)
- Configurable ALU adder and subtractor: use a generic (+) and (-) or SB_MAC16 hard IP
Future Support
All features will be added in a configurable manner extending the base RV32I configuration noted above
- Zicsr, Control and Status Register (CSR) Instructions
- CSR registers
- RV32IM
Check out the Lion Development project to see which features are in progress.