Skip to content

Commit

Permalink
Merge branch 'master' of github.com:darklife/darkriscv
Browse files Browse the repository at this point in the history
  • Loading branch information
samsoniuk committed Feb 15, 2025
2 parents 4bfa314 + e3ea922 commit c909928
Show file tree
Hide file tree
Showing 17 changed files with 49 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/Linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Linux

on:
- push
- pull_request
- workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- uses: actions/checkout@v3
- name: Install prerequisites
run: |
pacman -Sy --noconfirm base-devel git wget iverilog
useradd -m builduser
echo 'builduser ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
chown -R builduser /home/builduser
- name: Clone AUR package
run: |
sudo -u builduser git clone https://aur.archlinux.org/riscv32-gnu-toolchain-elf-bin.git /home/builduser/riscv32-toolchain
- name: Build and install toolchain
run: |
cd /home/builduser/riscv32-toolchain
sudo -u builduser makepkg -si --noconfirm
riscv32-unknown-elf-gcc -v
- name: Test
run: |
make
- name: Build and test
run: |
export CCPATH=$(dirname `command -v riscv32-unknown-elf-gcc`)
make clean all CROSS=riscv32-unknown-elf CCPATH=$CCPATH ARCH=rv32e_zicsr ABI=ilp32e ENDIAN=little
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# DarkRISCV
[![Build Status][WorkflowBadgeLinux]][WorkflowUrlLinux]

Opensource RISC-V implemented from scratch in one night!

![darkriscv](https://user-images.githubusercontent.com/42520878/109411184-01075f80-797f-11eb-8932-5b916133561a.jpg)
Expand Down Expand Up @@ -1244,3 +1246,6 @@ tested the *DarkRISCV*.
[4] https://abopen.com/news/darkriscv-an-overnight-bsd-licensed-risc-v-implementation/
[5] http://quasilyte.dev/blog/post/riscv32-custom-instruction-and-its-simulation/
[6] https://github.com/riscv/riscv-pk/blob/master/bbl/riscv_logo.txt

[WorkflowBadgeLinux]: https://github.com/darklife/darkriscv/workflows/Linux/badge.svg
[WorkflowUrlLinux]: https://github.com/darklife/darkriscv/actions/workflows/Linux.yml
Empty file modified boards/qmtech_cyclone10_cl016/darksocv.csv
100755 → 100644
Empty file.
Empty file modified boards/qmtech_cyclone10_cl016/darksocv.qpf
100755 → 100644
Empty file.
Empty file modified boards/qmtech_cyclone10_cl016/darksocv.qsf
100755 → 100644
Empty file.
Empty file modified boards/qmtech_cyclone10_cl016/darksocv.sdc
100755 → 100644
Empty file.
Empty file modified rtl/config.vh
100755 → 100644
Empty file.
Empty file modified rtl/darkbridge.v
100755 → 100644
Empty file.
Empty file modified rtl/darkio.v
100755 → 100644
Empty file.
Empty file modified rtl/darkpll.v
100755 → 100644
Empty file.
Empty file modified rtl/darkram.v
100755 → 100644
Empty file.
Empty file modified rtl/darkriscv.v
100755 → 100644
Empty file.
Empty file modified rtl/darksocv.v
100755 → 100644
Empty file.
Empty file modified src/Makefile
100755 → 100644
Empty file.
Empty file modified src/config.mk
100755 → 100644
Empty file.
7 changes: 5 additions & 2 deletions src/coremark/core_portme.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,11 @@ typedef double ee_f32;
typedef unsigned char ee_u8;
typedef unsigned int ee_u32;
typedef ee_u32 ee_ptr_int;
typedef size_t ee_size_t;
#define NULL ((void *)0)
typedef ee_u32 ee_size_t;

#ifndef NULL
#define NULL ((void *)0)
#endif
/* align_mem :
This macro is used to align an offset to point to a 32b value. It is
used in the Matrix algorithm to initialize the input memory blocks.
Expand Down
Empty file modified src/darklibc/io.c
100755 → 100644
Empty file.

0 comments on commit c909928

Please sign in to comment.