From abf71f34a339e2b68ccbc669868f49b1a1cff53f Mon Sep 17 00:00:00 2001 From: shibo Date: Sat, 6 Sep 2025 13:22:24 +0800 Subject: [PATCH] first commit --- .DS_Store | Bin 0 -> 6148 bytes Dockerfile | 33 +++++++++++++++++++++++++++++++++ README.md | 3 +++ RV32V01S | 1 + 4 files changed, 37 insertions(+) create mode 100644 .DS_Store create mode 100644 Dockerfile create mode 100644 README.md create mode 160000 RV32V01S diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..94945a2b90480eb8c86bf5e015ec21b194210f9c GIT binary patch literal 6148 zcmeHKyK2Kg5ZsMb2-3K8d7ls`KX3@Ub7ezn6RQlk2*vr4x0h5l)bfiIqS6reuP`i7u*bMryzJc26{Wj g#@g}9i=wXB8s{}}3UoU1P6zU5z;vNefqN_P4Th!@p#T5? literal 0 HcmV?d00001 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..3b0e614 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,33 @@ +# verilog-tool v1.0 +# TODO: Enable Gitea Container Registry, put on gitea +# + +FROM ubuntu:24.04 + +# === Basic === +RUN apt-get update && \ + apt-get install -y --no-install-recommends \ + build-essential make git wget curl \ + python3 python3-pip python3-dev python3.12-dev \ + iverilog gtkwave verilator yosys \ + gcc gdb binutils \ + qemu-utils qemu-system-arm qemu-system-misc qemu-system-riscv64 qemu-system-riscv32 \ + && rm -rf /var/lib/apt/lists/* + +# === Python + cocotb === +RUN pip3 install --no-cache-dir --break-system-packages cocotb pytest cocotb-test numpy matplotlib scipy + + +# === RISC-V GCC (riscv64-unknown-elf-gcc) === +RUN apt-get update && \ + apt-get install -y gcc-riscv64-unknown-elf binutils-riscv64-unknown-elf && \ + rm -rf /var/lib/apt/lists/* + +# === ARM GCC (arm-none-eabi-gcc) === +RUN apt-get update && \ + apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi gdb-multiarch && \ + rm -rf /var/lib/apt/lists/* + +# === workspace === +WORKDIR /workspace +CMD ["/bin/bash"] \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..41f92df --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +```docker run -it --rm -v /Users/oushiha/chip_design:/workspace swangnice/verilog-toolbox:latest``` + +```docker run -it --rm -e -e DISPLAY=host.docker.internal:0 -v /Users/oushiha/Desktop/server_buffer/chip_design/rv32i:/workspace swangnice/verilog-toolbox:latest ``` \ No newline at end of file diff --git a/RV32V01S b/RV32V01S new file mode 160000 index 0000000..311bd35 --- /dev/null +++ b/RV32V01S @@ -0,0 +1 @@ +Subproject commit 311bd35bb69c957d129bb5acd9ba2ae8c1f50a54