RISC-V 从这里开始
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了RISC-V 从这里开始相关的知识,希望对你有一定的参考价值。
参考技术A RISC-V:读作risk-five,是一个开源的CPU指令集架构zephyr:开源操作系统
linux:没什么好说的。
risc-pk:The RISC-V Proxy Kernel。解释如下:is a lightweight application execution environment that can host statically-linked RISC-V ELF binaries. It is designed to support tethered RISC-V implementations with limited I/O capability and and thus handles I/O-related system calls by proxying them to a host computer.
BBL :the Berkeley Boot Loader。
linux相关开源基础库对RISC-V的支持
binutils: upstreamed (2.28 is the first release with RISC-V support)
gcc: upstreamed (7.1 is the first release with RISC-V support)
glibc: upstreamed (2.27 is the first release with RISC-V support)
linux kernel: upstreamed (the architecture core code went into
kernel 4.15; kernel 4.19 contains all drivers necessary for booting a
simulated system to userland)
gdb: upstreamed in master (in the release process)
qemu: upstreamed (2.12 is the first release with RISC-V support)
tinyriscv---一个从零开始写的极简易懂的开源RISC-V处理器核
本项目实现的是一个微riscv处理器核(tinyriscv),用verilog语言编写,只求以最简单、最通俗易懂的方式实现riscv指令的功能,因此没有特意去对代码做任何的优化,因此你会看到里面写的代码有很多冗余的地方。tinyriscv处理器核有以下特点:
1)实现了RV32I指令集,通过riscv的RV32I指令兼容性测试,支持以下指令:add addi and andi auipc beq bge bgeu blt bltu bne fence_i jal jalr lb lbu lh lhu lw lui or ori sb sh sw sll slli slt slti sltiu sltu sra srai srl srli sub xor xori;
2)采用三级流水线,即取指,译码、访存、执行,回写;
3)可以运行简单的c语言程序;
详细内容和源码见 码云:https://gitee.com/liangkangnan/tinyriscv
以上是关于RISC-V 从这里开始的主要内容,如果未能解决你的问题,请参考以下文章